Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CStarImages Class Reference

#include <Sky.h>

List of all members.

Public Member Functions

 CStarImages (double distance)
 ~CStarImages (void)
ssgEntity * GetSSGEntity (void)
void Repaint (float limit, float factor)
void Reposition (sgVec3 pos, double lon, double lat, double lst)

Protected Member Functions

void LoadFlyDatabase (const char *dbFilename)
void LoadBSCDatabase (const char *bscFilename, float limit)
void LoadConstellations (const char *txtFilename)
int FindStarByHR (int hr)

Protected Attributes

std::vector< SStarData * > stars
 All potentially visible stars.
std::vector< SConstellationLine * > constellations
 Constellation figure lines.
ssgTransform * top
ssgLeaf * stars_leaf
ssgVertexArray * stars_va
ssgColourArray * stars_rgba
ssgLeaf * constellations_leaf
ssgVertexArray * constellations_va
ssgColourArray * constellations_rgba


Detailed Description

Definition at line 215 of file Sky.h.


Constructor & Destructor Documentation

CStarImages::CStarImages double  distance  ) 
 

Definition at line 495 of file StarImages.cpp.

References SStarData::bv, bv_to_rgb(), constellations, constellations_leaf, constellations_rgba, constellations_va, SStarData::dec, GetIniFloat(), GetIniString(), GetIniVar(), LoadBSCDatabase(), LoadConstellations(), LoadFlyDatabase(), SStarData::ra, SConstellationLine::star1, SConstellationLine::star2, star_postdraw(), star_predraw(), stars, stars_leaf, stars_rgba, stars_va, and top.

CStarImages::~CStarImages void   ) 
 

Definition at line 645 of file StarImages.cpp.

References constellations, and stars.


Member Function Documentation

int CStarImages::FindStarByHR int  hr  )  [protected]
 

Definition at line 477 of file StarImages.cpp.

References SStarData::hr, and stars.

Referenced by LoadConstellations().

ssgEntity * CStarImages::GetSSGEntity void   ) 
 

Definition at line 657 of file StarImages.cpp.

References top.

Referenced by CSkyManager::CSkyManager().

void CStarImages::LoadBSCDatabase const char *  bscFilename,
float  limit
[protected]
 

Definition at line 227 of file StarImages.cpp.

References SStarData::bv, SStarData::dec, DegToRad(), globals, gtfo, SStarData::hr, SStarData::mv, SStarData::name, pclose(), peof(), SGlobals::pfs, pgets(), popen(), SStarData::ra, stars, and WrapTwoPi().

Referenced by CStarImages().

void CStarImages::LoadConstellations const char *  txtFilename  )  [protected]
 

Definition at line 330 of file StarImages.cpp.

References constellations, FindStarByHR(), globals, gtfo, SConstellationLine::name, pclose(), peof(), SGlobals::pfs, pgets(), popen(), SConstellationLine::star1, SConstellationLine::star2, and TrimTrailingWhitespace().

Referenced by CStarImages().

void CStarImages::LoadFlyDatabase const char *  dbFilename  )  [protected]
 

Definition at line 98 of file StarImages.cpp.

References SStarData::dec, DegToRad(), getToken(), globals, gtfo, SStarData::hr, SStarData::mv, SStarData::name, peof(), SGlobals::pfs, pgets(), popen(), SStarData::ra, stars, and WrapTwoPi().

Referenced by CStarImages().

void CStarImages::Repaint float  limit,
float  factor
 

Definition at line 662 of file StarImages.cpp.

References SStarData::mv, stars, and stars_rgba.

Referenced by CSkyManager::Update().

void CStarImages::Reposition sgVec3  pos,
double  lon,
double  lat,
double  lst
 

Definition at line 700 of file StarImages.cpp.

References top.

Referenced by CSkyManager::Update().


Member Data Documentation

std::vector<SConstellationLine*> CStarImages::constellations [protected]
 

Definition at line 233 of file Sky.h.

Referenced by CStarImages(), LoadConstellations(), and ~CStarImages().

ssgLeaf* CStarImages::constellations_leaf [protected]
 

Definition at line 242 of file Sky.h.

Referenced by CStarImages().

ssgColourArray* CStarImages::constellations_rgba [protected]
 

Definition at line 244 of file Sky.h.

Referenced by CStarImages().

ssgVertexArray* CStarImages::constellations_va [protected]
 

Definition at line 243 of file Sky.h.

Referenced by CStarImages().

std::vector<SStarData*> CStarImages::stars [protected]
 

Definition at line 232 of file Sky.h.

Referenced by CStarImages(), FindStarByHR(), LoadBSCDatabase(), LoadFlyDatabase(), Repaint(), and ~CStarImages().

ssgLeaf* CStarImages::stars_leaf [protected]
 

Definition at line 238 of file Sky.h.

Referenced by CStarImages().

ssgColourArray* CStarImages::stars_rgba [protected]
 

Definition at line 240 of file Sky.h.

Referenced by CStarImages(), and Repaint().

ssgVertexArray* CStarImages::stars_va [protected]
 

Definition at line 239 of file Sky.h.

Referenced by CStarImages().

ssgTransform* CStarImages::top [protected]
 

Definition at line 236 of file Sky.h.

Referenced by CStarImages(), GetSSGEntity(), and Reposition().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen