Stellarium 0.11.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Public Slots | Signals

StelCore Class Reference

Main class for Stellarium core processing. More...

#include <StelCore.hpp>

List of all members.

Public Slots

void setCurrentProjectionType (ProjectionType type)
ProjectionType getCurrentProjectionType () const
QString getCurrentProjectionTypeKey (void) const
void setCurrentProjectionTypeKey (QString type)
QStringList getAllProjectionTypeKeys () const
void setMaskType (StelProjector::StelProjectorMaskType m)
void setFlagGravityLabels (bool gravity)
void setDefautAngleForGravityText (float a)
void setFlipHorz (bool flip)
void setFlipVert (bool flip)
bool getFlipHorz (void) const
bool getFlipVert (void) const
QString getDefaultLocationID () const
void setDefaultLocationID (const QString &id)
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 ()

Signals

void locationChanged (StelLocation)
void timeRateChanged (double rate)

Detailed Description

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.

Author:
Fabien Chereau

Member Function Documentation

void StelCore::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 StelCore::addSiderealDays ( double  d) [slot]

Add a number of sidereal days to the current simulation time, based on the observer body's rotational period.

Parameters:
dthe decimal number of sidereal days to add (use negative values to subtract)
void StelCore::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 StelCore::addSolarDays ( double  d) [slot]

Add a number of Earth Solar days to the current simulation time.

Parameters:
dthe decimal number of days to add (use negative values to subtract)
bool StelCore::getFlipHorz ( void  ) const [inline, slot]

Get the state of the horizontal flip.

Returns:
True if flipped horizontally, else false.
bool StelCore::getFlipVert ( void  ) const [inline, slot]

Get the state of the vertical flip.

Returns:
True if flipped vertically, else false.
void StelCore::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 StelCore::setFlagGravityLabels ( bool  gravity) [inline, 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.

void StelCore::setFlipHorz ( bool  flip) [inline, slot]

Set the horizontal flip status.

Parameters:
flipThe new value (true = flipped, false = unflipped).
void StelCore::setFlipVert ( bool  flip) [inline, slot]

Set the vertical flip status.

Parameters:
flipThe new value (true = flipped, false = unflipped).
void StelCore::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 StelCore::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.