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 "StelProjectorType.hpp" #include "StelTextureTypes.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
QString hclass; //! Exoplanet habitable class
int MSTemp; //! Exoplanet mean surface temperature (Kelv
in)
int ESI; //! Exoplanet Earth Similarity Index
} 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 68 skipping to change at line 73
//! Get a QVariantMap which describes the exoplanet. Could be used t o //! Get a QVariantMap which describes the exoplanet. Could be used t o
//! 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 "Exoplanet"; return "Exoplanet";
} }
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 //! Get the visual magnitude
virtual float getVMagnitude(const StelCore* core, bool withExtinctio n=false) const; virtual float getVMagnitude(const StelCore* core) 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;
//! Get the english name //! Get the english name
virtual QString getEnglishName(void) const virtual QString getEnglishName(void) const
{ {
return designation; return designation;
} }
bool isDiscovered(const StelCore* core); bool isDiscovered(const StelCore* core);
void update(double deltaTime); void update(double deltaTime);
int getCountExoplanets(void) const
{
return EPCount;
}
int getCountHabitableExoplanets(void) const
{
return PHEPCount;
}
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 Vec3f habitableExoplanetMarkerColor;
static Vec3f exoplanetMarkerColor;
static bool distributionMode;
static bool timelineMode;
static bool habitableMode;
void draw(StelCore* core, StelPainter *painter);
int EPCount;
int PHEPCount;
//! 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. 7 change blocks. 
5 lines changed or deleted 30 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/