![]() |
Stellarium 0.12.4
|
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 | setDefautAngleForGravityText (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 | setJDay (double JD) |
Set the current date in Julian Day. More... | |
double | getJDay () const |
Get the current date in Julian Day. More... | |
void | setMJDay (double MJD) |
Set the current date in Modified Julian Day. More... | |
double | getMJDay () const |
Get the current date in Modified Julian Day. 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 &t) |
set the initial "today time" from the config file More... | |
void | setPresetSkyTime (QDateTime dt) |
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 | addSiderealWeek () |
Add one sidereal week (7 sidereal days) to the simulation time. More... | |
void | addSiderealMonth () |
Add one sidereal month (1/12 of sidereal year) to the simulation time. More... | |
void | addSiderealYear () |
Add one sidereal year to the simulation time. More... | |
void | addSiderealCentury () |
Add one sidereal century (100 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 | subtractSiderealWeek () |
Subtract one sidereal week (7 sidereal days) to the simulation time. More... | |
void | subtractSiderealMonth () |
Subtract one sidereal month (1/12 of sidereal year) to the simulation time. More... | |
void | subtractSiderealYear () |
Subtract one sidereal year to the simulation time. More... | |
void | subtractSiderealCentury () |
Subtract one sidereal century (100 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 | addTropicalMonth () |
Add one mean tropical month to the simulation time. More... | |
void | addTropicalYear () |
Add one mean tropical year to the simulation time. More... | |
void | addTropicalCentury () |
Add one mean tropical century 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 | subtractTropicalMonth () |
Subtract one mean tropical month to the simulation time. More... | |
void | subtractTropicalYear () |
Subtract one mean tropical year to the simulation time. More... | |
void | subtractTropicalCentury () |
Subtract one mean tropical century 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 | setCustomYear (float y) |
Set year for custom equation for calculation of Delta-T. More... | |
void | setCustomNDot (float v) |
Set n-dot for custom equation for calculation of Delta-T. More... | |
void | setCustomEquationCoefficients (Vec3f c) |
Set coefficients for custom equation for calculation of Delta-T. More... | |
float | getCustomYear () const |
Get year for custom equation for calculation of Delta-T. More... | |
float | getCustomNDot () const |
Get n-dot for custom equation for calculation of Delta-T. More... | |
Vec3f | getCustomEquationCoefficients () 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 themself. 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 46 of file StelCore.hpp.
|
slot |
Add one anomalistic month 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 [Earth, solar] hour to the current simulation time.
|
slot |
Add one sidereal century (100 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 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 month (1/12 of 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 one sidereal week (7 sidereal days) to the simulation time.
The length of time depends on the current planetary body on which the observer is located.
|
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 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 mean tropical century 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 one [Earth, solar] week to the current simulation time.
|
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 300 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.
|
inlineslot |
Get coefficients for custom equation for calculation of Delta-T.
Definition at line 505 of file StelCore.hpp.
|
inlineslot |
Get n-dot for custom equation for calculation of Delta-T.
Definition at line 503 of file StelCore.hpp.
|
inlineslot |
Get year for custom equation for calculation of Delta-T.
Definition at line 501 of file StelCore.hpp.
|
slot |
Get the location used by default at startup.
|
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.
|
slot |
Get the current date in Modified Julian Day.
|
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.
|
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 298 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.
|
inlineslot |
Set coefficients for custom equation for calculation of Delta-T.
y | the coefficients, e.g. -20,0,32 |
Definition at line 498 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 495 of file StelCore.hpp.
|
inlineslot |
Set year for custom equation for calculation of Delta-T.
y | the year, e.g. 1820 |
Definition at line 492 of file StelCore.hpp.
|
slot |
Set the location to use by default at startup.
|
slot |
Set the offset rotation angle in degree to apply to gravity text (only if gravityLabels is set to false).
|
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.
|
slot |
Set the mask type.
|
slot |
Set the current date in Modified Julian Day.
|
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.
|
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 [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 [Earth, solar] hour to the current simulation time.
|
slot |
Subtract one sidereal century (100 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 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 month (1/12 of 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 one sidereal week (7 sidereal days) 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 one synodic month to the simulation time.
|
slot |
Subtract one mean tropical century 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 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.