Pulsar.hpp   Pulsar.hpp 
skipping to change at line 45 skipping to change at line 45
//! @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:
//! @enum pulsarTypeInfoGroup used as named bitfield flags as specif
iers to
//! filter results of getPulsarTypeInfoString. The precise definitio
n of these should
//! be documented in the getPulsarTypeInfoString documentation for t
he derived classes
//! for all specifiers which are defined in that derivative.
//! Description of types you can see here - http://cdsarc.u-strasbg.
fr/viz-bin/Cat?VII/189
enum pulsarTypeInfoGroup
{
C = 0x00000001, //!< Globular cluster association
S = 0x00000002, //!< SNR association
G = 0x00000004, //!< Glitches in period
B = 0x00000010, //!< Binary or multiple pulsar
M = 0x00000020, //!< Millisecond pulsar
R = 0x00000040, //!< Recycled pulsar
I = 0x00000100, //!< Radio interpulse
H = 0x00000200, //!< Optical, X-ray or Gamma-ray pulse
d emission (high energy)
E = 0x00000400 //!< Extragalactic (in MC) pulsar
};
//! @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"
Pulsar(const QVariantMap& map); Pulsar(const QVariantMap& map);
~Pulsar(); ~Pulsar();
//! 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
skipping to change at line 118 skipping to change at line 100
static StelTextureSP hintTexture; static StelTextureSP hintTexture;
static StelTextureSP markerTexture; static StelTextureSP markerTexture;
void draw(StelCore* core, StelPainter& painter); 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 distance; //! Adopted distance of pulsar in kpc float parallax; //! Annual parallax (mas)
double period; //! Barycentric period in seconds double period; //! Barycentric period of the pulsar (s)
int ntype; //! Octal code for pulsar type double frequency; //! Barycentric rotation frequency (Hz)
float We; //! Equivalent width of the integrated pulse double pfrequency; //! Time derivative of barycentric rotation
profile in ms frequency (s^-2)
double pderivative; //! Time derivative of barcycentric period (
dimensionless)
double dmeasure; //! Dispersion measure (cm-3 pc)
double bperiod; //! Binary period of pulsar (days)
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
QString notes; //! Notes to pulsar (Type of pulsar)
LinearFader labelsFader; LinearFader labelsFader;
protected: //! Calculate and get spin down energy loss rate (ergs/s)
//! Get type of pulsar from octal code //! @param p0 - barycentric period of the pulsar (s)
//! @flags a set of flags with information types of pulsar. //! @param p1 - time derivative of barcycentric period (dimensionles
QString getPulsarTypeInfoString(const int flags) const; s)
double getEdot(double p0, double p1) const;
//! Calculate and get barycentric period derivative
//! @param p0 - barycentric period of the pulsar (s)
//! @param f1 - time derivative of barcycentric period (s^-2)
double getP1(double p0, double f1) const;
//! Get type of pulsar
//! @param pcode - code of pulsar type
QString getPulsarTypeInfoString(QString pcode) const;
}; };
#endif // _PULSAR_HPP_ #endif // _PULSAR_HPP_
 End of changes. 4 change blocks. 
32 lines changed or deleted 27 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/