StelObject.hpp   StelObject.hpp 
skipping to change at line 65 skipping to change at line 65
PlainText = 0x00000800, //!< Strip HTML tags from output PlainText = 0x00000800, //!< Strip HTML tags from output
HourAngle = 0x00001000, //!< The hour angle + DE (of da te) HourAngle = 0x00001000, //!< The hour angle + DE (of da te)
AbsoluteMagnitude = 0x00002000 //!< The absolute magnitude AbsoluteMagnitude = 0x00002000 //!< The absolute magnitude
}; };
//! A pre-defined set of specifiers for the getInfoString flags argu ment to getInfoString //! A pre-defined set of specifiers for the getInfoString flags argu ment to getInfoString
static const InfoStringGroup AllInfo = (InfoStringGroup)(Name|Catalo gNumber|Magnitude|RaDecJ2000|RaDecOfDate|AltAzi|Distance|Size|Extra1|Extra2 |Extra3|HourAngle|AbsoluteMagnitude); static const InfoStringGroup AllInfo = (InfoStringGroup)(Name|Catalo gNumber|Magnitude|RaDecJ2000|RaDecOfDate|AltAzi|Distance|Size|Extra1|Extra2 |Extra3|HourAngle|AbsoluteMagnitude);
//! A pre-defined set of specifiers for the getInfoString flags argu ment to getInfoString //! A pre-defined set of specifiers for the getInfoString flags argu ment to getInfoString
static const InfoStringGroup ShortInfo = (InfoStringGroup)(Name|Cata logNumber|Magnitude|RaDecJ2000); static const InfoStringGroup ShortInfo = (InfoStringGroup)(Name|Cata logNumber|Magnitude|RaDecJ2000);
virtual ~StelObject(void) {} virtual ~StelObject() {}
//! Default implementation of the getRegion method. //! Default implementation of the getRegion method.
//! Calling this method on some object will cause an error if they n eed a valid StelNavigator instance to compute their position. //! Calling this method on some object will cause an error if they n eed a valid StelNavigator instance to compute their position.
//! Return the spatial region of the object. //! Return the spatial region of the object.
virtual SphericalRegionP getRegion() const {return SphericalRegionP( new SphericalPoint(getJ2000EquatorialPos(NULL)));} virtual SphericalRegionP getRegion() const {return SphericalRegionP( new SphericalPoint(getJ2000EquatorialPos(NULL)));}
//! Write I18n information about the object in QString. //! Write I18n information about the object in QString.
//! @param core the StelCore object to use //! @param core the StelCore object to use
//! @param flags a set of InfoStringGroup flags which are used to //! @param flags a set of InfoStringGroup flags which are used to
//! filter the return value - including specified types of informati on //! filter the return value - including specified types of informati on
//! and altering the output format. //! and altering the output format.
//! @return an HTML string containing information about the StelObje ct. //! @return an HTML string containing information about the StelObje ct.
virtual QString getInfoString(const StelCore *core, const InfoString Group& flags=StelObject::AllInfo) const = 0; virtual QString getInfoString(const StelCore *core, const InfoString Group& flags=StelObject::AllInfo) const = 0;
//! Return object's type. It should be the name of the class. //! Return object's type. It should be the name of the class.
virtual QString getType(void) const = 0; virtual QString getType() const = 0;
//! Return object's name in english //! Return object's name in english
virtual QString getEnglishName(void) const = 0; virtual QString getEnglishName() const = 0;
//! Return translated object's name //! Return translated object's name
virtual QString getNameI18n(void) const = 0; virtual QString getNameI18n() const = 0;
//! Get observer-centered equatorial coordinates at equinox J2000 //! Get observer-centered equatorial coordinates at equinox J2000
virtual Vec3d getJ2000EquatorialPos(const StelNavigator *nav) const = 0; virtual Vec3d getJ2000EquatorialPos(const StelCore* core) const = 0;
//! Get observer-centered equatorial coordinate at the current equin ox //! Get observer-centered equatorial coordinate at the current equin ox
//! The frame has it's Z axis at the planet's current rotation axis //! The frame has it's Z axis at the planet's current rotation axis
//! At time 2000-01-01 this frame is almost the same as J2000, but O NLY if the observer is on earth //! At time 2000-01-01 this frame is almost the same as J2000, but O NLY if the observer is on earth
Vec3d getEquinoxEquatorialPos(const StelNavigator* nav) const; Vec3d getEquinoxEquatorialPos(const StelCore* core) const;
//! Get observer-centered hour angle + declination (at current equin ox) //! Get observer-centered hour angle + declination (at current equin ox)
//! It is the geometric position, i.e. without taking refraction eff ect into account.
//! The frame has its Z axis at the planet's current rotation axis //! The frame has its Z axis at the planet's current rotation axis
Vec3d getSideralPos(const StelCore* core) const; Vec3d getSideralPosGeometric(const StelCore* core) const;
//! Get observer-centered hour angle + declination (at current equin
ox)
//! It is the apparent position, i.e. taking the refraction effect i
nto account.
//! The frame has its Z axis at the planet's current rotation axis
Vec3d getSideralPosApparent(const StelCore* core) const;
//! Get observer-centered alt/az position
//! It is the geometric position, i.e. without taking refraction eff
ect into account.
//! The frame has it's Z axis at the zenith
Vec3d getAltAzPosGeometric(const StelCore* core) const;
//! Get observer-centered alt/az position
//! It is the apparent position, i.e. taking the refraction effect i
nto account.
//! The frame has it's Z axis at the zenith
Vec3d getAltAzPosApparent(const StelCore* core) const;
//! Get observer-centered alt/az position //! Get observer-centered alt/az position
//! It is the automatic position, i.e. taking the refraction effect into account if atmosphere is on.
//! The frame has it's Z axis at the zenith //! The frame has it's Z axis at the zenith
Vec3d getAltAzPos(const StelNavigator* nav) const; Vec3d getAltAzPosAuto(const StelCore* core) const;
//! Return object's apparent V magnitude as seen from observer //! Return object's apparent V magnitude as seen from observer
virtual float getVMagnitude(const StelNavigator*) const {return 99;} virtual float getVMagnitude(const StelCore*) const {return 99;}
//! Return a priority value which is used to discriminate objects by priority //! Return a priority value which is used to discriminate objects by priority
//! As for magnitudes, the lower is the higher priority //! As for magnitudes, the lower is the higher priority
virtual float getSelectPriority(const StelNavigator*) const {return 99;} virtual float getSelectPriority(const StelCore*) const {return 99;}
//! Get a color used to display info about the object //! Get a color used to display info about the object
virtual Vec3f getInfoColor() const {return Vec3f(1,1,1);} virtual Vec3f getInfoColor() const {return Vec3f(1,1,1);}
//! Return the best FOV in degree to use for a close view of the obj ect //! Return the best FOV in degree to use for a close view of the obj ect
virtual double getCloseViewFov(const StelNavigator*) const {return 1 0.;} virtual double getCloseViewFov(const StelCore*) const {return 10.;}
//! Return the best FOV in degree to use for a global view of the ob ject satellite system (if there are satellites) //! Return the best FOV in degree to use for a global view of the ob ject satellite system (if there are satellites)
virtual double getSatellitesFov(const StelNavigator*) const {return virtual double getSatellitesFov(const StelCore*) const {return -1.;}
-1.;} virtual double getParentSatellitesFov(const StelCore*) const {return
virtual double getParentSatellitesFov(const StelNavigator*) const {r -1.;}
eturn -1.;}
//! Return the angular radius of a circle containing the object as s een from the observer //! Return the angular radius of a circle containing the object as s een from the observer
//! with the circle center assumed to be at getJ2000EquatorialPos(). //! with the circle center assumed to be at getJ2000EquatorialPos().
//! @return radius in degree. This value is the apparent angular siz e of the object, and is independent of the current FOV. //! @return radius in degree. This value is the apparent angular siz e of the object, and is independent of the current FOV.
virtual double getAngularSize(const StelCore* core) const = 0; virtual double getAngularSize(const StelCore* core) const = 0;
protected: protected:
//! Format the positional info string contain J2000/of date/altaz/ho ur angle positions for the object //! Format the positional info string contain J2000/of date/altaz/ho ur angle positions for the object
QString getPositionInfoString(const StelCore *core, const InfoString Group& flags) const; QString getPositionInfoString(const StelCore *core, const InfoString Group& flags) const;
 End of changes. 14 change blocks. 
15 lines changed or deleted 35 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/