![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
#include <StelNavigator.hpp>
Public Slots | |
void | setJDay (double JD) |
double | getJDay () const |
void | setTimeRate (double ts) |
double | getTimeRate () const |
void | increaseTimeSpeed () |
void | decreaseTimeSpeed () |
void | increaseTimeSpeedLess () |
void | decreaseTimeSpeedLess () |
void | setZeroTimeSpeed () |
void | setRealTimeSpeed () |
void | toggleRealTimeSpeed () |
bool | getRealTimeSpeed () const |
void | setTimeNow () |
void | setTodayTime (const QTime &target) |
bool | getIsTimeNow () const |
QTime | getInitTodayTime (void) |
void | setInitTodayTime (const QTime &t) |
void | setPresetSkyTime (QDateTime dt) |
void | addHour () |
void | addDay () |
void | addWeek () |
void | addSiderealDay () |
void | addSiderealWeek () |
void | subtractHour () |
void | subtractDay () |
void | subtractWeek () |
void | subtractSiderealDay () |
void | subtractSiderealWeek () |
void | addSolarDays (double d) |
void | addSiderealDays (double d) |
void | moveObserverToSelected () |
QString | getDefaultLocationID () const |
void | setDefaultLocationID (const QString &id) |
Signals | |
void | locationChanged (StelLocation) |
void | timeRateChanged (double rate) |
Public Member Functions | |
void | init () |
void | updateTime (double deltaTime) |
void | updateTransformMatrices (void) |
void | lookAtJ2000 (const Vec3d &pos, const Vec3d &up) |
const StelLocation & | getCurrentLocation () const |
void | moveObserverTo (const StelLocation &target, double duration=1., double durationIfPlanetChange=1.) |
double | getLocalSideralTime () const |
double | getLocalSideralDayLength () const |
Vec3d | getObserverHeliocentricEclipticPos () const |
Vec3d | altAzToEquinoxEqu (const Vec3d &v) const |
Vec3d | equinoxEquToAltAz (const Vec3d &v) const |
Vec3d | equinoxEquToJ2000 (const Vec3d &v) const |
Vec3d | altAzToJ2000 (const Vec3d &v) const |
Vec3d | galacticToJ2000 (const Vec3d &v) const |
Vec3d | j2000ToEquinoxEqu (const Vec3d &v) const |
Vec3d | j2000ToAltAz (const Vec3d &v) const |
Vec3d | j2000ToGalactic (const Vec3d &v) const |
Vec3d | heliocentricEclipticToAltAz (const Vec3d &v) const |
Vec3d | heliocentricEclipticToEquinoxEqu (const Vec3d &v) const |
Vec3d | heliocentricEclipticToEarthPosEquinoxEqu (const Vec3d &v) const |
const Mat4d | getHeliocentricEclipticModelViewMat () const |
const Mat4d | getObservercentricEclipticModelViewMat () const |
const Mat4d | getEquinoxEquModelViewMat () const |
const Mat4d & | getAltAzModelViewMat () const |
const Mat4d | getJ2000ModelViewMat () const |
const Mat4d | getGalacticModelViewMat () const |
double | getPresetSkyTime () const |
void | setPresetSkyTime (double d) |
QString | getStartupTimeMode () |
void | setStartupTimeMode (const QString &s) |
Static Public Attributes | |
static const Mat4d | matJ2000ToVsop87 |
static const Mat4d | matVsop87ToJ2000 |
static const Mat4d | matJ2000ToGalactic |
static const Mat4d | matGalacticToJ2000 |
Properties | |
double | timeRate |
This includes:
const StelLocation& StelNavigator::getCurrentLocation | ( | ) | const |
Get the informations on the current location.
void StelNavigator::moveObserverTo | ( | const StelLocation & | target, | |
double | duration = 1. , |
|||
double | durationIfPlanetChange = 1. | |||
) |
Smoothly move the observer to the given location.
target | the target location | |
duration | direction of view move duration in s | |
durationIfPlanetChange | direction of view + planet travel move duration in s. This is used only if the destination planet is different from the starting one. |
double StelNavigator::getLocalSideralTime | ( | ) | const |
Get the sideral time shifted by the observer longitude.
double StelNavigator::getLocalSideralDayLength | ( | ) | const |
Get the duration of a sideral day for the current observer in day.
Vec3d StelNavigator::getObserverHeliocentricEclipticPos | ( | ) | const |
Return the observer heliocentric ecliptic position.
Transform vector from heliocentric ecliptic coordinate to altazimuthal.
Transform from heliocentric coordinate to equatorial at current equinox (for the planet where the observer stands).
Transform vector from heliocentric coordinate to false equatorial : equatorial coordinate but centered on the observer position (usefull for objects close to earth).
const Mat4d StelNavigator::getHeliocentricEclipticModelViewMat | ( | ) | const [inline] |
Get the modelview matrix for heliocentric ecliptic (Vsop87) drawing.
const Mat4d StelNavigator::getObservercentricEclipticModelViewMat | ( | ) | const [inline] |
Get the modelview matrix for observer-centric ecliptic (Vsop87) drawing.
const Mat4d StelNavigator::getEquinoxEquModelViewMat | ( | ) | const [inline] |
Get the modelview matrix for observer-centric equatorial at equinox drawing.
const Mat4d& StelNavigator::getAltAzModelViewMat | ( | ) | const [inline] |
Get the modelview matrix for observer-centric altazimuthal drawing.
const Mat4d StelNavigator::getJ2000ModelViewMat | ( | ) | const [inline] |
Get the modelview matrix for observer-centric J2000 equatorial drawing.
const Mat4d StelNavigator::getGalacticModelViewMat | ( | ) | const [inline] |
Get the modelview matrix for observer-centric Galactic equatorial drawing.
double StelNavigator::getPresetSkyTime | ( | ) | const [inline] |
Return the preset sky time in JD.
void StelNavigator::setPresetSkyTime | ( | double | d | ) | [inline] |
Set the preset sky time from a JD.
QString StelNavigator::getStartupTimeMode | ( | ) | [inline] |
Return the startup mode, can be preset|Preset or anything else.
void StelNavigator::setJDay | ( | double | JD | ) | [inline, slot] |
Set the current date in Julian Day.
double StelNavigator::getJDay | ( | ) | const [inline, slot] |
Get the current date in Julian Day.
void StelNavigator::setTimeRate | ( | double | ts | ) | [inline, slot] |
Set time speed in JDay/sec.
double StelNavigator::getTimeRate | ( | ) | const [inline, slot] |
Get time speed in JDay/sec.
void StelNavigator::increaseTimeSpeed | ( | ) | [slot] |
Increase the time speed.
void StelNavigator::decreaseTimeSpeed | ( | ) | [slot] |
Decrease the time speed.
void StelNavigator::increaseTimeSpeedLess | ( | ) | [slot] |
Increase the time speed, but not as much as with increaseTimeSpeed().
void StelNavigator::decreaseTimeSpeedLess | ( | ) | [slot] |
Decrease the time speed but not as much as with decreaseTimeSpeed().
void StelNavigator::setZeroTimeSpeed | ( | ) | [inline, slot] |
Set time speed to 0, i.e. freeze the passage of simulation time.
void StelNavigator::setRealTimeSpeed | ( | ) | [inline, slot] |
Set real time speed, i.e. 1 sec/sec.
void StelNavigator::toggleRealTimeSpeed | ( | ) | [inline, slot] |
Set real time speed or pause simulation if we are already in realtime speed.
bool StelNavigator::getRealTimeSpeed | ( | ) | const [inline, slot] |
Get whether it is real time speed, i.e. 1 sec/sec.
void StelNavigator::setTimeNow | ( | ) | [slot] |
Set stellarium time to current real world time.
void StelNavigator::setTodayTime | ( | const QTime & | target | ) | [slot] |
Set the time to some value, leaving the day the same.
bool StelNavigator::getIsTimeNow | ( | ) | const [slot] |
Get whether the current stellarium time is the real world time.
QTime StelNavigator::getInitTodayTime | ( | void | ) | [inline, slot] |
get the initial "today time" from the config file
void StelNavigator::setInitTodayTime | ( | const QTime & | t | ) | [inline, slot] |
set the initial "today time" from the config file
void StelNavigator::setPresetSkyTime | ( | QDateTime | dt | ) | [slot] |
Set the preset sky time from a QDateTime.
void StelNavigator::addHour | ( | ) | [inline, slot] |
Add one [Earth, solar] hour to the current simulation time.
void StelNavigator::addDay | ( | ) | [inline, slot] |
Add one [Earth, solar] day to the current simulation time.
void StelNavigator::addWeek | ( | ) | [inline, slot] |
Add one [Earth, solar] week to the current simulation time.
void StelNavigator::addSiderealDay | ( | ) | [inline, 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.
void StelNavigator::addSiderealWeek | ( | ) | [inline, slot] |
Add one sidereal week to the simulation time.
The length of time depends on the current planetary body on which the observer is located.
void StelNavigator::subtractHour | ( | ) | [inline, slot] |
Subtract one [Earth, solar] hour to the current simulation time.
void StelNavigator::subtractDay | ( | ) | [inline, slot] |
Subtract one [Earth, solar] day to the current simulation time.
void StelNavigator::subtractWeek | ( | ) | [inline, slot] |
Subtract one [Earth, solar] week to the current simulation time.
void StelNavigator::subtractSiderealDay | ( | ) | [inline, slot] |
Subtract one sidereal week to the simulation time.
The length of time depends on the current planetary body on which the observer is located.
void StelNavigator::subtractSiderealWeek | ( | ) | [inline, slot] |
Subtract one sidereal week to the simulation time.
The length of time depends on the current planetary body on which the observer is located.
void StelNavigator::addSolarDays | ( | double | d | ) | [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) |
void StelNavigator::addSiderealDays | ( | double | d | ) | [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) |
void StelNavigator::moveObserverToSelected | ( | ) | [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.
QString StelNavigator::getDefaultLocationID | ( | ) | const [inline, slot] |
Get the location used by default at startup.
void StelNavigator::setDefaultLocationID | ( | const QString & | id | ) | [slot] |
Set the location to use by default at startup.
void StelNavigator::locationChanged | ( | StelLocation | ) | [signal] |
This signal is emitted when the observer location has changed.
void StelNavigator::timeRateChanged | ( | double | rate | ) | [signal] |
This signal is emitted when the time rate has changed.
const Mat4d StelNavigator::matJ2000ToVsop87 [static] |
Rotation matrix from equatorial J2000 to ecliptic (Vsop87).
const Mat4d StelNavigator::matVsop87ToJ2000 [static] |
Rotation matrix from ecliptic (Vsop87) to equatorial J2000.
const Mat4d StelNavigator::matJ2000ToGalactic [static] |
Rotation matrix from J2000 to Galactic reference frame, using FITS convention.
const Mat4d StelNavigator::matGalacticToJ2000 [static] |
Rotation matrix from J2000 to Galactic reference frame, using FITS convention.