![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
Manages a navigation context. More...
#include <StelNavigator.hpp>
Public Slots | |
void | setJDay (double JD) |
double | getJDay () const |
double | getPresetSkyTime () const |
void | setPresetSkyTime (double d) |
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 |
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 |
Manages a navigation context.
This includes:
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::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::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::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) |
double StelNavigator::getLocalSideralTime | ( | ) | const |
Get the sideral time shifted by the observer longitude.
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. |
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.
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.