MinorPlanet.hpp   MinorPlanet.hpp 
skipping to change at line 42 skipping to change at line 42
- visual magnitude calculation (asteroids use the H,G system; - visual magnitude calculation (asteroids use the H,G system;
Stellarium's default algorithm is not easily applied to asteroids); Stellarium's default algorithm is not easily applied to asteroids);
- support for minor planet numbers and provisional designations. - support for minor planet numbers and provisional designations.
Some of the code in this class is re-used from the parent Planet cla ss. Some of the code in this class is re-used from the parent Planet cla ss.
*/ */
class MinorPlanet : public Planet class MinorPlanet : public Planet
{ {
public: public:
MinorPlanet(const QString& englishName, MinorPlanet(const QString& englishName,
int flagLighting,
double radius, double radius,
double oblateness, double oblateness,
Vec3f halocolor, Vec3f halocolor,
float albedo, float albedo,
float roughness,
const QString& texMapName, const QString& texMapName,
const QString& objModelName,
posFuncType _coordFunc, posFuncType _coordFunc,
void* userDataPtr, void* orbitPtr,
OsculatingFunctType *osculatingFunc, OsculatingFunctType *osculatingFunc,
bool closeOrbit, bool closeOrbit,
bool hidden, bool hidden,
const QString &pTypeStr); const QString &pTypeStr);
~MinorPlanet(); ~MinorPlanet();
//Inherited from StelObject via Planet //Inherited from StelObject via Planet
//! Get a string with data about the MinorPlanet. //! Get a string with data about the MinorPlanet.
//! Asteroids support the following InfoStringGroup flags: //! Asteroids support the following InfoStringGroup flags:
skipping to change at line 100 skipping to change at line 101
//! At the moment, the only role is for it to be displayed in the in fo //! At the moment, the only role is for it to be displayed in the in fo
//! field. //! field.
//! \todo Support more than one provisional designations. //! \todo Support more than one provisional designations.
//! \todo Include them in the search lists. //! \todo Include them in the search lists.
void setProvisionalDesignation(QString designation); void setProvisionalDesignation(QString designation);
//! sets absolute magnitude (H) and slope parameter (G). //! sets absolute magnitude (H) and slope parameter (G).
//! These are the parameters in the IAU's two-parameter magnitude sy stem //! These are the parameters in the IAU's two-parameter magnitude sy stem
//! for minor planets. They are used to calculate the apparent magni tude at //! for minor planets. They are used to calculate the apparent magni tude at
//! different phase angles. //! different phase angles.
void setAbsoluteMagnitudeAndSlope(double magnitude, double slope); void setAbsoluteMagnitudeAndSlope(const float magnitude, const float slope);
//! renders the subscript in a minor planet provisional designation with HTML. //! renders the subscript in a minor planet provisional designation with HTML.
//! \returns an emtpy string if the source string is not a provision al //! \returns an emtpy string if the source string is not a provision al
//! designation. //! designation.
static QString renderProvisionalDesignationinHtml(QString plainText) ; static QString renderProvisionalDesignationinHtml(QString plainText) ;
//! set value for semi-major axis in AU //! set value for semi-major axis in AU
void setSemiMajorAxis(double value); void setSemiMajorAxis(double value);
//! get sidereal period for minor planet //! get sidereal period for minor planet
double getSiderealPeriod() const; double getSiderealPeriod() const;
private: private:
int minorPlanetNumber; int minorPlanetNumber;
float absoluteMagnitude;
float slopeParameter; float slopeParameter;
double semiMajorAxis; double semiMajorAxis;
bool nameIsProvisionalDesignation; bool nameIsProvisionalDesignation;
QString provisionalDesignationHtml; QString provisionalDesignationHtml;
QString properName; QString properName;
}; };
#endif //_MINOR_PLANET_HPP_ #endif //_MINOR_PLANET_HPP_
 End of changes. 6 change blocks. 
4 lines changed or deleted 4 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/