Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classStelApp.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:20:03 2014 Кодировка: Поисковые слова: starspots |
Stellarium 0.12.3
|
Singleton main Stellarium application class. More...
#include <StelApp.hpp>
Public Slots | |
void | setRenderSolarShadows (bool) |
Set flag for activating solar shadow rendering. More... | |
void | setVisionModeNight (bool) |
Set flag for activating night vision mode. More... | |
bool | getVisionModeNight () const |
Get flag for activating night vision mode. More... | |
float | getFps () const |
Get the current number of frame per second. More... | |
static double | getTotalRunTime () |
Return the time since when stellarium is running in second. More... | |
void | reportFileDownloadFinished (QNetworkReply *reply) |
Report that a download occured. More... | |
Signals | |
void | colorSchemeChanged (const QString &) |
void | languageChanged () |
void | skyCultureChanged (const QString &) |
Public Member Functions | |
StelApp (QObject *parent=NULL) | |
Create and initialize the main Stellarium application. More... | |
virtual | ~StelApp () |
Deinitialize and destroy the main Stellarium application. More... | |
void | init (QSettings *conf, class StelRenderer *renderer) |
Initialize core and default modules. More... | |
void | initPlugIns () |
Load and initialize external modules (plugins) More... | |
StelModuleMgr & | getModuleMgr () |
Get the module manager to use for accessing any module loaded in the application. More... | |
StelLocaleMgr & | getLocaleMgr () |
Get the locale manager to use for i18n & date/time localization. More... | |
StelSkyCultureMgr & | getSkyCultureMgr () |
Get the sky cultures manager. More... | |
StelLocationMgr & | getLocationMgr () |
Get the Location manager to use for managing stored locations. More... | |
StelObjectMgr & | getStelObjectMgr () |
Get the StelObject manager to use for querying from all stellarium objects. More... | |
StelSkyLayerMgr & | getSkyImageMgr () |
StelAudioMgr * | getStelAudioMgr () |
Get the audio manager. More... | |
StelShortcutMgr * | getStelShortcutManager () |
Get the shortcuts manager to use for managing and editing shortcuts. More... | |
StelVideoMgr * | getStelVideoMgr () |
Get the video manager. More... | |
StelCore * | getCore () |
Get the core of the program. More... | |
QNetworkAccessManager * | getNetworkAccessManager () |
Get the common instance of QNetworkAccessManager used in stellarium. More... | |
void | updateI18n () |
Update translations, font for GUI and sky everywhere in the program. More... | |
void | updateSkyCulture () |
Update and reload sky culture informations everywhere in the program. More... | |
QSettings * | getSettings () |
Return the main configuration options. More... | |
QString | getCurrentStelStyle () |
Return the currently used style. More... | |
void | update (double deltaTime) |
Update all object according to the deltaTime in seconds. More... | |
bool | drawPartial (class StelRenderer *renderer) |
Iterate through the drawing sequence. More... | |
void | windowHasBeenResized (float x, float y, float w, float h) |
Call this when the size of the window has changed. More... | |
StelGuiBase * | getGui () const |
Get the GUI instance implementing the abstract GUI interface. More... | |
void | setGui (StelGuiBase *b) |
Tell the StelApp instance which GUI si currently being used. More... | |
bool | getRenderSolarShadows () const |
Get whether solar shadows should be rendered. More... | |
Static Public Member Functions | |
static StelApp & | getInstance () |
Get the StelApp singleton instance. More... | |
static void | initStatic () |
static void | deinitStatic () |
Singleton main Stellarium application class.
This is the central class of Stellarium. Only one singleton instance of this class is created and can be accessed from anywhere else. This class is the access point to several "Manager" class which provide application-wide services for managment of font, textures, localization, sky culture, and in theory all other services used by the other part of the program.
The StelApp class is also the one managing the StelModule in a generic manner by calling their update, drawing and other methods when needed.
Definition at line 56 of file StelApp.hpp.
StelApp::StelApp | ( | QObject * | parent = NULL | ) |
Create and initialize the main Stellarium application.
parent | the QObject parent The configFile will be search for in the search path by the StelFileMgr, it is therefor possible to specify either just a file name or path within the search path, or use a full path or even a relative path to an existing file |
|
virtual |
Deinitialize and destroy the main Stellarium application.
bool StelApp::drawPartial | ( | class StelRenderer * | renderer | ) |
Iterate through the drawing sequence.
This allow us to split the slow drawing operation into small parts, we can then decide to pause the painting for this frame and used the cached image instead.
|
inline |
Get the core of the program.
It is the one which provide the projection, navigation and tone converter.
Definition at line 117 of file StelApp.hpp.
|
inline |
Return the currently used style.
Definition at line 132 of file StelApp.hpp.
|
inlineslot |
Get the current number of frame per second.
Definition at line 172 of file StelApp.hpp.
|
inline |
Get the GUI instance implementing the abstract GUI interface.
Definition at line 147 of file StelApp.hpp.
|
inlinestatic |
Get the StelApp singleton instance.
Definition at line 81 of file StelApp.hpp.
|
inline |
Get the locale manager to use for i18n & date/time localization.
Definition at line 89 of file StelApp.hpp.
|
inline |
Get the Location manager to use for managing stored locations.
Definition at line 97 of file StelApp.hpp.
|
inline |
Get the module manager to use for accessing any module loaded in the application.
Definition at line 85 of file StelApp.hpp.
|
inline |
Get the common instance of QNetworkAccessManager used in stellarium.
Definition at line 120 of file StelApp.hpp.
bool StelApp::getRenderSolarShadows | ( | ) | const |
Get whether solar shadows should be rendered.
|
inline |
Return the main configuration options.
Definition at line 129 of file StelApp.hpp.
|
inline |
Get the sky cultures manager.
Definition at line 93 of file StelApp.hpp.
|
inline |
Get the audio manager.
Definition at line 106 of file StelApp.hpp.
|
inline |
Get the StelObject manager to use for querying from all stellarium objects.
Definition at line 101 of file StelApp.hpp.
|
inline |
Get the shortcuts manager to use for managing and editing shortcuts.
Definition at line 109 of file StelApp.hpp.
|
inline |
Get the video manager.
Definition at line 112 of file StelApp.hpp.
|
staticslot |
Return the time since when stellarium is running in second.
|
inlineslot |
Get flag for activating night vision mode.
Definition at line 168 of file StelApp.hpp.
void StelApp::init | ( | QSettings * | conf, |
class StelRenderer * | renderer | ||
) |
Initialize core and default modules.
void StelApp::initPlugIns | ( | ) |
Load and initialize external modules (plugins)
|
slot |
Report that a download occured.
This is used for statistics purposes. Connect this slot to QNetworkAccessManager::finished() slot to obtain statistics at the end of the program.
|
inline |
Tell the StelApp instance which GUI si currently being used.
The caller is responsible for destroying the GUI.
Definition at line 150 of file StelApp.hpp.
|
slot |
Set flag for activating solar shadow rendering.
|
slot |
Set flag for activating night vision mode.
void StelApp::update | ( | double | deltaTime | ) |
Update all object according to the deltaTime in seconds.
void StelApp::updateI18n | ( | ) |
Update translations, font for GUI and sky everywhere in the program.
void StelApp::updateSkyCulture | ( | ) |
Update and reload sky culture informations everywhere in the program.
void StelApp::windowHasBeenResized | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
Call this when the size of the window has changed.