Pulsar.hpp   Pulsar.hpp 
skipping to change at line 30 skipping to change at line 30
#define _PULSAR_HPP_ 1 #define _PULSAR_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 "StelProjectorType.hpp" #include "StelTextureTypes.hpp"
#include "StelFader.hpp" #include "StelFader.hpp"
class StelPainter;
//! @class Pulsar //! @class Pulsar
//! A Pulsar object represents one pulsar on the sky. //! A Pulsar object represents one pulsar on the sky.
//! Details about the Pulsars are passed using a QVariant which contains //! Details about the Pulsars are passed using a QVariant which contains
//! a map of data from the json file. //! a map of data from the json file.
class Pulsar : public StelObject class Pulsar : public StelObject
{ {
friend class Pulsars; friend class Pulsars;
public: public:
//! @param id The official designation for a pulsar, e.g. "PSR J1919 +21" //! @param id The official designation for a pulsar, e.g. "PSR J1919 +21"
skipping to change at line 56 skipping to change at line 57
//! Get a QVariantMap which describes the pulsar. Could be used to //! Get a QVariantMap which describes the pulsar. Could be used to
//! create a duplicate. //! create a duplicate.
QVariantMap getMap(void); QVariantMap getMap(void);
//! Get the type of object //! Get the type of object
virtual QString getType(void) const virtual QString getType(void) const
{ {
return "Pulsar"; return "Pulsar";
} }
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;
} }
//! Get the visual magnitude of pulsar //! Get the visual magnitude of pulsar
virtual float getVMagnitude(const StelCore* core, bool withExtinctio virtual float getVMagnitude(const StelCore* core) const;
n=false) const; virtual float getVMagnitudeWithExtinction(const StelCore *core) cons
t;
//! Get the angular size of pulsar //! Get the angular size of pulsar
virtual double getAngularSize(const StelCore* core) const; virtual double getAngularSize(const StelCore* core) const;
//! Get the localized name of pulsar //! Get the localized name of pulsar
virtual QString getNameI18n(void) const virtual QString getNameI18n(void) const
{ {
return designation; return designation;
} }
//! Get the english name of pulsar //! Get the english name of pulsar
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, StelRenderer* renderer, StelProjectorP pro static StelTextureSP hintTexture;
jector, static StelTextureSP markerTexture;
class StelTextureNew* markerTexture); static bool distributionMode;
static bool glitchFlag;
static Vec3f markerColor;
static Vec3f glitchColor;
void draw(StelCore* core, StelPainter *painter);
//! Variables for description of properties of pulsars //! Variables for description of properties of pulsars
QString designation; //! The designation of the pulsar (J2000 pul sar name) QString designation; //! The designation of the pulsar (J2000 pul sar name)
float RA; //! J2000 right ascension float RA; //! J2000 right ascension
float DE; //! J2000 declination float DE; //! J2000 declination
float parallax; //! Annual parallax (mas) float parallax; //! Annual parallax (mas)
double period; //! Barycentric period of the pulsar (s) double period; //! Barycentric period of the pulsar (s)
double frequency; //! Barycentric rotation frequency (Hz) double frequency; //! Barycentric rotation frequency (Hz)
double pfrequency; //! Time derivative of barycentric rotation frequency (s^-2) double pfrequency; //! Time derivative of barycentric rotation frequency (s^-2)
double pderivative; //! Time derivative of barcycentric period ( dimensionless) double pderivative; //! Time derivative of barcycentric period ( dimensionless)
double dmeasure; //! Dispersion measure (cm-3 pc) double dmeasure; //! Dispersion measure (cm-3 pc)
double bperiod; //! Binary period of pulsar (days) double bperiod; //! Binary period of pulsar (days)
double eccentricity; //! Eccentricity double eccentricity; //! Eccentricity
float w50; //! Profile width at 50% of peak in ms float w50; //! Profile width at 50% of peak in ms
float s400; //! Time averaged flux density at 400MHz in mJy float s400; //! Time averaged flux density at 400MHz in mJy
float s600; //! Time averaged flux density at 600MHz in mJy float s600; //! Time averaged flux density at 600MHz in mJy
float s1400; //! Time averaged flux density at 1400MHz in mJy float s1400; //! Time averaged flux density at 1400MHz in mJy
float distance; //! Distance based on electron density model in kpc float distance; //! Distance based on electron density model in kpc
int glitch; //! Number of glitches
QString notes; //! Notes to pulsar (Type of pulsar) QString notes; //! Notes to pulsar (Type of pulsar)
LinearFader labelsFader; LinearFader labelsFader;
//! Calculate and get spin down energy loss rate (ergs/s) //! Calculate and get spin down energy loss rate (ergs/s)
//! @param p0 - barycentric period of the pulsar (s) //! @param p0 - barycentric period of the pulsar (s)
//! @param p1 - time derivative of barcycentric period (dimensionles s) //! @param p1 - time derivative of barcycentric period (dimensionles s)
double getEdot(double p0, double p1) const; double getEdot(double p0, double p1) const;
//! Calculate and get barycentric period derivative //! Calculate and get barycentric period derivative
 End of changes. 6 change blocks. 
7 lines changed or deleted 16 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/