Exoplanet.hpp   Exoplanet.hpp 
skipping to change at line 30 skipping to change at line 30
#define _EXOPLANET_HPP_ 1 #define _EXOPLANET_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 "StelProjectorType.hpp"
#include "StelPainter.hpp"
#include "StelFader.hpp" #include "StelFader.hpp"
typedef struct typedef struct
{ {
QString planetName; //! Exoplanet name QString planetName; //! Exoplanet name
float mass; //! Exoplanet mass (Mjup) float mass; //! Exoplanet mass (Mjup)
float radius; //! Exoplanet radius (Rjup) float radius; //! Exoplanet radius (Rjup)
float period; //! Exoplanet period (days) float period; //! Exoplanet period (days)
float semiAxis; //! Exoplanet orbit semi-major axis (AU) float semiAxis; //! Exoplanet orbit semi-major axis (AU)
float eccentricity; //! Exoplanet orbit eccentricity float eccentricity; //! Exoplanet orbit eccentricity
float inclination; //! Exoplanet orbit inclination float inclination; //! Exoplanet orbit inclination
float angleDistance; //! Exoplanet angle distance float angleDistance; //! Exoplanet angle distance
int discovered; //! Exoplanet discovered year int discovered; //! Exoplanet discovered year
} exoplanetData; } exoplanetData;
class StelPainter;
//! @class Exoplanet //! @class Exoplanet
//! A exoplanet object represents one pulsar on the sky. //! A exoplanet object represents one pulsar on the sky.
//! Details about the exoplanets are passed using a QVariant which contains //! Details about the exoplanets are passed using a QVariant which contains
//! a map of data from the json file. //! a map of data from the json file.
class Exoplanet : public StelObject class Exoplanet : public StelObject
{ {
friend class Exoplanets; friend class Exoplanets;
public: public:
//! @param id The official designation for a exoplanet, e.g. "Kepler -10 b" //! @param id The official designation for a exoplanet, e.g. "Kepler -10 b"
skipping to change at line 82 skipping to change at line 79
//! 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
virtual float getVMagnitude(const StelCore* core, bool withExtinctio n=false) const; virtual float getVMagnitude(const StelCore* core, bool withExtinctio n=false) const;
//! 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
virtual QString getEnglishName(void) const virtual QString getEnglishName(void) const
{ {
return designation; return designation;
} }
bool isDiscovered(const StelCore* core);
void update(double deltaTime); void update(double deltaTime);
private: private:
bool initialized; bool initialized;
Vec3d XYZ; // holds J2000 position Vec3d XYZ; // holds J2000 position
static StelTextureSP hintTexture; void draw(StelCore* core, class StelRenderer* renderer, StelProjecto
static StelTextureSP markerTexture; rP projector,
class StelTextureNew* markerTexture);
void draw(StelCore* core, StelPainter& painter);
//! Variables for description of properties of exoplanets //! Variables for description of properties of exoplanets
QString designation; //! The designation of the h ost star QString designation; //! The designation of the h ost star
float RA; //! J2000 right ascension of host star float RA; //! J2000 right ascension of host star
float DE; //! J2000 declination of hos t star float DE; //! J2000 declination of hos t star
float distance; //! Distance to star in pc float distance; //! Distance to star in pc
QString stype; //! Spectral type of star QString stype; //! Spectral type of star
float smass; //! Mass of star in Msun float smass; //! Mass of star in Msun
float smetal; //! [Fe/H] of star float smetal; //! [Fe/H] of star
float Vmag; //! Visual magnitude of star float Vmag; //! Visual magnitude of star
 End of changes. 6 change blocks. 
10 lines changed or deleted 8 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/