Quasar.hpp   Quasar.hpp 
skipping to change at line 30 skipping to change at line 30
#define _QUASAR_HPP_ 1 #define _QUASAR_HPP_ 1
#include <QVariant> #include <QVariant>
#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 "StelTextureTypes.hpp"
#include "StelFader.hpp" #include "StelFader.hpp"
#include "StelProjectorType.hpp"
class StelPainter;
//! @class Quasar //! @class Quasar
//! A Quasar object represents one Quasar on the sky. //! A Quasar object represents one Quasar on the sky.
//! Details about the Quasars are passed using a QVariant which contains //! Details about the Quasars are passed using a QVariant which contains
//! a map of data from the json file. //! a map of data from the json file.
class Quasar : public StelObject class Quasar : public StelObject
{ {
friend class Quasars; friend class Quasars;
public: public:
skipping to change at line 54 skipping to change at line 56
~Quasar(); ~Quasar();
//! Get a QVariantMap which describes the Quasar. Could be used to //! Get a QVariantMap which describes the Quasar. 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 "Quasar"; return "Quasar";
} }
virtual float getSelectPriority(const StelCore* core) const;
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 withExtincti on=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
{ {
return designation; return designation;
} }
virtual QString getEnglishName(void) const virtual QString getEnglishName(void) const
{ {
return designation; return designation;
} }
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 static StelTextureSP hintTexture;
rP projector, static StelTextureSP markerTexture;
class StelTextureNew* markerTexture); static bool distributionMode;
static Vec3f markerColor;
void draw(StelCore* core, StelPainter& painter);
//! Calculate a color of quasar //! Calculate a color of quasar
//! @param b_v value of B-V color index //! @param b_v value of B-V color index
unsigned char BvToColorIndex(float b_v); unsigned char BvToColorIndex(float b_v);
// Quasar // Quasar
QString designation; //! The ID of the quasar QString designation; //! The ID of the quasar
float VMagnitude; //! Visual magnitude float VMagnitude; //! Visual magnitude
float AMagnitude; //! Absolute magnitude float AMagnitude; //! Absolute magnitude
float bV; //! B-V color index float bV; //! B-V color index
double qRA; //! R.A. J2000 for the quasar double qRA; //! R.A. J2000 for the quasar
 End of changes. 6 change blocks. 
6 lines changed or deleted 11 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/