StelCore.hpp   StelCore.hpp 
skipping to change at line 56 skipping to change at line 56
class StelCore : public QObject class StelCore : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(ProjectionType) Q_ENUMS(ProjectionType)
public: public:
//! @enum FrameType //! @enum FrameType
//! Supported reference frame types //! Supported reference frame types
enum FrameType enum FrameType
{ {
FrameUninitialized, //!< Reference frame is not se t (FMajerech: Added to avoid condition on uninitialized value in StelSkyLay erMgr::draw())
FrameAltAz, //!< Altazimuthal reference fr ame centered on observer. FrameAltAz, //!< Altazimuthal reference fr ame centered on observer.
FrameHeliocentricEcliptic, //!< Ecliptic reference frame centered on the Sun FrameHeliocentricEcliptic, //!< Ecliptic reference frame centered on the Sun
FrameObservercentricEcliptic, //!< Ecliptic reference frame centered on the Observer FrameObservercentricEcliptic, //!< Ecliptic reference frame centered on the Observer
FrameEquinoxEqu, //!< Equatorial reference fram e at the current equinox centered on the observer. FrameEquinoxEqu, //!< Equatorial reference fram e at the current equinox centered on the observer.
// ! The north pole follows the precession of the planet on which the observer is located. // ! The north pole follows the precession of the planet on which the observer is located.
FrameJ2000, //!< Equatorial reference fram e at the J2000 equinox centered on the observer. FrameJ2000, //!< Equatorial reference fram e at the J2000 equinox centered on the observer.
// ! This is also the ICRS reference frame. // ! This is also the ICRS reference frame.
FrameGalactic //! Galactic reference frame c entered on observer. FrameGalactic //! Galactic reference frame c entered on observer.
}; };
skipping to change at line 91 skipping to change at line 92
{ {
RefractionAuto, //!< Automatically decide to add refraction if atmosphere is activated RefractionAuto, //!< Automatically decide to add refraction if atmosphere is activated
RefractionOn, //!< Always add refraction ( i.e. apparent coordinates) RefractionOn, //!< Always add refraction ( i.e. apparent coordinates)
RefractionOff //!< Never add refraction (i .e. geometric coordinates) RefractionOff //!< Never add refraction (i .e. geometric coordinates)
}; };
StelCore(); StelCore();
virtual ~StelCore(); virtual ~StelCore();
//! Init and load all main core components. //! Init and load all main core components.
void init(); void init(class StelRenderer* renderer);
//! Update all the objects with respect to the time. //! Update all the objects with respect to the time.
//! @param deltaTime the time increment in sec. //! @param deltaTime the time increment in sec.
void update(double deltaTime); void update(double deltaTime);
//! Handle the resizing of the window //! Handle the resizing of the window
void windowHasBeenResized(float x, float y, float width, float heigh t); void windowHasBeenResized(float x, float y, float width, float heigh t);
//! Update core state before drawing modules. //! Update core state before drawing modules.
void preDraw(); void preDraw();
//! Update core state after drawing modules. //! Update core state after drawing modules.
void postDraw(); void postDraw(StelRenderer* renderer);
//! Get a new instance of a simple 2d projection. This projection ca nnot be used to project or unproject but //! Get a new instance of a simple 2d projection. This projection ca nnot be used to project or unproject but
//! only for 2d painting //! only for 2d painting
StelProjectorP getProjection2d() const; StelProjectorP getProjection2d() const;
//! Get a new instance of projector using a modelview transformation corresponding to the the given frame. //! Get a new instance of projector using a modelview transformation corresponding to the the given frame.
//! If not specified the refraction effect is included if atmosphere is on. //! If not specified the refraction effect is included if atmosphere is on.
StelProjectorP getProjection(FrameType frameType, RefractionMode ref ractionMode=RefractionAuto) const; StelProjectorP getProjection(FrameType frameType, RefractionMode ref ractionMode=RefractionAuto) const;
//! Get a new instance of projector using the given modelview transf ormatione. //! Get a new instance of projector using the given modelview transf ormatione.
skipping to change at line 206 skipping to change at line 207
static const Mat4d matJ2000ToGalactic; static const Mat4d matJ2000ToGalactic;
//! Rotation matrix from J2000 to Galactic reference frame, using FI TS convention. //! Rotation matrix from J2000 to Galactic reference frame, using FI TS convention.
static const Mat4d matGalacticToJ2000; static const Mat4d matGalacticToJ2000;
//! Return the observer heliocentric ecliptic position //! Return the observer heliocentric ecliptic position
Vec3d getObserverHeliocentricEclipticPos() const; Vec3d getObserverHeliocentricEclipticPos() const;
//! Get the informations on the current location //! Get the informations on the current location
const StelLocation& getCurrentLocation() const; const StelLocation& getCurrentLocation() const;
const QSharedPointer<class Planet> getCurrentPlanet() const;
//! Smoothly move the observer to the given location //! Smoothly move the observer to the given location
//! @param target the target location //! @param target the target location
//! @param duration direction of view move duration in s //! @param duration direction of view move duration in s
//! @param durationIfPlanetChange direction of view + planet travel move duration in s. //! @param durationIfPlanetChange direction of view + planet travel move duration in s.
//! This is used only if the destination planet is different from th e starting one. //! This is used only if the destination planet is different from th e starting one.
void moveObserverTo(const StelLocation& target, double duration=1., double durationIfPlanetChange=1.); void moveObserverTo(const StelLocation& target, double duration=1., double durationIfPlanetChange=1.);
// Conversion in standar Julian time format // Conversion in standar Julian time format
static const double JD_SECOND; static const double JD_SECOND;
static const double JD_MINUTE; static const double JD_MINUTE;
skipping to change at line 330 skipping to change at line 333
//! Add one [Earth, solar] hour to the current simulation time. //! Add one [Earth, solar] hour to the current simulation time.
void addHour(); void addHour();
//! Add one [Earth, solar] day to the current simulation time. //! Add one [Earth, solar] day to the current simulation time.
void addDay(); void addDay();
//! Add one [Earth, solar] week to the current simulation time. //! Add one [Earth, solar] week to the current simulation time.
void addWeek(); void addWeek();
//! Add one sidereal day to the simulation time. The length of time depends //! Add one sidereal day to the simulation time. The length of time depends
//! on the current planetary body on which the observer is located. //! on the current planetary body on which the observer is located.
void addSiderealDay(); void addSiderealDay();
//! Add one sidereal week to the simulation time. The length of time //! Add one sidereal week (7 sidereal days) to the simulation time.
depends The length
//! on the current planetary body on which the observer is located. //! of time depends on the current planetary body on which the obser
ver is located.
void addSiderealWeek(); void addSiderealWeek();
//! Add one sidereal month to the simulation time. The length of tim //! Add one sidereal month (1/12 of sidereal year) to the simulation
e depends time. The length
//! on the current planetary body on which the observer is located. //! of time depends on the current planetary body on which the obser
ver is located.
//! Sidereal year connected to orbital period of planets.
void addSiderealMonth(); void addSiderealMonth();
//! Add one sidereal year to the simulation time. The length of time depends //! Add one sidereal year to the simulation time. The length of time depends
//! on the current planetary body on which the observer is located. //! on the current planetary body on which the observer is located.
Sidereal year
//! connected to orbital period of planets.
void addSiderealYear(); void addSiderealYear();
//! Add one sidereal century (100 sidereal years) to the simulation
time. The length
//! of time depends on the current planetary body on which the obser
ver is located.
//! Sidereal year connected to orbital period of planets.
void addSiderealCentury();
//! Subtract one [Earth, solar] hour to the current simulation time. //! Subtract one [Earth, solar] hour to the current simulation time.
void subtractHour(); void subtractHour();
//! Subtract one [Earth, solar] day to the current simulation time. //! Subtract one [Earth, solar] day to the current simulation time.
void subtractDay(); void subtractDay();
//! Subtract one [Earth, solar] week to the current simulation time. //! Subtract one [Earth, solar] week to the current simulation time.
void subtractWeek(); void subtractWeek();
//! Subtract one sidereal day to the simulation time. The length of time depends //! Subtract one sidereal day to the simulation time. The length of time depends
//! on the current planetary body on which the observer is located. //! on the current planetary body on which the observer is located.
void subtractSiderealDay(); void subtractSiderealDay();
//! Subtract one sidereal week to the simulation time. The length of //! Subtract one sidereal week (7 sidereal days) to the simulation t
time depends ime. The length
//! on the current planetary body on which the observer is located. //! of time depends on the current planetary body on which the obser
ver is located.
void subtractSiderealWeek(); void subtractSiderealWeek();
//! Subtract one sidereal month to the simulation time. The length o //! Subtract one sidereal month (1/12 of sidereal year) to the simul
f time depends ation time. The length
//! on the current planetary body on which the observer is located. //! of time depends on the current planetary body on which the obser
ver is located.
//! Sidereal year connected to orbital period of planets.
void subtractSiderealMonth(); void subtractSiderealMonth();
//! Subtract one sidereal year to the simulation time. The length of time depends //! Subtract one sidereal year to the simulation time. The length of time depends
//! on the current planetary body on which the observer is located. //! on the current planetary body on which the observer is located.
Sidereal year
//! connected to orbital period of planets.
void subtractSiderealYear(); void subtractSiderealYear();
//! Subtract one sidereal century (100 sidereal years) to the simula
tion time. The length
//! of time depends on the current planetary body on which the obser
ver is located.
//! Sidereal year connected to orbital period of planets.
void subtractSiderealCentury();
//! Add one synodic month to the simulation time.
void addSynodicMonth();
//! Add one draconic year to the simulation time.
void addDraconicYear();
//! Add one draconic month to the simulation time.
void addDraconicMonth();
//! Add one anomalistic month to the simulation time.
void addAnomalisticMonth();
//! Add one mean tropical month to the simulation time.
void addTropicalMonth();
//! Add one mean tropical year to the simulation time.
void addTropicalYear();
//! Add one mean tropical century to the simulation time.
void addTropicalCentury();
//! Subtract one synodic month to the simulation time.
void subtractSynodicMonth();
//! Subtract one draconic year to the simulation time.
void subtractDraconicYear();
//! Subtract one draconic month to the simulation time.
void subtractDraconicMonth();
//! Subtract one anomalistic month to the simulation time.
void subtractAnomalisticMonth();
//! Subtract one mean tropical month to the simulation time.
void subtractTropicalMonth();
//! Subtract one mean tropical year to the simulation time.
void subtractTropicalYear();
//! Subtract one mean tropical century to the simulation time.
void subtractTropicalCentury();
//! Add a number of Earth Solar days to the current simulation time //! Add a number of Earth Solar days to the current simulation time
//! @param d the decimal number of days to add (use negative values to subtract) //! @param d the decimal number of days to add (use negative values to subtract)
void addSolarDays(double d); void addSolarDays(double d);
//! Add a number of sidereal days to the current simulation time, //! Add a number of sidereal days to the current simulation time,
//! based on the observer body's rotational period. //! based on the observer body's rotational period.
//! @param d the decimal number of sidereal days to add (use negativ e values to subtract) //! @param d the decimal number of sidereal days to add (use negativ e values to subtract)
void addSiderealDays(double d); void addSiderealDays(double d);
//! Move the observer to the selected object. This will only do some thing if //! Move the observer to the selected object. This will only do some thing if
 End of changes. 12 change blocks. 
16 lines changed or deleted 77 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/