20 #ifndef _MILKYWAY_HPP_ 21 #define _MILKYWAY_HPP_ 23 #include "StelModule.hpp" 24 #include "VecMath.hpp" 32 Q_PROPERTY(
bool flagMilkyWayDisplayed
35 NOTIFY milkyWayDisplayedChanged)
36 Q_PROPERTY(
double intensity
39 NOTIFY intensityChanged)
40 Q_PROPERTY(
Vec3f color
60 virtual void update(
double deltaTime);
72 void setIntensity(
double aintensity) {
if(aintensity!=intensity){ intensity = aintensity; emit intensityChanged(intensity); }}
82 void setColor(
const Vec3f& c) {
if (c!=color) { color=c; emit colorChanged(c);}}
90 void milkyWayDisplayedChanged(
const bool displayed);
91 void intensityChanged(
double intensity);
92 void colorChanged(
Vec3f color);
103 #endif // _MILKYWAY_HPP_ Vec3f getColor() const
Get the color used for rendering the Milky Way. It is modulated by intensity, light pollution and atm...
bool getFlagShow(void) const
Gets whether the Milky Way is displayed.
Implementation of StelFader which implements a linear transition.
Define the StelTextureSP type.
Main class for Stellarium core processing.
void setColor(const Vec3f &c)
Sets the color to use for rendering the Milky Way.
double getIntensity() const
Get Milky Way intensity.
virtual void init()
Initialize the class.
void setFlagShow(bool b)
Sets whether to show the Milky Way.
StelModuleActionName
Define the possible action for which an order is defined.
virtual double getCallOrder(StelModuleActionName actionName) const
actionDraw returns 1 (because this is background, very early drawing).
virtual void update(double deltaTime)
Update and time-dependent state.
Manages the displaying of the Milky Way.
void setIntensity(double aintensity)
Set Milky Way intensity. Default value: 1.
QSharedPointer< StelTexture > StelTextureSP
Use shared pointer to simplify memory managment.
This is the common base class for all the main components of stellarium.
virtual void draw(StelCore *core)
Draw the Milky Way.