Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

Comet Class Reference

#include <Comet.hpp>

List of all members.

Public Member Functions

 Comet (const QString &englishName, int flagLighting, double radius, double oblateness, Vec3f color, float albedo, const QString &texMapName, posFuncType _coordFunc, void *userDataPtr, OsculatingFunctType *osculatingFunc, bool closeOrbit, bool hidden)
virtual QString getInfoString (const StelCore *core, const InfoStringGroup &flags) const
 Get a string with data about the Comet.
virtual float getVMagnitude (const StelCore *core, bool withExtinction=false) const
void setAbsoluteMagnitudeAndSlope (double magnitude, double slope)
 sets absolute magnitude and slope parameter.

Detailed Description

Bogdan Marinov

Some of the code in this class is re-used from the parent Planet class.

Member Function Documentation

virtual QString Comet::getInfoString ( const StelCore core,
const InfoStringGroup &  flags 
) const [virtual]

Get a string with data about the Comet.

Comets support the following InfoStringGroup flags:

  • Name
  • Magnitude
  • RaDec
  • AltAzi
  • Distance
  • PlainText
    core the StelCore object
    flags a set of InfoStringGroup items to include in the return value.
    a QString containing an HMTL encoded description of the Comet.

Reimplemented from Planet.

virtual float Comet::getVMagnitude ( const StelCore core,
bool  withExtinction = false 
) const [virtual]

Reimplemented from Planet.

void Comet::setAbsoluteMagnitudeAndSlope ( double  magnitude,
double  slope 

sets absolute magnitude and slope parameter.

These are the parameters in the IAU's two-parameter magnitude system for comets. They are used to calculate the apparent magnitude at different distances from the Sun. They are not used in the same way as the same parameters in MinorPlanet.

Generated on Sat Aug 25 22:13:31 2012 for Stellarium by  doxygen 1.6.3