MilkyWay.hpp   MilkyWay.hpp 
skipping to change at line 32 skipping to change at line 32
#include "StelModule.hpp" #include "StelModule.hpp"
#include "VecMath.hpp" #include "VecMath.hpp"
#include "StelTextureTypes.hpp" #include "StelTextureTypes.hpp"
//! @class MilkyWay //! @class MilkyWay
//! Manages the displaying of the Milky Way. //! Manages the displaying of the Milky Way.
class MilkyWay : public StelModule class MilkyWay : public StelModule
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool flagMilkyWayDisplayed
READ getFlagShow
WRITE setFlagShow
NOTIFY milkyWayDisplayedChanged)
public: public:
MilkyWay(); MilkyWay();
virtual ~MilkyWay(); virtual ~MilkyWay();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
//! Initialize the class. Here we load the texture for the Milky Wa y and //! Initialize the class. Here we load the texture for the Milky Wa y and
//! get the display settings from application settings, namely the f lag which //! get the display settings from application settings, namely the f lag which
//! determines if the Milky Way is displayed or not, and the intensi ty setting. //! determines if the Milky Way is displayed or not, and the intensi ty setting.
skipping to change at line 72 skipping to change at line 76
//! Get the color used for rendering the milky way //! Get the color used for rendering the milky way
Vec3f getColor() const {return color;} Vec3f getColor() const {return color;}
//! Sets the color to use for rendering the milky way //! Sets the color to use for rendering the milky way
void setColor(const Vec3f& c) {color=c;} void setColor(const Vec3f& c) {color=c;}
//! Sets whether to show the Milky Way //! Sets whether to show the Milky Way
void setFlagShow(bool b); void setFlagShow(bool b);
//! Gets whether the Milky Way is displayed //! Gets whether the Milky Way is displayed
bool getFlagShow(void) const; bool getFlagShow(void) const;
signals:
void milkyWayDisplayedChanged(const bool displayed);
private: private:
StelTextureSP tex; StelTextureSP tex;
Vec3f color; // global color Vec3f color; // global color
float intensity; float intensity;
class LinearFader* fader; class LinearFader* fader;
struct StelVertexArray* vertexArray; struct StelVertexArray* vertexArray;
}; };
#endif // _MILKYWAY_HPP_ #endif // _MILKYWAY_HPP_
 End of changes. 2 change blocks. 
0 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/