Planet.hpp   Planet.hpp 
skipping to change at line 47 skipping to change at line 47
// epoch J2000: 12 UT on 1 Jan 2000 // epoch J2000: 12 UT on 1 Jan 2000
#define J2000 2451545.0 #define J2000 2451545.0
#define ORBIT_SEGMENTS 360 #define ORBIT_SEGMENTS 360
class StelFont; class StelFont;
class StelPainter; class StelPainter;
class StelTranslator; class StelTranslator;
class QOpenGLShaderProgram; class QOpenGLShaderProgram;
// Class used to store orbital elements // Class used to store rotational elements, i.e. axis orientation for the p lanetary body.
class RotationElements class RotationElements
{ {
public: public:
RotationElements(void) : period(1.), offset(0.), epoch(J2000), obliq uity(0.), ascendingNode(0.), precessionRate(0.), siderealPeriod(0.) {} RotationElements(void) : period(1.), offset(0.), epoch(J2000), obliq uity(0.), ascendingNode(0.), precessionRate(0.), siderealPeriod(0.) {}
float period; // rotation period float period; // (sidereal) rotation period [earth days]
float offset; // rotation at epoch float offset; // rotation at epoch [degrees]
double epoch; double epoch; // JD (TD) of epoch for these elements
float obliquity; // tilt of rotation axis w.r.t. ecliptic float obliquity; // tilt of rotation axis w.r.t. ecliptic [rad
float ascendingNode; // long. of ascending node of equator on the ians]
ecliptic float ascendingNode; // long. of ascending node of equator on the
float precessionRate; // rate of precession of rotation axis in rad ecliptic [radians]
s/day float precessionRate; // rate of precession of rotation axis in [ra
double siderealPeriod; // sidereal period (Planet year in earth days ds/JulianCentury(36525d)]
) double siderealPeriod; // sidereal period (Planet year in earth days
) [earth days]
}; };
// Class to manage rings for planets like saturn // Class to manage rings for planets like saturn
class Ring class Ring
{ {
public: public:
Ring(float radiusMin, float radiusMax,const QString &texname); Ring(float radiusMin, float radiusMax,const QString &texname);
double getSize(void) const {return radiusMax;} double getSize(void) const {return radiusMax;}
const float radiusMin; const float radiusMin;
const float radiusMax; const float radiusMax;
skipping to change at line 103 skipping to change at line 103
isSDO, // ssystem.ini: type="sdo" isSDO, // ssystem.ini: type="sdo"
isOCO, // ssystem.ini: type="oco" isOCO, // ssystem.ini: type="oco"
isUNDEFINED // ssystem.ini: type=<anything els e> isUNDEFINED // ssystem.ini: type=<anything els e>
}; };
enum ApparentMagnitudeAlgorithm enum ApparentMagnitudeAlgorithm
{ {
Planesas, // Algorithm provided by Pere Planesas (Obse rvatorio Astronomico Nacional) Planesas, // Algorithm provided by Pere Planesas (Obse rvatorio Astronomico Nacional)
Mueller, // G. Mueller, based on visual observations 1877-91. [Expl.Suppl.1961] Mueller, // G. Mueller, based on visual observations 1877-91. [Expl.Suppl.1961]
Harris, // Astronomical Almanac 1984 and later. Thes e give V (instrumental) magnitudes (D.L. Harris) Harris, // Astronomical Almanac 1984 and later. Thes e give V (instrumental) magnitudes (D.L. Harris)
UndefinedAlgorithm UndefinedAlgorithm,
Generic // Visual magnitude based on phase angle and
albedo
}; };
Planet(const QString& englishName, Planet(const QString& englishName,
int flagLighting, int flagLighting,
double radius, double radius,
double oblateness, double oblateness,
Vec3f color, Vec3f color,
float albedo, float albedo,
const QString& texMapName, const QString& texMapName,
const QString& normalMapName, const QString& normalMapName,
 End of changes. 3 change blocks. 
12 lines changed or deleted 15 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/