ZodiacalLight.hpp   ZodiacalLight.hpp 
skipping to change at line 56 skipping to change at line 56
// The true values would massively concentrate further around the sun, but a single 8bit texture cannot deliver more dynamic range in brightness. // The true values would massively concentrate further around the sun, but a single 8bit texture cannot deliver more dynamic range in brightness.
// The current solution matches my own observations in a very dark location in Namibia, May 2014, and photos taken in Libya in March 2006. // The current solution matches my own observations in a very dark location in Namibia, May 2014, and photos taken in Libya in March 2006.
class ZodiacalLight : public StelModule class ZodiacalLight : public StelModule
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool flagZodiacalLightDisplayed Q_PROPERTY(bool flagZodiacalLightDisplayed
READ getFlagShow READ getFlagShow
WRITE setFlagShow WRITE setFlagShow
NOTIFY zodiacalLightDisplayedChanged) NOTIFY zodiacalLightDisplayedChanged)
Q_PROPERTY(double intensity
READ getIntensity
WRITE setIntensity
NOTIFY intensityChanged
)
public: public:
ZodiacalLight(); ZodiacalLight();
virtual ~ZodiacalLight(); virtual ~ZodiacalLight();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
//! Initialize the class. Here we load the texture for the Zodiacal Light and //! Initialize the class. Here we load the texture for the Zodiacal Light 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 Zodiacal Light is displayed or not, and the in tensity setting. //! determines if the Zodiacal Light is displayed or not, and the in tensity setting.
skipping to change at line 84 skipping to change at line 89
//! Used to determine the order in which the various modules are dra wn. MilkyWay=1, we use 6. //! Used to determine the order in which the various modules are dra wn. MilkyWay=1, we use 6.
virtual double getCallOrder(StelModuleActionName actionName) const { Q_UNUSED(actionName); return 6.;} virtual double getCallOrder(StelModuleActionName actionName) const { Q_UNUSED(actionName); return 6.;}
//////////////////////////////////////////////////////////////////// /////////////////// //////////////////////////////////////////////////////////////////// ///////////////////
// Setter and getters // Setter and getters
public slots: public slots:
//! Get Zodiacal Light intensity. //! Get Zodiacal Light intensity.
double getIntensity() const {return intensity;} double getIntensity() const {return intensity;}
//! Set Zodiacal Light intensity. //! Set Zodiacal Light intensity.
void setIntensity(double aintensity) {intensity = aintensity;} //! @param aintensity intensity of Zodiacal Light
void setIntensity(double aintensity) {if(aintensity!=intensity){inte
nsity = aintensity; emit intensityChanged(intensity);}}
//! Get the color used for rendering the Zodiacal Light //! Get the color used for rendering the Zodiacal Light
Vec3f getColor() const {return color;} Vec3f getColor() const {return color;}
//! Sets the color to use for rendering the Zodiacal Light //! Sets the color to use for rendering the Zodiacal Light
//! @param c The color to use for rendering the Zodiacal Light
//! @code
//! // example of usage in scripts
//! ZodiacalLight.setColor(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColor(const Vec3f& c) {color=c;} void setColor(const Vec3f& c) {color=c;}
//! Sets whether to show the Zodiacal Light //! Sets whether to show the Zodiacal Light
//! @code
//! // example of usage in scripts
//! ZodiacalLight.setFlagShow(true);
//! @endcode
void setFlagShow(bool b); void setFlagShow(bool b);
//! Gets whether the Zodiacal Light is displayed //! Gets whether the Zodiacal Light is displayed
bool getFlagShow(void) const; bool getFlagShow(void) const;
signals: signals:
void zodiacalLightDisplayedChanged(const bool displayed); void zodiacalLightDisplayedChanged(const bool displayed);
void intensityChanged(double intensity);
private: private:
StelTextureSP tex; StelTextureSP tex;
Vec3f color; // global color Vec3f color; // global color
float intensity; double intensity;
class LinearFader* fader; class LinearFader* fader;
double lastJD; // keep date of last computation. Position will be up dated only if far enough away from last computation. double lastJD; // keep date of last computation. Position will be up dated only if far enough away from last computation.
struct StelVertexArray* vertexArray; struct StelVertexArray* vertexArray;
QVector<Vec3d> eclipticalVertices; QVector<Vec3d> eclipticalVertices;
}; };
#endif // _ZODIACALLIGHT_HPP_ #endif // _ZODIACALLIGHT_HPP_
 End of changes. 6 change blocks. 
2 lines changed or deleted 19 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/