MinorPlanet.hpp   MinorPlanet.hpp 
skipping to change at line 41 skipping to change at line 41
- 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, int flagLighting,
double radius, double radius,
double oblateness, double oblateness,
Vec3f color, Vec3f color,
float albedo, float albedo,
const QString& texMapName, const QString& texMapName,
posFuncType _coordFunc, posFuncType _coordFunc,
void* userDataPtr, void* userDataPtr,
OsculatingFunctType *osculatingFunc, OsculatingFunctType *osculatingFunc,
bool closeOrbit, bool closeOrbit,
bool hidden); bool hidden,
const QString &pType);
~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:
//! - Name //! - Name
//! - Magnitude //! - Magnitude
//! - RaDec //! - RaDec
//! - AltAzi //! - AltAzi
skipping to change at line 106 skipping to change at line 107
void setAbsoluteMagnitudeAndSlope(double magnitude, double slope); void setAbsoluteMagnitudeAndSlope(double magnitude, double 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
double getSiderealPeriod() const;
private: private:
int minorPlanetNumber; int minorPlanetNumber;
double absoluteMagnitude; double absoluteMagnitude;
double slopeParameter; double slopeParameter;
double semiMajorAxis; double semiMajorAxis;
bool nameIsProvisionalDesignation; bool nameIsProvisionalDesignation;
QString provisionalDesignationHtml; QString provisionalDesignationHtml;
QString properName; QString properName;
}; };
 End of changes. 2 change blocks. 
11 lines changed or deleted 15 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/