Exoplanet.hpp   Exoplanet.hpp 
skipping to change at line 63 skipping to change at line 63
//! @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.
//! @ingroup exoplanets //! @ingroup exoplanets
class Exoplanet : public StelObject class Exoplanet : public StelObject
{ {
friend class Exoplanets; friend class Exoplanets;
public: public:
static const QString EXOPLANET_TYPE;
//! @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"
Exoplanet(const QVariantMap& map); Exoplanet(const QVariantMap& map);
~Exoplanet(); ~Exoplanet();
//! 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) const; QVariantMap getMap(void) const;
//! Get the type of object //! Get the type of object
virtual QString getType(void) const virtual QString getType(void) const
{ {
return "Exoplanet"; return EXOPLANET_TYPE;
}
virtual QString getID(void) const
{
return getDesignation();
} }
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;
//! Return a map like StelObject, but with a few extra tags also ava ilable in getMap(). //! Return a map like StelObject, but with a few extra tags also ava ilable in getMap().
//! - distance = distance in pc //! - distance = distance in pc
skipping to change at line 143 skipping to change at line 150
break; break;
case 3: case 3:
return radiusList; return radiusList;
break; break;
case 4: case 4:
return periodList; return periodList;
break; break;
case 5: case 5:
return angleDistanceList; return angleDistanceList;
break; break;
case 6:
return effectiveTempHostStarList;
break;
case 7:
return yearDiscoveryList;
break;
case 8:
return metallicityHostStarList;
break;
case 9:
return vMagHostStarList;
break;
case 10:
return raHostStarList;
break;
case 11:
return decHostStarList;
break;
case 12:
return distanceHostStarList;
break;
case 13:
return massHostStarList;
break;
case 14:
return radiusHostStarList;
break;
default: default:
return eccentricityList; return eccentricityList;
} }
} }
private: private:
QString getPlanetaryClassI18n(QString ptype) const; QString getPlanetaryClassI18n(QString ptype) const;
bool initialized; bool initialized;
skipping to change at line 186 skipping to change at line 220
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
float sradius; //! Radius of star in Rsun float sradius; //! Radius of star in Rsun
int effectiveTemp; //! Effective temperature of star in K int effectiveTemp; //! Effective temperature of star in K
bool hasHabitableExoplanets; //! Has potential habitable exoplanets bool hasHabitableExoplanets; //! Has potential habitable exoplanets
QList<exoplanetData> exoplanets; //! List of exoplanets QList<exoplanetData> exoplanets; //! List of exoplanets
QStringList englishNames, translatedNames, exoplanetDesignations; QStringList englishNames, translatedNames, exoplanetDesignations;
QList<double> eccentricityList, semiAxisList, massList, radiusList, QList<double> eccentricityList, semiAxisList, massList, radiusList,
periodList, angleDistanceList; periodList, angleDistanceList,
effectiveTempHostStarList, yearDiscoveryList, metallic
ityHostStarList, vMagHostStarList,
raHostStarList, decHostStarList, distanceHostStarList,
massHostStarList, radiusHostStarList;
LinearFader labelsFader; LinearFader labelsFader;
}; };
#endif // _EXOPLANET_HPP_ #endif // _EXOPLANET_HPP_
 End of changes. 4 change blocks. 
3 lines changed or deleted 41 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/