Constellation.hpp   Constellation.hpp 
skipping to change at line 55 skipping to change at line 55
Constellation(); Constellation();
~Constellation(); ~Constellation();
// StelObject method to override // StelObject method to override
//! Get a string with data about the Constellation. //! Get a string with data about the Constellation.
//! Constellations support the following InfoStringGroup flags: //! Constellations support the following InfoStringGroup flags:
//! - Name //! - Name
//! @param core the Stelore object //! @param core the Stelore object
//! @param flags a set of InfoStringGroup items to include in the re turn value. //! @param flags a set of InfoStringGroup items to include in the re turn value.
//! @return a QString a description of the Planet. //! @return a QString a description of the Planet.
virtual QString getInfoString(const StelCore* core, const InfoString Group& flags) const virtual QString getInfoString(const StelCore*, const InfoStringGroup & flags) const
{ {
if (flags&Name) return getNameI18n() + "(" + getShortName() + ")"; if (flags&Name) return getNameI18n() + "(" + getShortName() + ")";
else return ""; else return "";
} }
//! Get the module/object type string. //! Get the module/object type string.
//! @return "Constellation" //! @return "Constellation"
virtual QString getType(void) const {return "Constellation";} virtual QString getType() const {return "Constellation";}
//! observer centered J2000 coordinates. //! observer centered J2000 coordinates.
virtual Vec3d getJ2000EquatorialPos(const StelNavigator *nav) const {return XYZname;} virtual Vec3d getJ2000EquatorialPos(const StelNavigator*) const {ret urn XYZname;}
virtual double getAngularSize(const StelCore* core) const {Q_ASSERT( 0); return 0;}; // TODO virtual double getAngularSize(const StelCore*) const {Q_ASSERT(0); r eturn 0;} // TODO
//! @param record string containing the following whitespace //! @param record string containing the following whitespace
//! separated fields: abbreviation - a three character abbreviation //! separated fields: abbreviation - a three character abbreviation
//! for the constellation, a number of lines, and a list of Hipparco s //! for the constellation, a number of lines, and a list of Hipparco s
//! catalogue numbers which, when connected form the lines of the //! catalogue numbers which, when connected form the lines of the
//! constellation. //! constellation.
//! @param starMgr a pointer to the StarManager object. //! @param starMgr a pointer to the StarManager object.
//! @return false if can't parse record, else true. //! @return false if can't parse record, else true.
bool read(const QString& record, StarMgr *starMgr); bool read(const QString& record, StarMgr *starMgr);
skipping to change at line 100 skipping to change at line 100
//! or NULL if the star is not part of a constellation //! or NULL if the star is not part of a constellation
const Constellation* isStarIn(const StelObject*) const; const Constellation* isStarIn(const StelObject*) const;
//! Get the brightest star in a Constellation. //! Get the brightest star in a Constellation.
//! Checks all stars which make up the constellation lines, and retu rns //! Checks all stars which make up the constellation lines, and retu rns
//! a pointer to the one with the brightest apparent magnitude. //! a pointer to the one with the brightest apparent magnitude.
//! @return a pointer to the brightest star //! @return a pointer to the brightest star
StelObjectP getBrightestStarInConstellation(void) const; StelObjectP getBrightestStarInConstellation(void) const;
//! Get the translated name for the Constellation. //! Get the translated name for the Constellation.
QString getNameI18n(void) const {return nameI18;} QString getNameI18n() const {return nameI18;}
//! Get the English name for the Constellation (returns the abbrevia tion). //! Get the English name for the Constellation (returns the abbrevia tion).
QString getEnglishName(void) const {return abbreviation;} QString getEnglishName() const {return abbreviation;}
//! Get the short name for the Constellation (returns the abbreviati on). //! Get the short name for the Constellation (returns the abbreviati on).
QString getShortName(void) const {return abbreviation;} QString getShortName() const {return abbreviation;}
//! Draw the lines for the Constellation. //! Draw the lines for the Constellation.
//! This method uses the coords of the stars (optimized for use thru //! This method uses the coords of the stars (optimized for use thru
//! the class ConstellationMgr only). //! the class ConstellationMgr only).
void drawOptim(StelPainter& sPainter, const StelNavigator* nav, cons t SphericalCap& viewportHalfspace) const; void drawOptim(StelPainter& sPainter, const StelNavigator* nav, cons t SphericalCap& viewportHalfspace) const;
//! Draw the art texture, optimized function to be called thru a con stellation manager only. //! Draw the art texture, optimized function to be called thru a con stellation manager only.
void drawArtOptim(StelPainter& sPainter, const SphericalRegion& regi on) const; void drawArtOptim(StelPainter& sPainter, const SphericalRegion& regi on) const;
//! Update fade levels according to time since various events. //! Update fade levels according to time since various events.
void update(int deltaTime); void update(int deltaTime);
//! Turn on and off Constellation line rendering. //! Turn on and off Constellation line rendering.
//! @param b new state for line drawing. //! @param b new state for line drawing.
skipping to change at line 127 skipping to change at line 127
//! @param b new state for boundary drawing. //! @param b new state for boundary drawing.
void setFlagBoundaries(bool b) {boundaryFader=b;} void setFlagBoundaries(bool b) {boundaryFader=b;}
//! Turn on and off Constellation name label rendering. //! Turn on and off Constellation name label rendering.
//! @param b new state for name label drawing. //! @param b new state for name label drawing.
void setFlagName(bool b) {nameFader=b;} void setFlagName(bool b) {nameFader=b;}
//! Turn on and off Constellation art rendering. //! Turn on and off Constellation art rendering.
//! @param b new state for art drawing. //! @param b new state for art drawing.
void setFlagArt(bool b) {artFader=b;} void setFlagArt(bool b) {artFader=b;}
//! Get the current state of Constellation line rendering. //! Get the current state of Constellation line rendering.
//! @return true if Constellation line rendering it turned on, else false. //! @return true if Constellation line rendering it turned on, else false.
bool getFlagLines(void) const {return lineFader;} bool getFlagLines() const {return lineFader;}
//! Get the current state of Constellation boundary rendering. //! Get the current state of Constellation boundary rendering.
//! @return true if Constellation boundary rendering it turned on, e lse false. //! @return true if Constellation boundary rendering it turned on, e lse false.
bool getFlagBoundaries(void) const {return boundaryFader;} bool getFlagBoundaries() const {return boundaryFader;}
//! Get the current state of Constellation name label rendering. //! Get the current state of Constellation name label rendering.
//! @return true if Constellation name label rendering it turned on, else false. //! @return true if Constellation name label rendering it turned on, else false.
bool getFlagName(void) const {return nameFader;} bool getFlagName() const {return nameFader;}
//! Get the current state of Constellation art rendering. //! Get the current state of Constellation art rendering.
//! @return true if Constellation art rendering it turned on, else f alse. //! @return true if Constellation art rendering it turned on, else f alse.
bool getFlagArt(void) const {return artFader;} bool getFlagArt() const {return artFader;}
//! International name (translated using gettext) //! International name (translated using gettext)
QString nameI18; QString nameI18;
//! Name in english //! Name in english
QString englishName; QString englishName;
//! Name in native language //! Name in native language
QString nativeName; QString nativeName;
//! Abbreviation (of the latin name for western constellations) //! Abbreviation (of the latin name for western constellations)
QString abbreviation; QString abbreviation;
//! Direction vector pointing on constellation name drawing position //! Direction vector pointing on constellation name drawing position
Vec3f XYZname; Vec3d XYZname;
Vec3d XYname; Vec3d XYname;
//! Number of segments in the lines //! Number of segments in the lines
unsigned int numberOfSegments; unsigned int numberOfSegments;
//! List of stars forming the segments //! List of stars forming the segments
StelObjectP* asterism; StelObjectP* asterism;
StelTextureSP artTexture; StelTextureSP artTexture;
SphericalTexturedConvexPolygon artPolygon; SphericalTexturedConvexPolygon artPolygon;
//! Define whether art, lines, names and boundary must be drawn //! Define whether art, lines, names and boundary must be drawn
 End of changes. 12 change blocks. 
12 lines changed or deleted 12 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/