Stellarium 0.14.3
|
Main class for Stellarium core processing. More...
#include <StelCore.hpp>
Public Slots | |
void | setCurrentProjectionType (ProjectionType type) |
Set the current ProjectionType to use. More... | |
ProjectionType | getCurrentProjectionType () const |
QString | getCurrentProjectionTypeKey (void) const |
Get the current Mapping used by the Projection. More... | |
void | setCurrentProjectionTypeKey (QString type) |
Set the current ProjectionType to use from its key. More... | |
QStringList | getAllProjectionTypeKeys () const |
Get the list of all the available projections. More... | |
void | setCurrentDeltaTAlgorithm (DeltaTAlgorithm algorithm) |
Set the current algorithm for time correction (DeltaT) More... | |
DeltaTAlgorithm | getCurrentDeltaTAlgorithm () const |
Get the current algorithm for time correction (DeltaT) More... | |
QString | getCurrentDeltaTAlgorithmDescription (void) const |
Get description of the current algorithm for time correction. More... | |
QString | getCurrentDeltaTAlgorithmKey (void) const |
Get the current algorithm used by the DeltaT. More... | |
void | setCurrentDeltaTAlgorithmKey (QString type) |
Set the current algorithm to use from its key. More... | |
void | setMaskType (StelProjector::StelProjectorMaskType m) |
Set the mask type. More... | |
void | setFlagGravityLabels (bool gravity) |
Set the flag with decides whether to arrage labels so that they are aligned with the bottom of a 2d screen, or a 3d dome. More... | |
void | setDefaultAngleForGravityText (float a) |
Set the offset rotation angle in degree to apply to gravity text (only if gravityLabels is set to false). More... | |
void | setFlipHorz (bool flip) |
Set the horizontal flip status. More... | |
void | setFlipVert (bool flip) |
Set the vertical flip status. More... | |
bool | getFlipHorz (void) const |
Get the state of the horizontal flip. More... | |
bool | getFlipVert (void) const |
Get the state of the vertical flip. More... | |
QString | getDefaultLocationID () const |
Get the location used by default at startup. More... | |
void | setDefaultLocationID (const QString &id) |
Set the location to use by default at startup. More... | |
void | returnToDefaultLocation () |
Return to the default location. More... | |
void | returnToHome () |
Return to the default location and set default landscape with atmosphere and fog effects. More... | |
void | setJD (double newJD) |
Set the current date in Julian Day (UT) More... | |
void | setJDE (double newJDE) |
Set the current date in Julian Day (TT). More... | |
double | getJD () const |
Get the current date in Julian Day (UT). More... | |
double | getJDE () const |
Get the current date in Julian Day (TT). More... | |
void | setMJDay (double MJD) |
Set the current date in Modified Julian Day (UT). More... | |
double | getMJDay () const |
Get the current date in Modified Julian Day (UT) More... | |
double | computeDeltaT (const double JD) const |
Compute Delta-T estimation for a given date. More... | |
double | getDeltaT () const |
Get current DeltaT. More... | |
bool | getUseNutation () const |
void | setUseNutation (bool useNutation) |
Set whether you want computation and simulation of nutation (a slight wobble of Earth's axis, just a few arcseconds). More... | |
bool | getUseTopocentricCoordinates () const |
void | setUseTopocentricCoordinates (bool use) |
Set whether you want computation and simulation of nutation (a slight wobble of Earth's axis, just a few arcseconds). More... | |
double | getPresetSkyTime () const |
Return the preset sky time in JD. More... | |
void | setPresetSkyTime (double d) |
Set the preset sky time from a JD. More... | |
void | setTimeRate (double ts) |
Set time speed in JDay/sec. More... | |
double | getTimeRate () const |
Get time speed in JDay/sec. More... | |
void | increaseTimeSpeed () |
Increase the time speed. More... | |
void | decreaseTimeSpeed () |
Decrease the time speed. More... | |
void | increaseTimeSpeedLess () |
Increase the time speed, but not as much as with increaseTimeSpeed() More... | |
void | decreaseTimeSpeedLess () |
Decrease the time speed but not as much as with decreaseTimeSpeed() More... | |
void | setZeroTimeSpeed () |
Set time speed to 0, i.e. freeze the passage of simulation time. More... | |
void | setRealTimeSpeed () |
Set real time speed, i.e. 1 sec/sec. More... | |
void | toggleRealTimeSpeed () |
Set real time speed or pause simulation if we are already in realtime speed. More... | |
bool | getRealTimeSpeed () const |
Get whether it is real time speed, i.e. 1 sec/sec. More... | |
void | setTimeNow () |
Set stellarium time to current real world time. More... | |
void | setTodayTime (const QTime &target) |
Set the time to some value, leaving the day the same. More... | |
bool | getIsTimeNow () const |
Get whether the current stellarium time is the real world time. More... | |
QTime | getInitTodayTime (void) |
get the initial "today time" from the config file More... | |
void | setInitTodayTime (const QTime &time) |
set the initial "today time" from the config file More... | |
void | setPresetSkyTime (QDateTime dateTime) |
Set the preset sky time from a QDateTime. More... | |
void | addHour () |
Add one [Earth, solar] hour to the current simulation time. More... | |
void | addDay () |
Add one [Earth, solar] day to the current simulation time. More... | |
void | addWeek () |
Add one [Earth, solar] week to the current simulation time. More... | |
void | addSiderealDay () |
Add one sidereal day to the simulation time. More... | |
void | addSiderealYear () |
Add one sidereal year to the simulation time. More... | |
void | addSiderealYears (float n=100.f) |
Add n sidereal years to the simulation time. More... | |
void | subtractHour () |
Subtract one [Earth, solar] hour to the current simulation time. More... | |
void | subtractDay () |
Subtract one [Earth, solar] day to the current simulation time. More... | |
void | subtractWeek () |
Subtract one [Earth, solar] week to the current simulation time. More... | |
void | subtractSiderealDay () |
Subtract one sidereal day to the simulation time. More... | |
void | subtractSiderealYear () |
Subtract one sidereal year to the simulation time. More... | |
void | subtractSiderealYears (float n=100.f) |
Subtract n sidereal years to the simulation time. More... | |
void | addSynodicMonth () |
Add one synodic month to the simulation time. More... | |
void | addDraconicYear () |
Add one draconic year to the simulation time. More... | |
void | addDraconicMonth () |
Add one draconic month to the simulation time. More... | |
void | addAnomalisticMonth () |
Add one anomalistic month to the simulation time. More... | |
void | addAnomalisticYear () |
Add one anomalistic year to the simulation time. More... | |
void | addAnomalisticYears (float n=100.f) |
Add n anomalistic years to the simulation time. More... | |
void | addMeanTropicalMonth () |
Add one mean tropical month to the simulation time. More... | |
void | addMeanTropicalYear () |
Add one mean tropical year to the simulation time. More... | |
void | addMeanTropicalYears (float n=100.f) |
Add n mean tropical years to the simulation time. More... | |
void | addTropicalYear () |
Add one tropical year to the simulation time. More... | |
void | addJulianYear () |
Add one Julian year to the simulation time. More... | |
void | addJulianYears (float n=100.f) |
Add n Julian years to the simulation time. More... | |
void | addGaussianYear () |
Add one Gaussian year to the simulation time. More... | |
void | subtractSynodicMonth () |
Subtract one synodic month to the simulation time. More... | |
void | subtractDraconicYear () |
Subtract one draconic year to the simulation time. More... | |
void | subtractDraconicMonth () |
Subtract one draconic month to the simulation time. More... | |
void | subtractAnomalisticMonth () |
Subtract one anomalistic month to the simulation time. More... | |
void | subtractAnomalisticYear () |
Subtract one anomalistic year to the simulation time. More... | |
void | subtractAnomalisticYears (float n=100.f) |
Subtract n anomalistic years to the simulation time. More... | |
void | subtractMeanTropicalMonth () |
Subtract one mean tropical month to the simulation time. More... | |
void | subtractMeanTropicalYear () |
Subtract one mean tropical year to the simulation time. More... | |
void | subtractMeanTropicalYears (float n=100.f) |
Subtract n mean tropical years to the simulation time. More... | |
void | subtractTropicalYear () |
Subtract one tropical year to the simulation time. More... | |
void | subtractJulianYear () |
Subtract one Julian year to the simulation time. More... | |
void | subtractJulianYears (float n=100.f) |
Subtract n Julian years to the simulation time. More... | |
void | subtractGaussianYear () |
Subtract one Gaussian year to the simulation time. More... | |
void | addSolarDays (double d) |
Add a number of Earth Solar days to the current simulation time. More... | |
void | addSiderealDays (double d) |
Add a number of sidereal days to the current simulation time, based on the observer body's rotational period. More... | |
void | moveObserverToSelected () |
Move the observer to the selected object. More... | |
void | setDeltaTCustomYear (float y) |
Set central year for custom equation for calculation of Delta-T. More... | |
void | setDeltaTCustomNDot (float v) |
Set n-dot for custom equation for calculation of Delta-T. More... | |
void | setDeltaTCustomEquationCoefficients (Vec3f c) |
Set coefficients for custom equation for calculation of Delta-T. More... | |
float | getDeltaTCustomYear () const |
Get central year for custom equation for calculation of Delta-T. More... | |
float | getDeltaTCustomNDot () const |
Get n-dot for custom equation for calculation of Delta-T. More... | |
Vec3f | getDeltaTCustomEquationCoefficients () const |
Get coefficients for custom equation for calculation of Delta-T. More... | |
Signals | |
void | locationChanged (StelLocation) |
This signal is emitted when the observer location has changed. More... | |
void | timeRateChanged (double rate) |
This signal is emitted when the time rate has changed. More... | |
Main class for Stellarium core processing.
This class provides services like management of sky projections, tone conversion, or reference frame conversion. It is used by the various StelModules to update and display themselves. There is currently only one StelCore instance in Stellarium, but in the future they may be more, allowing for example to display several independent views of the sky at the same time.
Definition at line 48 of file StelCore.hpp.
|
slot |
Add one anomalistic month to the simulation time.
|
slot |
Add one anomalistic year to the simulation time.
|
slot |
Add n anomalistic years to the simulation time.
|
slot |
Add one [Earth, solar] day to the current simulation time.
|
slot |
Add one draconic month to the simulation time.
|
slot |
Add one draconic year to the simulation time.
|
slot |
Add one Gaussian year to the simulation time.
|
slot |
Add one [Earth, solar] hour to the current simulation time.
|
slot |
Add one Julian year to the simulation time.
|
slot |
Add n Julian years to the simulation time.
|
slot |
Add one mean tropical month to the simulation time.
|
slot |
Add one mean tropical year to the simulation time.
|
slot |
Add n mean tropical years to the simulation time.
|
slot |
Add one sidereal day to the simulation time.
The length of time depends on the current planetary body on which the observer is located.
|
slot |
Add a number of sidereal days to the current simulation time, based on the observer body's rotational period.
d | the decimal number of sidereal days to add (use negative values to subtract) |
|
slot |
Add one sidereal year to the simulation time.
The length of time depends on the current planetary body on which the observer is located. Sidereal year connected to orbital period of planets.
|
slot |
Add n sidereal years to the simulation time.
The length of time depends on the current planetary body on which the observer is located. Sidereal year connected to orbital period of planets.
|
slot |
Add a number of Earth Solar days to the current simulation time.
d | the decimal number of days to add (use negative values to subtract) |
|
slot |
Add one synodic month to the simulation time.
|
slot |
Add one tropical year to the simulation time.
|
slot |
Add one [Earth, solar] week to the current simulation time.
|
slot |
Compute Delta-T estimation for a given date.
DeltaT is the accumulated effect of earth's rotation slowly getting slower, mostly caused by tidal braking by the Moon. For accurate positioning of objects in the sky, we must compute earth-based clock-dependent things like earth rotation, hour angles etc. using plain UT, but all orbital motions or rotation of the other planets must be computed in TT, which is a regular time frame. Also satellites are computed in the UT frame because (1) they are short-lived and (2) must follow paths over earth ground. (Note that we make no further difference between TT and DT, those are regarded equivalent for our purpose.)
JD | the date and time expressed as a Julian Day |
|
slot |
Decrease the time speed.
|
slot |
Decrease the time speed but not as much as with decreaseTimeSpeed()
|
slot |
Get the list of all the available projections.
|
inlineslot |
Get the current algorithm for time correction (DeltaT)
Definition at line 331 of file StelCore.hpp.
|
slot |
Get description of the current algorithm for time correction.
|
slot |
Get the current algorithm used by the DeltaT.
|
slot |
Get the current Mapping used by the Projection.
|
slot |
Get the location used by default at startup.
|
slot |
Get current DeltaT.
|
inlineslot |
Get coefficients for custom equation for calculation of Delta-T.
Definition at line 585 of file StelCore.hpp.
|
inlineslot |
Get n-dot for custom equation for calculation of Delta-T.
Definition at line 583 of file StelCore.hpp.
|
inlineslot |
Get central year for custom equation for calculation of Delta-T.
Definition at line 581 of file StelCore.hpp.
|
slot |
Get the state of the horizontal flip.
|
slot |
Get the state of the vertical flip.
|
slot |
get the initial "today time" from the config file
|
slot |
Get whether the current stellarium time is the real world time.
|
slot |
Get the current date in Julian Day (UT).
|
slot |
Get the current date in Julian Day (TT).
The name is derived from the classical name "Ephemeris Time", of which TT is the successor. It is still frequently used in the literature.
|
slot |
Get the current date in Modified Julian Day (UT)
|
slot |
Return the preset sky time in JD.
|
slot |
Get whether it is real time speed, i.e. 1 sec/sec.
|
slot |
Get time speed in JDay/sec.
|
inlineslot |
Definition at line 405 of file StelCore.hpp.
|
inlineslot |
Definition at line 410 of file StelCore.hpp.
|
slot |
Increase the time speed.
|
slot |
Increase the time speed, but not as much as with increaseTimeSpeed()
|
signal |
This signal is emitted when the observer location has changed.
|
slot |
Move the observer to the selected object.
This will only do something if the selected object is of the correct type - i.e. a planet.
|
slot |
Return to the default location.
|
slot |
Return to the default location and set default landscape with atmosphere and fog effects.
|
inlineslot |
Set the current algorithm for time correction (DeltaT)
Definition at line 329 of file StelCore.hpp.
|
slot |
Set the current algorithm to use from its key.
|
slot |
Set the current ProjectionType to use.
|
slot |
Set the current ProjectionType to use from its key.
|
slot |
Set the offset rotation angle in degree to apply to gravity text (only if gravityLabels is set to false).
|
slot |
Set the location to use by default at startup.
|
inlineslot |
Set coefficients for custom equation for calculation of Delta-T.
y | the coefficients, e.g. -20,0,32 |
Definition at line 578 of file StelCore.hpp.
|
inlineslot |
Set n-dot for custom equation for calculation of Delta-T.
y | the n-dot value, e.g. -26.0 |
Definition at line 575 of file StelCore.hpp.
|
inlineslot |
Set central year for custom equation for calculation of Delta-T.
y | the year, e.g. 1820 |
Definition at line 572 of file StelCore.hpp.
|
slot |
Set the flag with decides whether to arrage labels so that they are aligned with the bottom of a 2d screen, or a 3d dome.
|
slot |
Set the horizontal flip status.
flip | The new value (true = flipped, false = unflipped). |
|
slot |
Set the vertical flip status.
flip | The new value (true = flipped, false = unflipped). |
|
slot |
set the initial "today time" from the config file
|
slot |
Set the current date in Julian Day (UT)
|
slot |
Set the current date in Julian Day (TT).
The name is derived from the classical name "Ephemeris Time", of which TT is the successor. It is still frequently used in the literature.
|
slot |
Set the mask type.
|
slot |
Set the current date in Modified Julian Day (UT).
MJD is simply JD-2400000.5, getting rid of large numbers and starting days at midnight. It is mostly used in satellite contexts.
|
slot |
Set the preset sky time from a JD.
|
slot |
Set the preset sky time from a QDateTime.
|
slot |
Set real time speed, i.e. 1 sec/sec.
|
slot |
Set stellarium time to current real world time.
|
slot |
Set time speed in JDay/sec.
|
slot |
Set the time to some value, leaving the day the same.
|
inlineslot |
Set whether you want computation and simulation of nutation (a slight wobble of Earth's axis, just a few arcseconds).
Definition at line 407 of file StelCore.hpp.
|
inlineslot |
Set whether you want computation and simulation of nutation (a slight wobble of Earth's axis, just a few arcseconds).
Definition at line 412 of file StelCore.hpp.
|
slot |
Set time speed to 0, i.e. freeze the passage of simulation time.
|
slot |
Subtract one anomalistic month to the simulation time.
|
slot |
Subtract one anomalistic year to the simulation time.
|
slot |
Subtract n anomalistic years to the simulation time.
|
slot |
Subtract one [Earth, solar] day to the current simulation time.
|
slot |
Subtract one draconic month to the simulation time.
|
slot |
Subtract one draconic year to the simulation time.
|
slot |
Subtract one Gaussian year to the simulation time.
|
slot |
Subtract one [Earth, solar] hour to the current simulation time.
|
slot |
Subtract one Julian year to the simulation time.
|
slot |
Subtract n Julian years to the simulation time.
|
slot |
Subtract one mean tropical month to the simulation time.
|
slot |
Subtract one mean tropical year to the simulation time.
|
slot |
Subtract n mean tropical years to the simulation time.
|
slot |
Subtract one sidereal day to the simulation time.
The length of time depends on the current planetary body on which the observer is located.
|
slot |
Subtract one sidereal year to the simulation time.
The length of time depends on the current planetary body on which the observer is located. Sidereal year connected to orbital period of planets.
|
slot |
Subtract n sidereal years to the simulation time.
The length of time depends on the current planetary body on which the observer is located. Sidereal year connected to orbital period of planets.
|
slot |
Subtract one synodic month to the simulation time.
|
slot |
Subtract one tropical year to the simulation time.
|
slot |
Subtract one [Earth, solar] week to the current simulation time.
|
signal |
This signal is emitted when the time rate has changed.
|
slot |
Set real time speed or pause simulation if we are already in realtime speed.