Public Member Functions | |
StarField (const std::string &fileName="", double radius=_defaultRadius) | |
unsigned int | getNumStars () |
void | setSunAltitude (double altitude) |
Classes | |
struct | StarData |
StarField contains a set of points set at a constant radius from a center. Each point represents the projection of a star in the sky on to a sphere with radius as specified in the constructor. Each point represents the position of the star and is rendered with a brightness that approximates the corresponding magnitude as specified in a database of stars.
The current database of stars come from The Yale Bright Star Catalogue, from the YBS.edb file of XEphem 3.5.2.
No attempt is made to position stars in reference to each other over long periods of time. The assumption is made that star positions are representative of constellation make up of current times. Thus, the entire set of points is rotated uniformly to position them with approximation to the correct positions in the sky given latitude, longitude, date and time.
|
Constructor.
|
|
Get the total number of stars in the Star Field |
|
Set the SunAltitude. This is used to determine brightness of the stars according to daylight scatter in the atmosphere. When the sun is below the horizon, stars are visible, when above they are not. |