Stellarium 0.15.2
|
Main class of the module, inherits from StelModule. More...
#include <Scenery3dMgr.hpp>
Public Slots | |
void | reloadShaders () |
Clears the shader cache, forcing a reload of shaders on use. More... | |
void | showMessage (const QString &message) |
Display text message on screen, fade out automatically. More... | |
void | showStoredViewDialog () |
Shows the stored view dialog. More... | |
void | setEnableScene (const bool val) |
Enables/Disables the plugin. More... | |
bool | getEnableScene () const |
void | setEnablePixelLighting (const bool val) |
bool | getEnablePixelLighting (void) const |
void | setEnableShadows (const bool enableShadows) |
Use this to set/get the enableShadows flag. More... | |
bool | getEnableShadows (void) const |
void | setUseSimpleShadows (const bool simpleShadows) |
If true, only 1 shadow cascade is used, giving a speedup. More... | |
bool | getUseSimpleShadows () const |
void | setEnableBumps (const bool enableBumps) |
Use this to set/get the enableBumps flag. More... | |
bool | getEnableBumps (void) const |
S3DEnum::ShadowFilterQuality | getShadowFilterQuality (void) const |
Returns the current shadow filter quality. More... | |
void | setShadowFilterQuality (const S3DEnum::ShadowFilterQuality val) |
Sets the shadow filter quality. More... | |
void | setEnablePCSS (const bool val) |
bool | getEnablePCSS () const |
S3DEnum::CubemappingMode | getCubemappingMode (void) const |
Returns the current cubemapping mode. More... | |
void | setCubemappingMode (const S3DEnum::CubemappingMode val) |
Sets the cubemapping mode. More... | |
bool | getUseFullCubemapShadows () const |
void | setUseFullCubemapShadows (const bool useFullCubemapShadows) |
void | setEnableDebugInfo (const bool debugEnabled) |
Set to true to show some rendering debug information. More... | |
bool | getEnableDebugInfo () const |
void | setEnableLocationInfo (const bool enableLocationInfo) |
Set to true to show the current standing positin as text on screen. More... | |
bool | getEnableLocationInfo () const |
void | setEnableTorchLight (const bool enableTorchLight) |
Set to true to add an additional light source centered at the current position, useful in night scenes. More... | |
bool | getEnableTorchLight () const |
void | setTorchStrength (const float torchStrength) |
Sets the strength of the additional illumination that can be toggled when pressing a button. More... | |
float | getTorchStrength () const |
void | setTorchRange (const float torchRange) |
Sets the range of the torchlight. More... | |
float | getTorchRange () const |
void | setEnableLazyDrawing (const bool val) |
Sets the state of the cubemap lazy-drawing mode. More... | |
bool | getEnableLazyDrawing () const |
void | setOnlyDominantFaceWhenMoving (const bool val) |
When true, only the face which currently is most dominantly visible is updated while moving. More... | |
bool | getOnlyDominantFaceWhenMoving () const |
void | setSecondDominantFaceWhenMoving (const bool val) |
bool | getSecondDominantFaceWhenMoving () const |
void | forceCubemapRedraw () |
Forces a redraw of the cubemap. More... | |
void | setLazyDrawingInterval (const double val) |
Sets the interval for cubemap lazy-drawing mode. More... | |
double | getLazyDrawingInterval () const |
void | setCubemapSize (const uint val) |
Sets the size used for cubemap rendering. More... | |
uint | getCubemapSize () const |
void | setShadowmapSize (const uint val) |
Sets the size used for shadowmap rendering. More... | |
uint | getShadowmapSize () const |
bool | getIsGeometryShaderSupported () const |
bool | getAreShadowsSupported () const |
bool | getIsShadowFilteringSupported () const |
bool | getIsANGLE () const |
uint | getMaximumFramebufferSize () const |
SceneInfo | getCurrentScene () const |
Gets the SceneInfo of the scene that is currently being displayed. More... | |
SceneInfo | getLoadingScene () const |
Gets the SceneInfo of the scene that is currently in the process of being loaded. More... | |
SceneInfo | loadScenery3dByName (const QString &name) |
This starts the scene loading process. More... | |
SceneInfo | loadScenery3dByID (const QString &id) |
This starts the scene loading process. More... | |
QString | getDefaultScenery3dID () const |
void | setDefaultScenery3dID (const QString &id) |
void | setView (const StoredView &view, const bool setDate) |
Changes the current view to the given view. JD is updated only if view contains valid data and setDate is true. More... | |
StoredView | getCurrentView () |
Returns a StoredView that represents the current observer position + view direction. More... | |
Signals | |
void | enableSceneChanged (const bool val) |
void | enablePixelLightingChanged (const bool val) |
void | enableShadowsChanged (const bool val) |
void | useSimpleShadowsChanged (const bool val) |
void | enableBumpsChanged (const bool val) |
void | shadowFilterQualityChanged (const S3DEnum::ShadowFilterQuality val) |
void | enablePCSSChanged (const bool val) |
void | cubemappingModeChanged (const S3DEnum::CubemappingMode val) |
void | useFullCubemapShadowsChanged (const bool val) |
void | enableDebugInfoChanged (const bool val) |
void | enableLocationInfoChanged (const bool val) |
void | enableTorchLightChanged (const bool val) |
void | torchStrengthChanged (const float val) |
void | torchRangeChanged (const float val) |
void | enableLazyDrawingChanged (const bool val) |
void | lazyDrawingIntervalChanged (const double val) |
void | onlyDominantFaceWhenMovingChanged (const bool val) |
void | secondDominantFaceWhenMovingChanged (const bool val) |
void | cubemapSizeChanged (const uint val) |
void | shadowmapSizeChanged (const uint val) |
void | currentSceneChanged (const SceneInfo &sceneInfo) |
void | progressReport (const QString &str, int val, int min, int max) |
This signal is emitted from another thread than this QObject belongs to, so use QueuedConnection. More... | |
Public Member Functions | |
virtual void | init () |
Initialize itself. More... | |
virtual void | deinit () |
Called before the module will be delete, and before the openGL context is suppressed. More... | |
virtual void | draw (StelCore *core) |
Execute all the drawing functions for this module. More... | |
virtual void | update (double deltaTime) |
Update the module with respect to the time. More... | |
virtual double | getCallOrder (StelModuleActionName actionName) const |
Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations. More... | |
virtual bool | configureGui (bool show) |
Detect or show the configuration GUI elements for the module. More... | |
virtual void | handleKeys (QKeyEvent *e) |
Handle key events. More... | |
void | updateProgress (const QString &str, int val, int min, int max) |
Sends the progressReport() signal, which eventually updates the progress bar. Can be called from another thread. More... | |
Public Member Functions inherited from StelModule | |
virtual QString | getModuleVersion () const |
Get the version of the module, default is stellarium main version. More... | |
virtual QString | getAuthorName () const |
Get the name of the module author. More... | |
virtual QString | getAuthorEmail () const |
Get the email adress of the module author. More... | |
virtual void | handleMouseClicks (class QMouseEvent *) |
Handle mouse clicks. More... | |
virtual void | handleMouseWheel (class QWheelEvent *) |
Handle mouse wheel. More... | |
virtual bool | handleMouseMoves (int x, int y, Qt::MouseButtons b) |
Handle mouse moves. More... | |
virtual bool | handlePinch (qreal scale, bool started) |
Handle pinch gesture events. More... | |
Properties | |
bool | enableScene |
bool | enablePixelLighting |
bool | enableShadows |
bool | useSimpleShadows |
bool | enableBumps |
S3DEnum::ShadowFilterQuality | shadowFilterQuality |
bool | enablePCSS |
S3DEnum::CubemappingMode | cubemappingMode |
bool | useFullCubemapShadows |
bool | enableDebugInfo |
bool | enableLocationInfo |
bool | enableTorchLight |
float | torchStrength |
float | torchRange |
bool | enableLazyDrawing |
double | lazyDrawingInterval |
bool | onlyDominantFaceWhenMoving |
bool | secondDominantFaceWhenMoving |
uint | cubemapSize |
uint | shadowmapSize |
bool | isGeometryShaderSupported |
bool | areShadowsSupported |
bool | isShadowFilteringSupported |
bool | isANGLE |
uint | maximumFramebufferSize |
Additional Inherited Members | |
Public Types inherited from StelModule | |
enum | StelModuleSelectAction { AddToSelection, ReplaceSelection, RemoveFromSelection } |
Enum used when selecting objects to define whether to add to, replace, or remove from the existing selection list. More... | |
enum | StelModuleActionName { ActionDraw, ActionUpdate, ActionHandleMouseClicks, ActionHandleMouseMoves, ActionHandleKeys } |
Define the possible action for which an order is defined. More... | |
Protected Member Functions inherited from StelModule | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, QObject *target, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to slot) to the StelActionMgr object. More... | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to own slot) to the StelActionMgr object. More... | |
Main class of the module, inherits from StelModule.
Manages initialization, provides an interface to change Scenery3d properties and handles user input
Definition at line 48 of file Scenery3dMgr.hpp.
|
virtual |
Detect or show the configuration GUI elements for the module.
This is to be used with plugins to display a configuration dialog from the plugin list window.
show | if true, make the configuration GUI visible. If false, hide the config GUI if there is one. |
Reimplemented from StelModule.
|
virtual |
Called before the module will be delete, and before the openGL context is suppressed.
Deinitialize all openGL texture in this method.
Reimplemented from StelModule.
|
virtual |
Execute all the drawing functions for this module.
core | the core to use for the drawing |
Reimplemented from StelModule.
|
slot |
Forces a redraw of the cubemap.
|
virtual |
Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations.
actionName | the name of the action for which we want the call order |
Reimplemented from StelModule.
|
slot |
Returns the current cubemapping mode.
|
slot |
Gets the SceneInfo of the scene that is currently being displayed.
Check SceneInfo::isValid to determine if a scene is displayed.
|
slot |
Returns a StoredView that represents the current observer position + view direction.
Label and description are empty.
|
inlineslot |
Gets the SceneInfo of the scene that is currently in the process of being loaded.
Check SceneInfo::isValid to determine if a scene is loaded.
Definition at line 231 of file Scenery3dMgr.hpp.
|
slot |
Returns the current shadow filter quality.
|
virtual |
Handle key events.
Please note that most of the interactions will be done through the GUI module.
e | the Key event |
Reimplemented from StelModule.
|
virtual |
Initialize itself.
If the initialization takes significant time, the progress should be displayed on the loading bar.
Implements StelModule.
|
slot |
This starts the scene loading process.
This is asynchronous, this method returns after metadata loading.
id | a valid scene id/folder path |
|
slot |
This starts the scene loading process.
This is asynchronous, this method returns after metadata loading.
name | a valid scene name |
|
signal |
This signal is emitted from another thread than this QObject belongs to, so use QueuedConnection.
|
slot |
Clears the shader cache, forcing a reload of shaders on use.
|
slot |
Sets the cubemapping mode.
|
slot |
Sets the size used for cubemap rendering.
For best compatibility and performance, this should be a power of 2.
|
slot |
Use this to set/get the enableBumps flag.
If set to true, bump mapping is enabled for the 3D scene.
|
slot |
Set to true to show some rendering debug information.
|
slot |
Sets the state of the cubemap lazy-drawing mode.
|
slot |
Set to true to show the current standing positin as text on screen.
|
slot |
Enables/Disables the plugin.
|
slot |
Use this to set/get the enableShadows flag.
If set to true, shadow mapping is enabled for the 3D scene.
|
slot |
Set to true to add an additional light source centered at the current position, useful in night scenes.
|
slot |
Sets the interval for cubemap lazy-drawing mode.
|
slot |
When true, only the face which currently is most dominantly visible is updated while moving.
|
slot |
Sets the shadow filter quality.
|
slot |
Sets the size used for shadowmap rendering.
For best compatibility and performance, this should be a power of 2.
|
slot |
Sets the range of the torchlight.
|
slot |
Sets the strength of the additional illumination that can be toggled when pressing a button.
|
slot |
If true, only 1 shadow cascade is used, giving a speedup.
|
slot |
Changes the current view to the given view. JD is updated only if view contains valid data and setDate is true.
|
slot |
Display text message on screen, fade out automatically.
|
slot |
Shows the stored view dialog.
|
virtual |
Update the module with respect to the time.
deltaTime | the time increment in second since last call. |
Implements StelModule.
void Scenery3dMgr::updateProgress | ( | const QString & | str, |
int | val, | ||
int | min, | ||
int | max | ||
) |
Sends the progressReport() signal, which eventually updates the progress bar. Can be called from another thread.