MinorPlanet.hpp   MinorPlanet.hpp 
skipping to change at line 80 skipping to change at line 80
//! \return a QString containing an HMTL encoded description of the MinorPlanet. //! \return a QString containing an HMTL encoded description of the MinorPlanet.
virtual QString getInfoString(const StelCore *core, const InfoString Group &flags) const; virtual QString getInfoString(const StelCore *core, const InfoString Group &flags) const;
//The Comet class inherits the "Planet" type because the SolarSystem class //The Comet class inherits the "Planet" type because the SolarSystem class
//was not designed to handle different types of objects. //was not designed to handle different types of objects.
// \todo Decide if this is going to be "MinorPlanet" or "Asteroid" // \todo Decide if this is going to be "MinorPlanet" or "Asteroid"
//virtual QString getType() const {return "MinorPlanet";} //virtual QString getType() const {return "MinorPlanet";}
virtual float getVMagnitude(const StelCore* core) const; virtual float getVMagnitude(const StelCore* core) const;
//! sets the nameI18 property with the appropriate translation. //! sets the nameI18 property with the appropriate translation.
//! Function overriden to handle the problem with name conflicts. //! Function overriden to handle the problem with name conflicts.
virtual void translateName(const StelTranslator& trans); virtual void translateName(const StelTranslator& trans);
virtual QString getEnglishName(void) const {return englishName;} virtual QString getEnglishName(void) const;
virtual QString getNameI18n(void) const {return nameI18;} virtual QString getNameI18n(void) const;
QString getCommonEnglishName(void) const {return englishName;}
QString getCommonNameI18n(void) const {return nameI18;}
//! set the minor planet's number, if any. //! set the minor planet's number, if any.
//! The number should be specified as an additional parameter, as //! The number should be specified as an additional parameter, as
//! englishName is passed as a constant to Planet's constructor. //! englishName is passed as a constant to Planet's constructor.
//! The number can be set only once. Any further calls of this funct ion will //! The number can be set only once. Any further calls of this funct ion will
//! have no result. //! have no result.
void setMinorPlanetNumber(int number); void setMinorPlanetNumber(int number);
//! sets a provisional designation. //! sets a provisional designation.
//! 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
skipping to change at line 111 skipping to change at line 113
void setAbsoluteMagnitudeAndSlope(const float magnitude, const float 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);
//! set values for spectral types
void setSpectralType(QString sT="", QString sB="");
//! set value for color index B-V
void setColorIndexBV(float bv=99.f);
//! 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 slopeParameter; float slopeParameter;
double semiMajorAxis; double semiMajorAxis;
bool nameIsProvisionalDesignation; bool nameIsProvisionalDesignation;
QString provisionalDesignationHtml; QString provisionalDesignationHtml;
QString properName; QString properName;
float b_v;
QString specT, specB;
}; };
#endif //_MINOR_PLANET_HPP_ #endif //_MINOR_PLANET_HPP_
 End of changes. 3 change blocks. 
2 lines changed or deleted 13 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/