Satellite.hpp   Satellite.hpp 
skipping to change at line 96 skipping to change at line 96
//! //!
//! Thanks to operator<() overloading, container classes (QList, QMap, etc) //! Thanks to operator<() overloading, container classes (QList, QMap, etc)
//! with Satellite or SatelliteP objects can be sorted by satellite name/ID . //! with Satellite or SatelliteP objects can be sorted by satellite name/ID .
//! @ingroup satellites //! @ingroup satellites
class Satellite : public StelObject class Satellite : public StelObject
{ {
friend class Satellites; friend class Satellites;
friend class SatellitesDialog; friend class SatellitesDialog;
friend class SatellitesListModel; friend class SatellitesListModel;
Q_ENUMS(OptStatus)
public: public:
//! @enum OptStatus operational statuses
enum OptStatus
{
StatusOperational = 1,
StatusNonoperational = 2,
StatusPartiallyOperational = 3,
StatusStandby = 4,
StatusSpare = 5,
StatusExtendedMission = 6,
StatusDecayed = 7,
StatusUnknown = 0
};
//! \param identifier unique identifier (currently the Catalog Numbe r) //! \param identifier unique identifier (currently the Catalog Numbe r)
//! \param data a QMap which contains the details of the satellite //! \param data a QMap which contains the details of the satellite
//! (TLE set, description etc.) //! (TLE set, description etc.)
Satellite(const QString& identifier, const QVariantMap& data); Satellite(const QString& identifier, const QVariantMap& data);
~Satellite(); ~Satellite();
//! Get a QVariantMap which describes the satellite. Could be used to //! Get a QVariantMap which describes the satellite. Could be used to
//! create a duplicate. //! create a duplicate.
QVariantMap getMap(void); QVariantMap getMap(void);
skipping to change at line 125 skipping to change at line 139
//! @param flags a set of flags with information types to include. //! @param flags a set of flags with information types to include.
//! Supported types for Satellite objects: //! Supported types for Satellite objects:
//! - Name: designation in large type with the description underneat h //! - Name: designation in large type with the description underneat h
//! - RaDecJ2000, RaDecOfDate, HourAngle, AltAzi //! - RaDecJ2000, RaDecOfDate, HourAngle, AltAzi
//! - Extra: range, rage rate and altitude of satellite above the Ea rth, comms frequencies, modulation types and so on. //! - Extra: range, rage rate and altitude of satellite above the Ea rth, comms frequencies, modulation types and so on.
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;
virtual float getVMagnitude(const StelCore* core) const; virtual float getVMagnitude(const StelCore* core) const;
virtual double getAngularSize(const StelCore* core) const; virtual double getAngularSize(const StelCore* core) const;
virtual QString getNameI18n(void) const virtual QString getNameI18n(void) const;
{
return name;
}
virtual QString getEnglishName(void) const virtual QString getEnglishName(void) const
{ {
return name; return name;
} }
//! Returns the (NORAD) catalog number. (For now, the ID string.) //! Returns the (NORAD) catalog number. (For now, the ID string.)
QString getCatalogNumberString() const {return id;} QString getCatalogNumberString() const {return id;}
//! Set new tleElements. This assumes the designation is already se t, populates //! Set new tleElements. This assumes the designation is already se t, populates
//! the tleElements values and configures internal orbit parameters. //! the tleElements values and configures internal orbit parameters.
void setNewTleElements(const QString& tle1, const QString& tle2); void setNewTleElements(const QString& tle1, const QString& tle2);
skipping to change at line 169 skipping to change at line 180
//! Sets #internationalDesignator and #jdLaunchYearJan1. //! Sets #internationalDesignator and #jdLaunchYearJan1.
void parseInternationalDesignator(const QString& tle1); void parseInternationalDesignator(const QString& tle1);
//! Needed for sorting lists (if this ever happens...). //! Needed for sorting lists (if this ever happens...).
//! Compares #name fields. If equal, #id fields, which can't be. //! Compares #name fields. If equal, #id fields, which can't be.
bool operator<(const Satellite& another) const; bool operator<(const Satellite& another) const;
//! Calculation of illuminated fraction of the satellite. //! Calculation of illuminated fraction of the satellite.
float calculateIlluminatedFraction() const; float calculateIlluminatedFraction() const;
//! Get operational status of satellite
QString getOperationalStatus() const;
private: private:
//draw orbits methods //draw orbits methods
void computeOrbitPoints(); void computeOrbitPoints();
void drawOrbit(StelPainter& painter); void drawOrbit(StelPainter& painter);
//! returns 0 - 1.0 for the DRAWORBIT_FADE_NUMBER segments at //! returns 0 - 1.0 for the DRAWORBIT_FADE_NUMBER segments at
//! each end of an orbit, with 1 in the middle. //! each end of an orbit, with 1 in the middle.
float calculateOrbitSegmentIntensity(int segNum); float calculateOrbitSegmentIntensity(int segNum);
private: private:
bool initialized; bool initialized;
skipping to change at line 211 skipping to change at line 225
QString description; QString description;
//! International Designator / COSPAR designation / NSSDC ID. //! International Designator / COSPAR designation / NSSDC ID.
QString internationalDesignator; QString internationalDesignator;
//! Julian date of Jan 1st of the launch year. //! Julian date of Jan 1st of the launch year.
//! Used to hide satellites before their launch date. //! Used to hide satellites before their launch date.
//! Extracted from TLE set with parseInternationalDesignator(). //! Extracted from TLE set with parseInternationalDesignator().
//! It defaults to 1 Jan 1957 if extraction fails. //! It defaults to 1 Jan 1957 if extraction fails.
double jdLaunchYearJan1; double jdLaunchYearJan1;
//! Standard visual magnitude of the satellite. //! Standard visual magnitude of the satellite.
double stdMag; double stdMag;
//! Operational status code
int status;
//! Contains the J2000 position. //! Contains the J2000 position.
Vec3d XYZ; Vec3d XYZ;
QPair< QByteArray, QByteArray > tleElements; QPair< QByteArray, QByteArray > tleElements;
double height, range, rangeRate; double height, range, rangeRate;
QList<CommLink> comms; QList<CommLink> comms;
Vec3f hintColor; Vec3f hintColor;
//! Identifiers of the groups to which the satellite belongs. //! Identifiers of the groups to which the satellite belongs.
//! See @ref groups. //! See @ref groups.
GroupSet groups; GroupSet groups;
QDateTime lastUpdated; QDateTime lastUpdated;
 End of changes. 5 change blocks. 
4 lines changed or deleted 20 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/