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

Detailed Description

Author:
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
    Parameters:
    corethe StelCore object
    flagsa set of InfoStringGroup items to include in the return value.
    Returns:
    a QString containing an HMTL encoded description of the Comet.

Reimplemented from Planet.

virtual float Comet::getVMagnitude ( const StelCore core) 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.