GridLinesMgr.hpp   GridLinesMgr.hpp 
skipping to change at line 26 skipping to change at line 26
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _GRIDLINESMGR_HPP_ #ifndef _GRIDLINESMGR_HPP_
#define _GRIDLINESMGR_HPP_ #define _GRIDLINESMGR_HPP_
#include "VecMath.hpp" #include "VecMath.hpp"
#include "StelModule.hpp" #include "StelModule.hpp"
#include "Planet.hpp"
class SkyGrid; class SkyGrid;
class SkyLine; class SkyLine;
class SkyPoint; class SkyPoint;
//! @class GridLinesMgr //! @class GridLinesMgr
//! The GridLinesMgr controls the drawing of the Azimuthal, Equatorial, Ecl iptical and Galactic Grids, //! The GridLinesMgr controls the drawing of the Azimuthal, Equatorial, Ecl iptical and Galactic Grids,
//! as well as the great circles: Meridian Line, Ecliptic Lines of J2000.0 and date, Equator Line (of J2000.0 and date), //! as well as the great circles: Meridian Line, Ecliptic Lines of J2000.0 and date, Equator Line (of J2000.0 and date),
//! Precession Circles, and a special line marking conjunction or oppositio n in ecliptical longitude (of date). //! Precession Circles, and a special line marking conjunction or oppositio n in ecliptical longitude (of date).
class GridLinesMgr : public StelModule class GridLinesMgr : public StelModule
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool gridlinesDisplayed
READ getFlagGridlines
WRITE setFlagGridlines
NOTIFY gridlinesDisplayedChanged)
Q_PROPERTY(bool azimuthalGridDisplayed Q_PROPERTY(bool azimuthalGridDisplayed
READ getFlagAzimuthalGrid READ getFlagAzimuthalGrid
WRITE setFlagAzimuthalGrid WRITE setFlagAzimuthalGrid
NOTIFY azimuthalGridDisplayedChanged) NOTIFY azimuthalGridDisplayedChanged)
Q_PROPERTY(Vec3f azimuthalGridColor Q_PROPERTY(Vec3f azimuthalGridColor
READ getColorAzimuthalGrid READ getColorAzimuthalGrid
WRITE setColorAzimuthalGrid WRITE setColorAzimuthalGrid
NOTIFY azimuthalGridColorChanged) NOTIFY azimuthalGridColorChanged)
Q_PROPERTY(bool equatorGridDisplayed Q_PROPERTY(bool equatorGridDisplayed
skipping to change at line 350 skipping to change at line 356
//! Update time-dependent features. //! Update time-dependent features.
//! Used to control fading when turning on and off the grid lines an d great circles. //! Used to control fading when turning on and off the grid lines an d great circles.
virtual void update(double deltaTime); virtual void update(double deltaTime);
//! Used to determine the order in which the various modules are dra wn. //! Used to determine the order in which the various modules are dra wn.
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
//////////////////////////////////////////////////////////////////// /////////////////// //////////////////////////////////////////////////////////////////// ///////////////////
// Setter and getters // Setter and getters
public slots: public slots:
//! Setter ("master switch") for displaying any grid/line.
void setFlagGridlines(const bool displayed);
//! Accessor ("master switch") for displaying any grid/line.
bool getFlagGridlines(void) const;
//! Setter for displaying Azimuthal Grid. //! Setter for displaying Azimuthal Grid.
void setFlagAzimuthalGrid(const bool displayed); void setFlagAzimuthalGrid(const bool displayed);
//! Accessor for displaying Azimuthal Grid. //! Accessor for displaying Azimuthal Grid.
bool getFlagAzimuthalGrid(void) const; bool getFlagAzimuthalGrid(void) const;
//! Get the current color of the Azimuthal Grid. //! Get the current color of the Azimuthal Grid.
Vec3f getColorAzimuthalGrid(void) const; Vec3f getColorAzimuthalGrid(void) const;
//! Set the color of the Azimuthal Grid. //! Set the color of the Azimuthal Grid.
//! @param newColor The color of azimuthal grid //! @param newColor The color of azimuthal grid
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
skipping to change at line 791 skipping to change at line 802
Vec3f getColorSolsticePoints(void) const; Vec3f getColorSolsticePoints(void) const;
//! Set the color of the solstice points. //! Set the color of the solstice points.
//! @param newColor The color of solstice points //! @param newColor The color of solstice points
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! GridLinesMgr.setColorSolsticePoints(Vec3f(1.0,0.0,0.0)); //! GridLinesMgr.setColorSolsticePoints(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setColorSolsticePoints(const Vec3f& newColor); void setColorSolsticePoints(const Vec3f& newColor);
signals: signals:
void gridlinesDisplayedChanged(const bool) const;
void azimuthalGridDisplayedChanged(const bool) const; void azimuthalGridDisplayedChanged(const bool) const;
void azimuthalGridColorChanged(const Vec3f & newColor) const; void azimuthalGridColorChanged(const Vec3f & newColor) const;
void equatorGridDisplayedChanged(const bool displayed) const; void equatorGridDisplayedChanged(const bool displayed) const;
void equatorGridColorChanged(const Vec3f & newColor) const; void equatorGridColorChanged(const Vec3f & newColor) const;
void equatorJ2000GridDisplayedChanged(const bool displayed) const; void equatorJ2000GridDisplayedChanged(const bool displayed) const;
void equatorJ2000GridColorChanged(const Vec3f & newColor) const; void equatorJ2000GridColorChanged(const Vec3f & newColor) const;
void eclipticGridDisplayedChanged(const bool displayed) const; void eclipticGridDisplayedChanged(const bool displayed) const;
void eclipticGridColorChanged(const Vec3f & newColor) const; void eclipticGridColorChanged(const Vec3f & newColor) const;
void eclipticJ2000GridDisplayedChanged(const bool displayed) const; void eclipticJ2000GridDisplayedChanged(const bool displayed) const;
void eclipticJ2000GridColorChanged(const Vec3f & newColor) const; void eclipticJ2000GridColorChanged(const Vec3f & newColor) const;
skipping to change at line 858 skipping to change at line 870
void equinoxPointsColorChanged(const Vec3f & newColor) const; void equinoxPointsColorChanged(const Vec3f & newColor) const;
void solsticeJ2000PointsDisplayedChanged(const bool displayed) const ; void solsticeJ2000PointsDisplayedChanged(const bool displayed) const ;
void solsticeJ2000PointsColorChanged(const Vec3f & newColor) const; void solsticeJ2000PointsColorChanged(const Vec3f & newColor) const;
void solsticePointsDisplayedChanged(const bool displayed) const; void solsticePointsDisplayedChanged(const bool displayed) const;
void solsticePointsColorChanged(const Vec3f & newColor) const; void solsticePointsColorChanged(const Vec3f & newColor) const;
private slots: private slots:
//! Re-translate the labels of the great circles. //! Re-translate the labels of the great circles.
//! Contains only calls to SkyLine::updateLabel(). //! Contains only calls to SkyLine::updateLabel().
void updateLineLabels(); void updateLineLabels();
//! Connect the earth shared pointer.
//! Must be connected to SolarSystem::solarSystemDataReloaded()
void connectEarthFromSolarSystem();
private: private:
QSharedPointer<Planet> earth; // shortcut Earth pointer. M
ust be reconnected whenever solar system has been reloaded.
bool gridlinesDisplayed; // master switch to switch o
ff all grids/lines. (useful for oculars plugin)
SkyGrid * equGrid; // Equatorial grid SkyGrid * equGrid; // Equatorial grid
SkyGrid * equJ2000Grid; // Equatorial J2000 grid SkyGrid * equJ2000Grid; // Equatorial J2000 grid
SkyGrid * galacticGrid; // Galactic grid SkyGrid * galacticGrid; // Galactic grid
SkyGrid * supergalacticGrid; // Supergalactic grid SkyGrid * supergalacticGrid; // Supergalactic grid
SkyGrid * eclGrid; // Ecliptic of Date grid SkyGrid * eclGrid; // Ecliptic of Date grid
SkyGrid * eclJ2000Grid; // Ecliptic J2000 grid SkyGrid * eclJ2000Grid; // Ecliptic J2000 grid
SkyGrid * aziGrid; // Azimuthal grid SkyGrid * aziGrid; // Azimuthal grid
SkyLine * equatorLine; // Celestial Equator line SkyLine * equatorLine; // Celestial Equator line
SkyLine * equatorJ2000Line; // Celestial Equator line of J2000 SkyLine * equatorJ2000Line; // Celestial Equator line of J2000
SkyLine * eclipticLine; // Ecliptic line SkyLine * eclipticLine; // Ecliptic line
 End of changes. 6 change blocks. 
0 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/