Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · 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, const QString &pType)
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.
void setSemiMajorAxis (double value)
 set value for semi-major axis in AU
double getSiderealPeriod () const
 get sidereal period for minor planet

Detailed Description

Bogdan Marinov

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

Definition at line 32 of file Comet.hpp.

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.

double Comet::getSiderealPeriod (  )  const

get sidereal period for minor planet

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.

void Comet::setSemiMajorAxis ( double  value  ) 

set value for semi-major axis in AU

The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:43 2013 for Stellarium by  doxygen 1.6.3