Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

StelCore Class Reference

Main class for Stellarium core processing. More...

#include <StelCore.hpp>

List of all members.

Public Slots

void setCurrentProjectionType (ProjectionType type)
 Set the current ProjectionType to use.
ProjectionType getCurrentProjectionType () const
QString getCurrentProjectionTypeKey (void) const
 Get the current Mapping used by the Projection.
void setCurrentProjectionTypeKey (QString type)
 Set the current ProjectionType to use from its key.
QStringList getAllProjectionTypeKeys () const
 Get the list of all the available projections.
void setMaskType (StelProjector::StelProjectorMaskType m)
 Set the mask type.
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.
void setDefautAngleForGravityText (float a)
 Set the offset rotation angle in degree to apply to gravity text (only if gravityLabels is set to false).
void setFlipHorz (bool flip)
 Set the horizontal flip status.
void setFlipVert (bool flip)
 Set the vertical flip status.
bool getFlipHorz (void) const
 Get the state of the horizontal flip.
bool getFlipVert (void) const
 Get the state of the vertical flip.
QString getDefaultLocationID () const
 Get the location used by default at startup.
void setDefaultLocationID (const QString &id)
 Set the location to use by default at startup.
void returnToDefaultLocation ()
 Return to the default location.
void returnToHome ()
 Return to the default location and set default landscape with atmosphere and fog effects.
void setJDay (double JD)
 Set the current date in Julian Day.
double getJDay () const
 Get the current date in Julian Day.
double getPresetSkyTime () const
 Return the preset sky time in JD.
void setPresetSkyTime (double d)
 Set the preset sky time from a JD.
void setTimeRate (double ts)
 Set time speed in JDay/sec.
double getTimeRate () const
 Get time speed in JDay/sec.
void increaseTimeSpeed ()
 Increase the time speed.
void decreaseTimeSpeed ()
 Decrease the time speed.
void increaseTimeSpeedLess ()
 Increase the time speed, but not as much as with increaseTimeSpeed().
void decreaseTimeSpeedLess ()
 Decrease the time speed but not as much as with decreaseTimeSpeed().
void setZeroTimeSpeed ()
 Set time speed to 0, i.e. freeze the passage of simulation time.
void setRealTimeSpeed ()
 Set real time speed, i.e. 1 sec/sec.
void toggleRealTimeSpeed ()
 Set real time speed or pause simulation if we are already in realtime speed.
bool getRealTimeSpeed () const
 Get whether it is real time speed, i.e. 1 sec/sec.
void setTimeNow ()
 Set stellarium time to current real world time.
void setTodayTime (const QTime &target)
 Set the time to some value, leaving the day the same.
bool getIsTimeNow () const
 Get whether the current stellarium time is the real world time.
QTime getInitTodayTime (void)
 get the initial "today time" from the config file
void setInitTodayTime (const QTime &t)
 set the initial "today time" from the config file
void setPresetSkyTime (QDateTime dt)
 Set the preset sky time from a QDateTime.
void addHour ()
 Add one [Earth, solar] hour to the current simulation time.
void addDay ()
 Add one [Earth, solar] day to the current simulation time.
void addWeek ()
 Add one [Earth, solar] week to the current simulation time.
void addSiderealDay ()
 Add one sidereal day to the simulation time.
void addSiderealWeek ()
 Add one sidereal week to the simulation time.
void addSiderealMonth ()
 Add one sidereal month to the simulation time.
void addSiderealYear ()
 Add one sidereal year to the simulation time.
void subtractHour ()
 Subtract one [Earth, solar] hour to the current simulation time.
void subtractDay ()
 Subtract one [Earth, solar] day to the current simulation time.
void subtractWeek ()
 Subtract one [Earth, solar] week to the current simulation time.
void subtractSiderealDay ()
 Subtract one sidereal day to the simulation time.
void subtractSiderealWeek ()
 Subtract one sidereal week to the simulation time.
void subtractSiderealMonth ()
 Subtract one sidereal month to the simulation time.
void subtractSiderealYear ()
 Subtract one sidereal year to the simulation time.
void addSolarDays (double d)
 Add a number of Earth Solar days to the current simulation time.
void addSiderealDays (double d)
 Add a number of sidereal days to the current simulation time, based on the observer body's rotational period.
void moveObserverToSelected ()
 Move the observer to the selected object.

Signals

void locationChanged (StelLocation)
 This signal is emitted when the observer location has changed.
void timeRateChanged (double rate)
 This signal is emitted when the time rate has changed.

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::addDay (  )  [slot]

Add one [Earth, solar] day to the current simulation time.

void StelCore::addHour (  )  [slot]

Add one [Earth, solar] hour to the current simulation time.

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

Add one sidereal month to the simulation time.

The length of time depends on the current planetary body on which the observer is located.

void StelCore::addSiderealWeek (  )  [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::addSiderealYear (  )  [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.

void StelCore::addSolarDays ( double  d  )  [slot]

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

Parameters:
d the decimal number of days to add (use negative values to subtract)
void StelCore::addWeek (  )  [slot]

Add one [Earth, solar] week to the current simulation time.

void StelCore::decreaseTimeSpeed (  )  [slot]

Decrease the time speed.

void StelCore::decreaseTimeSpeedLess (  )  [slot]

Decrease the time speed but not as much as with decreaseTimeSpeed().

QStringList StelCore::getAllProjectionTypeKeys (  )  const [slot]

Get the list of all the available projections.

QString StelCore::getCurrentProjectionTypeKey ( void   )  const [slot]

Get the current Mapping used by the Projection.

QString StelCore::getDefaultLocationID (  )  const [slot]

Get the location used by default at startup.

bool StelCore::getFlipHorz ( void   )  const [slot]

Get the state of the horizontal flip.

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

Get the state of the vertical flip.

Returns:
True if flipped vertically, else false.
QTime StelCore::getInitTodayTime ( void   )  [slot]

get the initial "today time" from the config file

bool StelCore::getIsTimeNow (  )  const [slot]

Get whether the current stellarium time is the real world time.

double StelCore::getJDay (  )  const [slot]

Get the current date in Julian Day.

double StelCore::getPresetSkyTime (  )  const [slot]

Return the preset sky time in JD.

bool StelCore::getRealTimeSpeed (  )  const [slot]

Get whether it is real time speed, i.e. 1 sec/sec.

double StelCore::getTimeRate (  )  const [slot]

Get time speed in JDay/sec.

void StelCore::increaseTimeSpeed (  )  [slot]

Increase the time speed.

void StelCore::increaseTimeSpeedLess (  )  [slot]

Increase the time speed, but not as much as with increaseTimeSpeed().

void StelCore::locationChanged ( StelLocation   )  [signal]

This signal is emitted when the observer location has changed.

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::returnToDefaultLocation (  )  [slot]

Return to the default location.

void StelCore::returnToHome (  )  [slot]

Return to the default location and set default landscape with atmosphere and fog effects.

void StelCore::setCurrentProjectionType ( ProjectionType  type  )  [slot]

Set the current ProjectionType to use.

void StelCore::setCurrentProjectionTypeKey ( QString  type  )  [slot]

Set the current ProjectionType to use from its key.

void StelCore::setDefaultLocationID ( const QString &  id  )  [slot]

Set the location to use by default at startup.

void StelCore::setDefautAngleForGravityText ( float  a  )  [slot]

Set the offset rotation angle in degree to apply to gravity text (only if gravityLabels is set to false).

void StelCore::setFlagGravityLabels ( bool  gravity  )  [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  )  [slot]

Set the horizontal flip status.

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

Set the vertical flip status.

Parameters:
flip The new value (true = flipped, false = unflipped).
void StelCore::setInitTodayTime ( const QTime &  t  )  [slot]

set the initial "today time" from the config file

void StelCore::setJDay ( double  JD  )  [slot]

Set the current date in Julian Day.

void StelCore::setMaskType ( StelProjector::StelProjectorMaskType  m  )  [slot]

Set the mask type.

void StelCore::setPresetSkyTime ( QDateTime  dt  )  [slot]

Set the preset sky time from a QDateTime.

void StelCore::setPresetSkyTime ( double  d  )  [slot]

Set the preset sky time from a JD.

void StelCore::setRealTimeSpeed (  )  [slot]

Set real time speed, i.e. 1 sec/sec.

void StelCore::setTimeNow (  )  [slot]

Set stellarium time to current real world time.

void StelCore::setTimeRate ( double  ts  )  [slot]

Set time speed in JDay/sec.

void StelCore::setTodayTime ( const QTime &  target  )  [slot]

Set the time to some value, leaving the day the same.

void StelCore::setZeroTimeSpeed (  )  [slot]

Set time speed to 0, i.e. freeze the passage of simulation time.

void StelCore::subtractDay (  )  [slot]

Subtract one [Earth, solar] day to the current simulation time.

void StelCore::subtractHour (  )  [slot]

Subtract one [Earth, solar] hour to the current simulation time.

void StelCore::subtractSiderealDay (  )  [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.

void StelCore::subtractSiderealMonth (  )  [slot]

Subtract one sidereal month to the simulation time.

The length of time depends on the current planetary body on which the observer is located.

void StelCore::subtractSiderealWeek (  )  [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::subtractSiderealYear (  )  [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.

void StelCore::subtractWeek (  )  [slot]

Subtract one [Earth, solar] week to the current simulation time.

void StelCore::timeRateChanged ( double  rate  )  [signal]

This signal is emitted when the time rate has changed.

void StelCore::toggleRealTimeSpeed (  )  [slot]

Set real time speed or pause simulation if we are already in realtime speed.

Generated on Sat Aug 25 22:13:32 2012 for Stellarium by  doxygen 1.6.3