Comet.hpp   Comet.hpp 
skipping to change at line 36 skipping to change at line 36
/*! \class Comet /*! \class Comet
\author Bogdan Marinov, Georg Zotti (orbit computation enhancements, tails) \author Bogdan Marinov, Georg Zotti (orbit computation enhancements, tails)
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.
\todo Implement better comet rendering (star-like objects, no physic al body). \todo Implement better comet rendering (star-like objects, no physic al body).
\todo (Long-term) Photo realistic comet rendering, see https://bluep rints.launchpad.net/stellarium/+spec/realistic-comet-rendering \todo (Long-term) Photo realistic comet rendering, see https://bluep rints.launchpad.net/stellarium/+spec/realistic-comet-rendering
2013-12: GZ: New algorithms for position computation following Paul Heafner: Fundamental Ephemeris Computations (Willmann-Bell 1999). 2013-12: GZ: New algorithms for position computation following Paul Heafner: Fundamental Ephemeris Computations (Willmann-Bell 1999).
2014-01: GZ: Parabolic tails appropriately scaled/rotated. Much is c urrently empirical, leaving room for physics-based improvements. 2014-01: GZ: Parabolic tails appropriately scaled/rotated. Much is c urrently empirical, leaving room for physics-based improvements.
2014-08: GZ: speedup in case hundreds of comets are loaded. 2014-08: GZ: speedup in case hundreds of comets are loaded.
2014-11: GZ: tail extinction, better brightness balance. 2014-11: GZ: tail extinction, better brightness balance.
2017-03: GZ: added fields to infoMap
*/ */
class Comet : public Planet class Comet : public Planet
{ {
public: public:
friend class SolarSystem; // Solar System initializes static constants. friend class SolarSystem; // Solar System initializes static constants.
Comet(const QString& englishName, Comet(const QString& englishName,
int flagLighting, int flagLighting,
double radius, double radius,
double oblateness, double oblateness,
Vec3f halocolor, Vec3f halocolor,
skipping to change at line 75 skipping to change at line 76
//! - Magnitude //! - Magnitude
//! - RaDec //! - RaDec
//! - AltAzi //! - AltAzi
//! - Distance //! - Distance
//! - PlainText //! - PlainText
// - Size <- Size of what? // - Size <- Size of what?
//! \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 Comet. //! \return a QString containing an HMTL encoded description of the Comet.
virtual QString getInfoString(const StelCore *core, const InfoString Group &flags) const; virtual QString getInfoString(const StelCore *core, const InfoString Group &flags) const;
//! In addition to Planet::getInfoMap(), Comets provides estimates f
or
//! - tail-length-km
//! - coma-diameter-km
//! using the formula from Guide found by the GSoC2012 initiative at
http://www.projectpluto.com/update7b.htm#comet_tail_formula
virtual QVariantMap getInfoMap(const StelCore *core) 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.
//virtual QString getType() const {return "Comet";} //virtual QString getType() const {return "Comet";}
//! \todo Find better sources for the g,k system //! \todo Find better sources for the g,k system
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 {return englishName;}
virtual QString getNameI18n(void) const {return nameI18;} virtual QString getNameI18n(void) const {return nameI18;}
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 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/