Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Public Member Functions

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, OsulatingFunctType *osculatingFunc, bool closeOrbit, bool hidden)
virtual QString getInfoString (const StelCore *core, const InfoStringGroup &flags) const
virtual QString getType () const
virtual float getVMagnitude (const StelNavigator *nav) const
void setAbsoluteMagnitudeAndSlope (double magnitude, double slope)

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 StelNavigator nav  )  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.