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); 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 74 skipping to change at line 74
//! - Size //! - Size
//! - PlainText //! - PlainText
//! \param core the StelCore object //! \param core the StelCore 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 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, bool withExtinctio n=false) 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(StelTranslator& trans); virtual void translateName(const StelTranslator& trans);
//! 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
 End of changes. 3 change blocks. 
14 lines changed or deleted 14 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/