Nova.hpp   Nova.hpp 
skipping to change at line 33 skipping to change at line 33
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include <QFont> #include <QFont>
#include <QList> #include <QList>
#include <QDateTime> #include <QDateTime>
#include "StelObject.hpp" #include "StelObject.hpp"
#include "StelFader.hpp" #include "StelFader.hpp"
#include "StelProjectorType.hpp" #include "StelProjectorType.hpp"
class StelPainter;
//! @class Nova //! @class Nova
//! A Nova object represents one nova on the sky. //! A Nova object represents one nova on the sky.
//! Details about the novae are passed using a QVariant which contains //! Details about the novae are passed using a QVariant which contains
//! a map of data from the json file. //! a map of data from the json file.
class Nova : public StelObject class Nova : public StelObject
{ {
friend class Novae; friend class Novae;
public: public:
//! @param id The official designation for a nova, e.g. "........" //! @param id The official designation for a nova, e.g. "........"
skipping to change at line 54 skipping to change at line 56
~Nova(); ~Nova();
//! Get a QVariantMap which describes the nova. Could be used to //! Get a QVariantMap which describes the nova. Could be used to
//! create a duplicate. //! create a duplicate.
QVariantMap getMap(void); QVariantMap getMap(void);
virtual QString getType(void) const virtual QString getType(void) const
{ {
return "Nova"; return "Nova";
} }
virtual float getSelectPriority(const StelCore* core) const;
//! Get an HTML string to describe the object //! Get an HTML string to describe the object
//! @param core A pointer to the core //! @param core A pointer to the core
//! @flags a set of flags with information types to include. //! @flags a set of flags with information types to include.
virtual QString getInfoString(const StelCore* core, const InfoString Group& flags) const; virtual QString getInfoString(const StelCore* core, const InfoString Group& flags) const;
virtual Vec3f getInfoColor(void) const; virtual Vec3f getInfoColor(void) const;
virtual Vec3d getJ2000EquatorialPos(const StelCore*) const virtual Vec3d getJ2000EquatorialPos(const StelCore*) const
{ {
return XYZ; return XYZ;
} }
virtual float getVMagnitude(const StelCore* core, bool withExtinctio n=false) const; virtual float getVMagnitude(const StelCore* core) const;
virtual double getAngularSize(const StelCore* core) const; virtual double getAngularSize(const StelCore* core) const;
virtual QString getNameI18n(void) const; virtual QString getNameI18n(void) const;
virtual QString getEnglishName(void) const; virtual QString getEnglishName(void) const;
QString getDesignation(void) const; QString getDesignation(void) const;
void update(double deltaTime); void update(double deltaTime);
private: private:
bool initialized; bool initialized;
Vec3d XYZ; // holds J2000 position Vec3d XYZ; // holds J2000 position
void draw(StelCore* core, class StelRenderer* renderer, StelProjecto rP projector); void draw(StelCore* core, StelPainter* painter);
// Nova // Nova
QString designation; //! The ID of the nova QString designation; //! The ID of the nova
QString novaName; //! Name of the nova QString novaName; //! Name of the nova
QString novaType; //! Type of the nova QString novaType; //! Type of the nova
float maxMagnitude; //! Maximal visual magnitude float maxMagnitude; //! Maximal visual magnitude
float minMagnitude; //! Minimal visual magnitude float minMagnitude; //! Minimal visual magnitude
double peakJD; //! Julian Day of max. vis. mag. double peakJD; //! Julian Day of max. vis. mag.
int m2; //! Time to decline by 2mag from max imum int m2; //! Time to decline by 2mag from max imum
int m3; //! Time to decline by 3mag from max imum int m3; //! Time to decline by 3mag from max imum
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 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/