GridLinesMgr.hpp   GridLinesMgr.hpp 
skipping to change at line 29 skipping to change at line 29
*/ */
#ifndef _GRIDLINESMGR_HPP_ #ifndef _GRIDLINESMGR_HPP_
#define _GRIDLINESMGR_HPP_ #define _GRIDLINESMGR_HPP_
#include "VecMath.hpp" #include "VecMath.hpp"
#include "StelModule.hpp" #include "StelModule.hpp"
class SkyGrid; class SkyGrid;
class SkyLine; class SkyLine;
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 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
READ getFlagEquatorGrid READ getFlagEquatorGrid
WRITE setFlagEquatorGrid WRITE setFlagEquatorGrid
NOTIFY equatorGridDisplayedChanged) NOTIFY equatorGridDisplayedChanged)
Q_PROPERTY(Vec3f equatorGridColor Q_PROPERTY(Vec3f equatorGridColor
READ getColorEquatorGrid READ getColorEquatorGrid
WRITE setColorEquatorGrid WRITE setColorEquatorGrid
NOTIFY equatorGridColorChanged) NOTIFY equatorGridColorChanged)
Q_PROPERTY(bool equatorJ2000GridDisplayed Q_PROPERTY(bool equatorJ2000GridDisplayed
READ getFlagEquatorJ2000Grid READ getFlagEquatorJ2000Grid
WRITE setFlagEquatorJ2000Grid WRITE setFlagEquatorJ2000Grid
NOTIFY equatorJ2000GridDisplayedChanged) NOTIFY equatorJ2000GridDisplayedChanged)
Q_PROPERTY(Vec3f equatorJ2000GridColor Q_PROPERTY(Vec3f equatorJ2000GridColor
READ getColorEquatorJ2000Grid READ getColorEquatorJ2000Grid
WRITE setColorEquatorJ2000Grid WRITE setColorEquatorJ2000Grid
NOTIFY equatorJ2000GridColorChanged) NOTIFY equatorJ2000GridColorChanged)
Q_PROPERTY(bool eclipticJ2000GridDisplayed Q_PROPERTY(bool eclipticJ2000GridDisplayed
READ getFlagEclipticJ2000Grid READ getFlagEclipticJ2000Grid
WRITE setFlagEclipticJ2000Grid WRITE setFlagEclipticJ2000Grid
NOTIFY eclipticJ2000GridDisplayedChanged) NOTIFY eclipticJ2000GridDisplayedChanged)
Q_PROPERTY(Vec3f eclipticJ2000GridColor Q_PROPERTY(Vec3f eclipticJ2000GridColor
READ getColorEclipticJ2000Grid READ getColorEclipticJ2000Grid
WRITE setColorEclipticJ2000Grid WRITE setColorEclipticJ2000Grid
NOTIFY eclipticJ2000GridColorChanged) NOTIFY eclipticJ2000GridColorChanged)
Q_PROPERTY(bool eclipticGridDisplayed Q_PROPERTY(bool eclipticGridDisplayed
READ getFlagEclipticGrid READ getFlagEclipticGrid
WRITE setFlagEclipticGrid WRITE setFlagEclipticGrid
NOTIFY eclipticGridDisplayedChanged) NOTIFY eclipticGridDisplayedChanged)
Q_PROPERTY(Vec3f eclipticGridColor Q_PROPERTY(Vec3f eclipticGridColor
READ getColorEclipticGrid READ getColorEclipticGrid
WRITE setColorEclipticGrid WRITE setColorEclipticGrid
NOTIFY eclipticGridColorChanged) NOTIFY eclipticGridColorChanged)
Q_PROPERTY(bool galacticGridDisplayed Q_PROPERTY(bool galacticGridDisplayed
READ getFlagGalacticGrid READ getFlagGalacticGrid
WRITE setFlagGalacticGrid WRITE setFlagGalacticGrid
NOTIFY galacticGridDisplayedChanged) NOTIFY galacticGridDisplayedChanged)
Q_PROPERTY(Vec3f galacticGridColor Q_PROPERTY(Vec3f galacticGridColor
READ getColorGalacticGrid READ getColorGalacticGrid
WRITE setColorGalacticGrid WRITE setColorGalacticGrid
NOTIFY galacticGridColorChanged) NOTIFY galacticGridColorChanged)
Q_PROPERTY(bool supergalacticGridDisplayed
READ getFlagSupergalacticGrid
WRITE setFlagSupergalacticGrid
NOTIFY supergalacticGridDisplayedChanged)
Q_PROPERTY(Vec3f supergalacticGridColor
READ getColorSupergalacticGrid
WRITE setColorSupergalacticGrid
NOTIFY supergalacticGridColorChanged)
Q_PROPERTY(bool equatorLineDisplayed Q_PROPERTY(bool equatorLineDisplayed
READ getFlagEquatorLine READ getFlagEquatorLine
WRITE setFlagEquatorLine WRITE setFlagEquatorLine
NOTIFY equatorLineDisplayedChanged) NOTIFY equatorLineDisplayedChanged)
Q_PROPERTY(Vec3f equatorLineColor Q_PROPERTY(Vec3f equatorLineColor
READ getColorEquatorLine READ getColorEquatorLine
WRITE setColorEquatorLine WRITE setColorEquatorLine
NOTIFY equatorLineColorChanged) NOTIFY equatorLineColorChanged)
Q_PROPERTY(bool equatorJ2000LineDisplayed Q_PROPERTY(bool equatorJ2000LineDisplayed
READ getFlagEquatorJ2000Line READ getFlagEquatorJ2000Line
WRITE setFlagEquatorJ2000Line WRITE setFlagEquatorJ2000Line
NOTIFY equatorJ2000LineDisplayedChanged) NOTIFY equatorJ2000LineDisplayedChanged)
Q_PROPERTY(Vec3f equatorJ2000LineColor Q_PROPERTY(Vec3f equatorJ2000LineColor
READ getColorEquatorJ2000Line READ getColorEquatorJ2000Line
WRITE setColorEquatorJ2000Line WRITE setColorEquatorJ2000Line
NOTIFY equatorJ2000LineColorChanged) NOTIFY equatorJ2000LineColorChanged)
// This is now ecl. of date. // This is now ecl. of date.
Q_PROPERTY(bool eclipticLineDisplayed Q_PROPERTY(bool eclipticLineDisplayed
READ getFlagEclipticLine READ getFlagEclipticLine
WRITE setFlagEclipticLine WRITE setFlagEclipticLine
NOTIFY eclipticLineDisplayedChanged) NOTIFY eclipticLineDisplayedChanged)
Q_PROPERTY(Vec3f eclipticLineColor Q_PROPERTY(Vec3f eclipticLineColor
READ getColorEclipticLine READ getColorEclipticLine
WRITE setColorEclipticLine WRITE setColorEclipticLine
NOTIFY eclipticLineColorChanged) NOTIFY eclipticLineColorChanged)
// new name, but replaces old ecliptic. // new name, but replaces old ecliptic.
Q_PROPERTY(bool eclipticJ2000LineDisplayed Q_PROPERTY(bool eclipticJ2000LineDisplayed
READ getFlagEclipticJ2000Line READ getFlagEclipticJ2000Line
WRITE setFlagEclipticJ2000Line WRITE setFlagEclipticJ2000Line
NOTIFY eclipticJ2000LineDisplayedChanged) NOTIFY eclipticJ2000LineDisplayedChanged)
Q_PROPERTY(Vec3f eclipticJ2000LineColor Q_PROPERTY(Vec3f eclipticJ2000LineColor
READ getColorEclipticJ2000Line READ getColorEclipticJ2000Line
WRITE setColorEclipticJ2000Line WRITE setColorEclipticJ2000Line
NOTIFY eclipticJ2000LineColorChanged) NOTIFY eclipticJ2000LineColorChanged)
Q_PROPERTY(bool precessionCirclesDisplayed Q_PROPERTY(bool precessionCirclesDisplayed
READ getFlagPrecessionCircles READ getFlagPrecessionCircles
WRITE setFlagPrecessionCircles WRITE setFlagPrecessionCircles
NOTIFY precessionCirclesDisplayedChanged) NOTIFY precessionCirclesDisplayedChanged)
Q_PROPERTY(Vec3f precessionCirclesColor Q_PROPERTY(Vec3f precessionCirclesColor
READ getColorPrecessionCircles READ getColorPrecessionCircles
WRITE setColorPrecessionCircles WRITE setColorPrecessionCircles
NOTIFY precessionCirclesColorChanged) NOTIFY precessionCirclesColorChanged)
Q_PROPERTY(bool meridianLineDisplayed Q_PROPERTY(bool meridianLineDisplayed
READ getFlagMeridianLine READ getFlagMeridianLine
WRITE setFlagMeridianLine WRITE setFlagMeridianLine
NOTIFY meridianLineDisplayedChanged) NOTIFY meridianLineDisplayedChanged)
Q_PROPERTY(Vec3f meridianLineColor Q_PROPERTY(Vec3f meridianLineColor
READ getColorMeridianLine READ getColorMeridianLine
WRITE setColorMeridianLine WRITE setColorMeridianLine
NOTIFY meridianLineColorChanged) NOTIFY meridianLineColorChanged)
Q_PROPERTY(bool longitudeLineDisplayed Q_PROPERTY(bool longitudeLineDisplayed
READ getFlagLongitudeLine READ getFlagLongitudeLine
WRITE setFlagLongitudeLine WRITE setFlagLongitudeLine
NOTIFY longitudeLineDisplayedChanged) NOTIFY longitudeLineDisplayedChanged)
Q_PROPERTY(Vec3f longitudeLineColor Q_PROPERTY(Vec3f longitudeLineColor
READ getColorLongitudeLine READ getColorLongitudeLine
WRITE setColorLongitudeLine WRITE setColorLongitudeLine
NOTIFY longitudeLineColorChanged) NOTIFY longitudeLineColorChanged)
Q_PROPERTY(bool horizonLineDisplayed Q_PROPERTY(bool horizonLineDisplayed
READ getFlagHorizonLine READ getFlagHorizonLine
WRITE setFlagHorizonLine WRITE setFlagHorizonLine
NOTIFY horizonLineDisplayedChanged) NOTIFY horizonLineDisplayedChanged)
Q_PROPERTY(Vec3f horizonLineColor Q_PROPERTY(Vec3f horizonLineColor
READ getColorHorizonLine READ getColorHorizonLine
WRITE setColorHorizonLine WRITE setColorHorizonLine
NOTIFY horizonLineColorChanged) NOTIFY horizonLineColorChanged)
Q_PROPERTY(bool galacticEquatorLineDisplayed Q_PROPERTY(bool galacticEquatorLineDisplayed
READ getFlagGalacticEquatorLine READ getFlagGalacticEquatorLine
WRITE setFlagGalacticEquatorLine WRITE setFlagGalacticEquatorLine
NOTIFY galacticEquatorLineDisplayedChanged) NOTIFY galacticEquatorLineDisplayedChanged)
Q_PROPERTY(Vec3f galacticEquatorLineColor Q_PROPERTY(Vec3f galacticEquatorLineColor
READ getColorGalacticEquatorLine READ getColorGalacticEquatorLine
WRITE setColorGalacticEquatorLine WRITE setColorGalacticEquatorLine
NOTIFY galacticEquatorLineColorChanged) NOTIFY galacticEquatorLineColorChanged)
Q_PROPERTY(bool supergalacticEquatorLineDisplayed
READ getFlagSupergalacticEquatorLine
WRITE setFlagSupergalacticEquatorLine
NOTIFY supergalacticEquatorLineDisplayedChanged)
Q_PROPERTY(Vec3f supergalacticEquatorLineColor
READ getColorSupergalacticEquatorLine
WRITE setColorSupergalacticEquatorLine
NOTIFY supergalacticEquatorLineColorChanged)
Q_PROPERTY(bool primeVerticalLineDisplayed Q_PROPERTY(bool primeVerticalLineDisplayed
READ getFlagPrimeVerticalLine READ getFlagPrimeVerticalLine
WRITE setFlagPrimeVerticalLine WRITE setFlagPrimeVerticalLine
NOTIFY primeVerticalLineDisplayedChanged) NOTIFY primeVerticalLineDisplayedChanged)
Q_PROPERTY(Vec3f primeVerticalLineColor Q_PROPERTY(Vec3f primeVerticalLineColor
READ getColorPrimeVerticalLine READ getColorPrimeVerticalLine
WRITE setColorPrimeVerticalLine WRITE setColorPrimeVerticalLine
NOTIFY primeVerticalLineColorChanged) NOTIFY primeVerticalLineColorChanged)
Q_PROPERTY(bool colureLinesDisplayed Q_PROPERTY(bool colureLinesDisplayed
READ getFlagColureLines READ getFlagColureLines
WRITE setFlagColureLines WRITE setFlagColureLines
NOTIFY colureLinesDisplayedChanged) NOTIFY colureLinesDisplayedChanged)
Q_PROPERTY(Vec3f colureLinesColor Q_PROPERTY(Vec3f colureLinesColor
READ getColorColureLines READ getColorColureLines
WRITE setColorColureLines WRITE setColorColureLines
NOTIFY colureLinesColorChanged) NOTIFY colureLinesColorChanged)
Q_PROPERTY(bool circumpolarCirclesDisplayed Q_PROPERTY(bool circumpolarCirclesDisplayed
READ getFlagCircumpolarCircles READ getFlagCircumpolarCircles
WRITE setFlagCircumpolarCircles WRITE setFlagCircumpolarCircles
NOTIFY circumpolarCirclesDisplayedChanged) NOTIFY circumpolarCirclesDisplayedChanged)
Q_PROPERTY(Vec3f circumpolarCirclesColor Q_PROPERTY(Vec3f circumpolarCirclesColor
READ getColorCircumpolarCircles READ getColorCircumpolarCircles
WRITE setColorCircumpolarCircles WRITE setColorCircumpolarCircles
NOTIFY circumpolarCirclesColorChanged) NOTIFY circumpolarCirclesColorChanged)
Q_PROPERTY(bool celestialJ2000PolesDisplayed
READ getFlagCelestialJ2000Poles
WRITE setFlagCelestialJ2000Poles
NOTIFY celestialJ2000PolesDisplayedChanged)
Q_PROPERTY(Vec3f celestialJ2000PolesColor
READ getColorCelestialJ2000Poles
WRITE setColorCelestialJ2000Poles
NOTIFY celestialJ2000PolesColorChanged)
Q_PROPERTY(bool celestialPolesDisplayed
READ getFlagCelestialPoles
WRITE setFlagCelestialPoles
NOTIFY celestialPolesDisplayedChanged)
Q_PROPERTY(Vec3f celestialPolesColor
READ getColorCelestialPoles
WRITE setColorCelestialPoles
NOTIFY celestialPolesColorChanged)
Q_PROPERTY(bool zenithNadirDisplayed
READ getFlagZenithNadir
WRITE setFlagZenithNadir
NOTIFY zenithNadirDisplayedChanged)
Q_PROPERTY(Vec3f zenithNadirColor
READ getColorZenithNadir
WRITE setColorZenithNadir
NOTIFY zenithNadirColorChanged)
Q_PROPERTY(bool eclipticJ2000PolesDisplayed
READ getFlagEclipticJ2000Poles
WRITE setFlagEclipticJ2000Poles
NOTIFY eclipticJ2000PolesDisplayedChanged)
Q_PROPERTY(Vec3f eclipticJ2000PolesColor
READ getColorEclipticJ2000Poles
WRITE setColorEclipticJ2000Poles
NOTIFY eclipticJ2000PolesColorChanged)
Q_PROPERTY(bool eclipticPolesDisplayed
READ getFlagEclipticPoles
WRITE setFlagEclipticPoles
NOTIFY eclipticPolesDisplayedChanged)
Q_PROPERTY(Vec3f eclipticPolesColor
READ getColorEclipticPoles
WRITE setColorEclipticPoles
NOTIFY eclipticPolesColorChanged)
Q_PROPERTY(bool galacticPolesDisplayed
READ getFlagGalacticPoles
WRITE setFlagGalacticPoles
NOTIFY galacticPolesDisplayedChanged)
Q_PROPERTY(Vec3f galacticPolesColor
READ getColorGalacticPoles
WRITE setColorGalacticPoles
NOTIFY galacticPolesColorChanged)
Q_PROPERTY(bool supergalacticPolesDisplayed
READ getFlagSupergalacticPoles
WRITE setFlagSupergalacticPoles
NOTIFY supergalacticPolesDisplayedChanged)
Q_PROPERTY(Vec3f supergalacticPolesColor
READ getColorSupergalacticPoles
WRITE setColorSupergalacticPoles
NOTIFY supergalacticPolesColorChanged)
Q_PROPERTY(bool equinoxJ2000PointsDisplayed
READ getFlagEquinoxJ2000Points
WRITE setFlagEquinoxJ2000Points
NOTIFY equinoxJ2000PointsDisplayedChanged)
Q_PROPERTY(Vec3f equinoxJ2000PointsColor
READ getColorEquinoxJ2000Points
WRITE setColorEquinoxJ2000Points
NOTIFY equinoxJ2000PointsColorChanged)
Q_PROPERTY(bool equinoxPointsDisplayed
READ getFlagEquinoxPoints
WRITE setFlagEquinoxPoints
NOTIFY equinoxPointsDisplayedChanged)
Q_PROPERTY(Vec3f equinoxPointsColor
READ getColorEquinoxPoints
WRITE setColorEquinoxPoints
NOTIFY equinoxPointsColorChanged)
public: public:
GridLinesMgr(); GridLinesMgr();
virtual ~GridLinesMgr(); virtual ~GridLinesMgr();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
//! Initialize the GridLinesMgr. This process checks the values in t he //! Initialize the GridLinesMgr. This process checks the values in t he
//! application settings, and according to the settings there //! application settings, and according to the settings there
//! sets the visibility of the Equatorial Grids, Ecliptical Grids, A zimuthal Grid, Meridian Line, //! sets the visibility of the Equatorial Grids, Ecliptical Grids, A zimuthal Grid, Meridian Line,
skipping to change at line 316 skipping to change at line 416
//! Get the current color of the Galactic Grid. //! Get the current color of the Galactic Grid.
Vec3f getColorGalacticGrid(void) const; Vec3f getColorGalacticGrid(void) const;
//! Set the color of the Galactic Grid. //! Set the color of the Galactic Grid.
//! @param newColor The color of galactic grid //! @param newColor The color of galactic grid
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! GridLinesMgr.setColorGalacticGrid(Vec3f(1.0,0.0,0.0)); //! GridLinesMgr.setColorGalacticGrid(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setColorGalacticGrid(const Vec3f& newColor); void setColorGalacticGrid(const Vec3f& newColor);
//! Setter for displaying Supergalactic Grid.
void setFlagSupergalacticGrid(const bool displayed);
//! Accessor for displaying Supergalactic Grid.
bool getFlagSupergalacticGrid(void) const;
//! Get the current color of the Supergalactic Grid.
Vec3f getColorSupergalacticGrid(void) const;
//! Set the color of the Supergalactic Grid.
//! @param newColor The color of supergalactic grid
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorSupergalacticGrid(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorSupergalacticGrid(const Vec3f& newColor);
//! Setter for displaying Equatorial Line. //! Setter for displaying Equatorial Line.
void setFlagEquatorLine(const bool displayed); void setFlagEquatorLine(const bool displayed);
//! Accessor for displaying Equatorial Line. //! Accessor for displaying Equatorial Line.
bool getFlagEquatorLine(void) const; bool getFlagEquatorLine(void) const;
//! Get the current color of the Equatorial Line. //! Get the current color of the Equatorial Line.
Vec3f getColorEquatorLine(void) const; Vec3f getColorEquatorLine(void) const;
//! Set the color of the Equator Line. //! Set the color of the Equator Line.
//! @param newColor The color of equator line //! @param newColor The color of equator line
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
skipping to change at line 448 skipping to change at line 562
//! Get the current color of the Galactic Equator Line. //! Get the current color of the Galactic Equator Line.
Vec3f getColorGalacticEquatorLine(void) const; Vec3f getColorGalacticEquatorLine(void) const;
//! Set the color of the Galactic Equator Line. //! Set the color of the Galactic Equator Line.
//! @param newColor The color of galactic equator line //! @param newColor The color of galactic equator line
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! GridLinesMgr.setColorGalacticEquatorLine(Vec3f(1.0,0.0,0.0)); //! GridLinesMgr.setColorGalacticEquatorLine(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setColorGalacticEquatorLine(const Vec3f& newColor); void setColorGalacticEquatorLine(const Vec3f& newColor);
//! Setter for displaying Supergalactic Equator Line.
void setFlagSupergalacticEquatorLine(const bool displayed);
//! Accessor for displaying Supergalactic Equator Line.
bool getFlagSupergalacticEquatorLine(void) const;
//! Get the current color of the Supergalactic Equator Line.
Vec3f getColorSupergalacticEquatorLine(void) const;
//! Set the color of the Supergalactic Equator Line.
//! @param newColor The color of supergalactic equator line
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorSupergalacticEquatorLine(Vec3f(1.0,0.0,0.0)
);
//! @endcode
void setColorSupergalacticEquatorLine(const Vec3f& newColor);
//! Setter for displaying the Prime Vertical Line. //! Setter for displaying the Prime Vertical Line.
void setFlagPrimeVerticalLine(const bool displayed); void setFlagPrimeVerticalLine(const bool displayed);
//! Accessor for displaying Prime Vertical Line. //! Accessor for displaying Prime Vertical Line.
bool getFlagPrimeVerticalLine(void) const; bool getFlagPrimeVerticalLine(void) const;
//! Get the current color of the Prime Vertical Line. //! Get the current color of the Prime Vertical Line.
Vec3f getColorPrimeVerticalLine(void) const; Vec3f getColorPrimeVerticalLine(void) const;
//! Set the color of the Prime Vertical Line. //! Set the color of the Prime Vertical Line.
//! @param newColor The color of the Prime Vertical line //! @param newColor The color of the Prime Vertical line
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
skipping to change at line 490 skipping to change at line 618
//! Get the current color of the circumpolar circles. //! Get the current color of the circumpolar circles.
Vec3f getColorCircumpolarCircles(void) const; Vec3f getColorCircumpolarCircles(void) const;
//! Set the color of the circumpolar circles. //! Set the color of the circumpolar circles.
//! @param newColor The color of circumpolar circles //! @param newColor The color of circumpolar circles
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! GridLinesMgr.setColorCircumpolarCircles(Vec3f(1.0,0.0,0.0)); //! GridLinesMgr.setColorCircumpolarCircles(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setColorCircumpolarCircles(const Vec3f& newColor); void setColorCircumpolarCircles(const Vec3f& newColor);
//! Setter for displaying celestial poles of J2000.
void setFlagCelestialJ2000Poles(const bool displayed);
//! Accessor for displaying celestial poles of J2000.
bool getFlagCelestialJ2000Poles(void) const;
//! Get the current color of the celestial poles of J2000.
Vec3f getColorCelestialJ2000Poles(void) const;
//! Set the color of the celestial poles of J2000.
//! @param newColor The color of celestial poles of J2000
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorCelestialJ2000Poles(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorCelestialJ2000Poles(const Vec3f& newColor);
//! Setter for displaying celestial poles.
void setFlagCelestialPoles(const bool displayed);
//! Accessor for displaying celestial poles.
bool getFlagCelestialPoles(void) const;
//! Get the current color of the celestial poles.
Vec3f getColorCelestialPoles(void) const;
//! Set the color of the celestial poles.
//! @param newColor The color of celestial poles
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorCelestialPoles(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorCelestialPoles(const Vec3f& newColor);
//! Setter for displaying zenith and nadir.
void setFlagZenithNadir(const bool displayed);
//! Accessor for displaying zenith and nadir.
bool getFlagZenithNadir(void) const;
//! Get the current color of the zenith and nadir.
Vec3f getColorZenithNadir(void) const;
//! Set the color of the zenith and nadir.
//! @param newColor The color of zenith and nadir
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorZenithNadir(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorZenithNadir(const Vec3f& newColor);
//! Setter for displaying ecliptic poles of J2000.
void setFlagEclipticJ2000Poles(const bool displayed);
//! Accessor for displaying ecliptic poles of J2000.
bool getFlagEclipticJ2000Poles(void) const;
//! Get the current color of the ecliptic poles of J2000.
Vec3f getColorEclipticJ2000Poles(void) const;
//! Set the color of the ecliptic poles of J2000.
//! @param newColor The color of ecliptic poles of J2000
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorEclipticJ2000Poles(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorEclipticJ2000Poles(const Vec3f& newColor);
//! Setter for displaying ecliptic poles.
void setFlagEclipticPoles(const bool displayed);
//! Accessor for displaying ecliptic poles.
bool getFlagEclipticPoles(void) const;
//! Get the current color of the ecliptic poles.
Vec3f getColorEclipticPoles(void) const;
//! Set the color of the ecliptic poles.
//! @param newColor The color of ecliptic poles
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorEclipticPoles(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorEclipticPoles(const Vec3f& newColor);
//! Setter for displaying galactic poles.
void setFlagGalacticPoles(const bool displayed);
//! Accessor for displaying galactic poles.
bool getFlagGalacticPoles(void) const;
//! Get the current color of the galactic poles.
Vec3f getColorGalacticPoles(void) const;
//! Set the color of the galactic poles.
//! @param newColor The color of galactic poles
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorGalacticPoles(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorGalacticPoles(const Vec3f& newColor);
//! Setter for displaying supergalactic poles.
void setFlagSupergalacticPoles(const bool displayed);
//! Accessor for displaying supergalactic poles.
bool getFlagSupergalacticPoles(void) const;
//! Get the current color of the supergalactic poles.
Vec3f getColorSupergalacticPoles(void) const;
//! Set the color of the supergalactic poles.
//! @param newColor The color of supergalactic poles
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorSupergalacticPoles(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorSupergalacticPoles(const Vec3f& newColor);
//! Setter for displaying equinox points of J2000.
void setFlagEquinoxJ2000Points(const bool displayed);
//! Accessor for displaying equinox points of J2000.
bool getFlagEquinoxJ2000Points(void) const;
//! Get the current color of the equinox points of J2000.
Vec3f getColorEquinoxJ2000Points(void) const;
//! Set the color of the equinox points of J2000.
//! @param newColor The color of equinox points
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorEquinoxJ2000Points(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorEquinoxJ2000Points(const Vec3f& newColor);
//! Setter for displaying equinox points.
void setFlagEquinoxPoints(const bool displayed);
//! Accessor for displaying equinox points.
bool getFlagEquinoxPoints(void) const;
//! Get the current color of the equinox points.
Vec3f getColorEquinoxPoints(void) const;
//! Set the color of the equinox points.
//! @param newColor The color of equinox points
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorEquinoxPoints(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorEquinoxPoints(const Vec3f& newColor);
signals: signals:
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;
void galacticGridDisplayedChanged(const bool displayed) const; void galacticGridDisplayedChanged(const bool displayed) const;
void galacticGridColorChanged(const Vec3f & newColor) const; void galacticGridColorChanged(const Vec3f & newColor) const;
void supergalacticGridDisplayedChanged(const bool displayed) const;
void supergalacticGridColorChanged(const Vec3f & newColor) const;
void equatorLineDisplayedChanged(const bool displayed) const; void equatorLineDisplayedChanged(const bool displayed) const;
void equatorLineColorChanged(const Vec3f & newColor) const; void equatorLineColorChanged(const Vec3f & newColor) const;
void equatorJ2000LineDisplayedChanged(const bool displayed) const; void equatorJ2000LineDisplayedChanged(const bool displayed) const;
void equatorJ2000LineColorChanged(const Vec3f & newColor) const; void equatorJ2000LineColorChanged(const Vec3f & newColor) const;
void eclipticLineDisplayedChanged(const bool displayed) const; void eclipticLineDisplayedChanged(const bool displayed) const;
void eclipticLineColorChanged(const Vec3f & newColor) const; void eclipticLineColorChanged(const Vec3f & newColor) const;
void eclipticJ2000LineDisplayedChanged(const bool displayed) const; void eclipticJ2000LineDisplayedChanged(const bool displayed) const;
void eclipticJ2000LineColorChanged(const Vec3f & newColor) const; void eclipticJ2000LineColorChanged(const Vec3f & newColor) const;
void precessionCirclesDisplayedChanged(const bool displayed) const; void precessionCirclesDisplayedChanged(const bool displayed) const;
void precessionCirclesColorChanged(const Vec3f & newColor) const; void precessionCirclesColorChanged(const Vec3f & newColor) const;
void meridianLineDisplayedChanged(const bool displayed) const; void meridianLineDisplayedChanged(const bool displayed) const;
void meridianLineColorChanged(const Vec3f & newColor) const; void meridianLineColorChanged(const Vec3f & newColor) const;
void longitudeLineDisplayedChanged(const bool displayed) const; void longitudeLineDisplayedChanged(const bool displayed) const;
void longitudeLineColorChanged(const Vec3f & newColor) const; void longitudeLineColorChanged(const Vec3f & newColor) const;
void horizonLineDisplayedChanged(const bool displayed) const; void horizonLineDisplayedChanged(const bool displayed) const;
void horizonLineColorChanged(const Vec3f & newColor) const; void horizonLineColorChanged(const Vec3f & newColor) const;
void galacticEquatorLineDisplayedChanged(const bool displayed) const ; void galacticEquatorLineDisplayedChanged(const bool displayed) const ;
void galacticEquatorLineColorChanged(const Vec3f & newColor) const; void galacticEquatorLineColorChanged(const Vec3f & newColor) const;
void supergalacticEquatorLineDisplayedChanged(const bool displayed)
const;
void supergalacticEquatorLineColorChanged(const Vec3f & newColor) co
nst;
void primeVerticalLineDisplayedChanged(const bool displayed) const; void primeVerticalLineDisplayedChanged(const bool displayed) const;
void primeVerticalLineColorChanged(const Vec3f & newColor) const; void primeVerticalLineColorChanged(const Vec3f & newColor) const;
void colureLinesDisplayedChanged(const bool displayed) const; void colureLinesDisplayedChanged(const bool displayed) const;
void colureLinesColorChanged(const Vec3f & newColor) const; void colureLinesColorChanged(const Vec3f & newColor) const;
void circumpolarCirclesDisplayedChanged(const bool displayed) const; void circumpolarCirclesDisplayedChanged(const bool displayed) const;
void circumpolarCirclesColorChanged(const Vec3f & newColor) const; void circumpolarCirclesColorChanged(const Vec3f & newColor) const;
void celestialJ2000PolesDisplayedChanged(const bool displayed) const
;
void celestialJ2000PolesColorChanged(const Vec3f & newColor) const;
void celestialPolesDisplayedChanged(const bool displayed) const;
void celestialPolesColorChanged(const Vec3f & newColor) const;
void zenithNadirDisplayedChanged(const bool displayed) const;
void zenithNadirColorChanged(const Vec3f & newColor) const;
void eclipticJ2000PolesDisplayedChanged(const bool displayed) const;
void eclipticJ2000PolesColorChanged(const Vec3f & newColor) const;
void eclipticPolesDisplayedChanged(const bool displayed) const;
void eclipticPolesColorChanged(const Vec3f & newColor) const;
void galacticPolesDisplayedChanged(const bool displayed) const;
void galacticPolesColorChanged(const Vec3f & newColor) const;
void supergalacticPolesDisplayedChanged(const bool displayed) const;
void supergalacticPolesColorChanged(const Vec3f & newColor) const;
void equinoxJ2000PointsDisplayedChanged(const bool displayed) const;
void equinoxJ2000PointsColorChanged(const Vec3f & newColor) const;
void equinoxPointsDisplayedChanged(const bool displayed) const;
void equinoxPointsColorChanged(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();
private: private:
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 * eclGrid; // Ecliptic of Date grid SkyGrid * supergalacticGrid; // Supergalactic grid
SkyGrid * eclJ2000Grid; // Ecliptic J2000 grid SkyGrid * eclGrid; // Ecliptic of Date grid
SkyGrid * aziGrid; // Azimuthal grid SkyGrid * eclJ2000Grid; // Ecliptic J2000 grid
SkyLine * equatorLine; // Celestial Equator line SkyGrid * aziGrid; // Azimuthal grid
SkyLine * equatorJ2000Line; // Celestial Equator of J2000 line SkyLine * equatorLine; // Celestial Equator line
SkyLine * eclipticLine; // Ecliptic line SkyLine * equatorJ2000Line; // Celestial Equator of J200
SkyLine * eclipticJ2000Line; // Ecliptic line of J2000 0 line
SkyLine * precessionCircleN; // Northern precession circle SkyLine * eclipticLine; // Ecliptic line
SkyLine * precessionCircleS; // Southern precession circle SkyLine * eclipticJ2000Line; // Ecliptic line of J2000
SkyLine * meridianLine; // Meridian line SkyLine * precessionCircleN; // Northern precession circl
SkyLine * longitudeLine; // Opposition/conjunction longitude e
line SkyLine * precessionCircleS; // Southern precession circl
SkyLine * horizonLine; // Horizon line e
SkyLine * galacticEquatorLine; // line depicting the Galactic equat SkyLine * meridianLine; // Meridian line
or as defined by the IAU definition of Galactic coordinates (System II, 195 SkyLine * longitudeLine; // Opposition/conjunction lo
8) ngitude line
SkyLine * primeVerticalLine; // Prime Vertical line SkyLine * horizonLine; // Horizon line
SkyLine * colureLine_1; // First Colure line (0/12h) SkyLine * galacticEquatorLine; // line depicting the Galact
SkyLine * colureLine_2; // Second Colure line (6/18h) ic equator as defined by the IAU definition of Galactic coordinates (System
SkyLine * circumpolarCircleN; // Northern circumpolar circle II, 1958)
SkyLine * circumpolarCircleS; // Southern circumpolar circle SkyLine * supergalacticEquatorLine; // line depicting the Superg
alactic equator
SkyLine * primeVerticalLine; // Prime Vertical line
SkyLine * colureLine_1; // First Colure line (0/12h)
SkyLine * colureLine_2; // Second Colure line (6/18h
)
SkyLine * circumpolarCircleN; // Northern circumpolar circ
le
SkyLine * circumpolarCircleS; // Southern circumpolar circ
le
SkyPoint * celestialJ2000Poles; // Celestial poles of J2000
SkyPoint * celestialPoles; // Celestial poles
SkyPoint * zenithNadir; // Zenith and nadir
SkyPoint * eclipticJ2000Poles; // Ecliptic poles of J2000
SkyPoint * eclipticPoles; // Ecliptic poles
SkyPoint * galacticPoles; // Galactic poles
SkyPoint * supergalacticPoles; // Supergalactic poles
SkyPoint * equinoxJ2000Points; // Equinox points of J2000
SkyPoint * equinoxPoints; // Equinox points
}; };
#endif // _GRIDLINESMGR_HPP_ #endif // _GRIDLINESMGR_HPP_
 End of changes. 44 change blocks. 
132 lines changed or deleted 430 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/