Manages the displaying of the Milky Way.
More...
#include <MilkyWay.hpp>
|
double | getIntensity () const |
| Get Milky Way intensity (brightness).
|
|
void | setIntensity (double aintensity) |
| Set Milky Way intensity. Default value: 1.
|
|
double | getSaturation () const |
| Get Milky Way saturation (color strength).
|
|
void | setSaturation (double sat) |
| Set Milky Way saturation (color strength).
|
|
Vec3f | getColor () const |
| Get the color used for rendering the Milky Way. It is modulated by intensity, light pollution and atmospheric extinction.
|
|
void | setColor (const Vec3f &c) |
| Sets the color to use for rendering the Milky Way. More...
|
|
void | setFlagShow (bool b) |
| Sets whether to show the Milky Way.
|
|
bool | getFlagShow (void) const |
| Gets whether the Milky Way is displayed.
|
|
|
void | milkyWayDisplayedChanged (const bool displayed) |
|
void | intensityChanged (double intensity) |
|
void | saturationChanged (double saturation) |
|
void | colorChanged (Vec3f color) |
|
|
bool | flagMilkyWayDisplayed |
|
double | intensity |
|
Vec3f | color |
|
double | saturation = 1.0 |
|
|
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...
|
|
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...
|
|
◆ getCallOrder()
Other actions return 0 for no action.
Reimplemented from StelModule.
◆ init()
virtual void MilkyWay::init |
( |
| ) |
|
|
virtual |
Here we load the texture for the Milky Way and get the display settings from application settings, namely the flag which determines if the Milky Way is displayed or not, and the intensity setting.
Implements StelModule.
◆ setColor
void MilkyWay::setColor |
( |
const Vec3f & |
c | ) |
|
|
inlineslot |
- Parameters
-
c | The color to use for rendering the Milky Way. Default (1.0, 1.0, 1.0) |
◆ update()
virtual void MilkyWay::update |
( |
double |
deltaTime | ) |
|
|
virtual |
Updates the fade level while the Milky way rendering is being changed from on to off or off to on.
Implements StelModule.