GridLinesMgr.hpp   GridLinesMgr.hpp 
/* /*
* Stellarium * Stellarium
* Copyright (C) 2007 Fabien Chereau * Copyright (C) 2007 Fabien Chereau
* Copyright (C) 2015 Georg Zotti (more grids to illustrate precession issu es)
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 30 skipping to change at line 31
#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 GridLinesMgr //! @class GridLinesMgr
//! The GridLinesMgr controls the drawing of the Azimuthal and Equatorial G //! The GridLinesMgr controls the drawing of the Azimuthal, Equatorial, Ecl
rids, iptical and Galactic Grids,
//! as well as the great circles: Meridian Line, Ecliptic Line and Equator //! as well as the great circles: Meridian Line, Ecliptic Lines of J2000.0
Line. 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).
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(bool eclipticJ2000GridDisplayed
READ getFlagEclipticJ2000Grid
WRITE setFlagEclipticJ2000Grid
NOTIFY eclipticJ2000GridDisplayedChanged)
Q_PROPERTY(Vec3f equatorJ2000GridColor Q_PROPERTY(Vec3f equatorJ2000GridColor
READ getColorEquatorJ2000Grid READ getColorEquatorJ2000Grid
WRITE setColorEquatorJ2000Grid WRITE setColorEquatorJ2000Grid
NOTIFY equatorJ2000GridColorChanged) NOTIFY equatorJ2000GridColorChanged)
Q_PROPERTY(bool eclipticJ2000GridDisplayed
READ getFlagEclipticJ2000Grid
WRITE setFlagEclipticJ2000Grid
NOTIFY eclipticJ2000GridDisplayedChanged)
Q_PROPERTY(Vec3f eclipticJ2000GridColor
READ getColorEclipticJ2000Grid
WRITE setColorEclipticJ2000Grid
NOTIFY eclipticJ2000GridColorChanged)
// NEW
Q_PROPERTY(bool eclipticGridDisplayed
READ getFlagEclipticGrid
WRITE setFlagEclipticGrid
NOTIFY eclipticGridDisplayedChanged)
Q_PROPERTY(Vec3f eclipticGridColor
READ getColorEclipticGrid
WRITE setColorEclipticGrid
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 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
READ getFlagEquatorJ2000Line
WRITE setFlagEquatorJ2000Line
NOTIFY equatorJ2000LineDisplayedChanged)
Q_PROPERTY(Vec3f equatorJ2000LineColor
READ getColorEquatorJ2000Line
WRITE setColorEquatorJ2000Line
NOTIFY equatorJ2000LineColorChanged)
// 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.
Q_PROPERTY(bool eclipticJ2000LineDisplayed
READ getFlagEclipticJ2000Line
WRITE setFlagEclipticJ2000Line
NOTIFY eclipticJ2000LineDisplayedChanged)
Q_PROPERTY(Vec3f eclipticJ2000LineColor
READ getColorEclipticJ2000Line
WRITE setColorEclipticJ2000Line
NOTIFY eclipticJ2000LineColorChanged)
Q_PROPERTY(bool precessionCirclesDisplayed
READ getFlagPrecessionCircles
WRITE setFlagPrecessionCircles
NOTIFY precessionCirclesDisplayedChanged)
Q_PROPERTY(Vec3f precessionCirclesColor
READ getColorPrecessionCircles
WRITE setColorPrecessionCircles
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)
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 Grid, Azimuthal Grid, Meri //! sets the visibility of the Equatorial Grids, Ecliptical Grids, A
dian Line, zimuthal Grid, Meridian Line,
//! Equator Line and Ecliptic Line. //! Equator Line and Ecliptic Lines.
virtual void init(); virtual void init();
//! Get the module ID, returns, "gridlines". //! Get the module ID, returns "GridLinesMgr".
virtual QString getModuleID() const {return "GridLinesMgr";} virtual QString getModuleID() const {return "GridLinesMgr";}
//! Draw the grids and great circle lines. //! Draw the grids and great circle lines.
//! Draws the Equatorial Grid, Azimuthal Grid, Meridian Line, Equato //! Draws the Equatorial Grids, Ecliptical Grids, Azimuthal Grid, Me
r Line ridian Line, Equator Line,
//! and Ecliptic Line according to the various flags which control t //! Ecliptic Lines, Precession Circles, and Conjunction-Opposition L
heir ine according to the
//! visibility. //! various flags which control their visibility.
virtual void draw(StelCore* core); virtual void draw(StelCore* core);
//! 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;
//////////////////////////////////////////////////////////////////// /////////////////// //////////////////////////////////////////////////////////////////// ///////////////////
skipping to change at line 179 skipping to change at line 233
//! Get the current color of the Equatorial Grid. //! Get the current color of the Equatorial Grid.
Vec3f getColorEquatorGrid(void) const; Vec3f getColorEquatorGrid(void) const;
//! Set the color of the Equatorial Grid. //! Set the color of the Equatorial Grid.
//! @param newColor The color of equatorial grid //! @param newColor The color of equatorial grid
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! GridLinesMgr.setColorEquatorGrid(Vec3f(1.0,0.0,0.0)); //! GridLinesMgr.setColorEquatorGrid(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setColorEquatorGrid(const Vec3f& newColor); void setColorEquatorGrid(const Vec3f& newColor);
//! Setter for displaying Equatorial Grid. //! Setter for displaying Equatorial J2000 Grid.
void setFlagEquatorJ2000Grid(const bool displayed); void setFlagEquatorJ2000Grid(const bool displayed);
//! Accessor for displaying Equatorial Grid. //! Accessor for displaying Equatorial J2000 Grid.
bool getFlagEquatorJ2000Grid(void) const; bool getFlagEquatorJ2000Grid(void) const;
//! Get the current color of the Equatorial J2000 Grid. //! Get the current color of the Equatorial J2000 Grid.
Vec3f getColorEquatorJ2000Grid(void) const; Vec3f getColorEquatorJ2000Grid(void) const;
//! Set the color of the Equatorial J2000 Grid. //! Set the color of the Equatorial J2000 Grid.
//! @param newColor The color of equatorial J2000 grid //! @param newColor The color of equatorial J2000 grid
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! GridLinesMgr.setColorEquatorJ2000Grid(Vec3f(1.0,0.0,0.0)); //! GridLinesMgr.setColorEquatorJ2000Grid(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setColorEquatorJ2000Grid(const Vec3f& newColor); void setColorEquatorJ2000Grid(const Vec3f& newColor);
//! Setter for displaying Ecliptic Grid. //! Setter for displaying Ecliptic Grid of J2000.0.
void setFlagEclipticJ2000Grid(const bool displayed); void setFlagEclipticJ2000Grid(const bool displayed);
//! Accessor for displaying Ecliptic Grid. //! Accessor for displaying Ecliptic Grid.
bool getFlagEclipticJ2000Grid(void) const; bool getFlagEclipticJ2000Grid(void) const;
//! Get the current color of the Ecliptic J2000 Grid. //! Get the current color of the Ecliptic J2000 Grid.
Vec3f getColorEclipticJ2000Grid(void) const; Vec3f getColorEclipticJ2000Grid(void) const;
//! Set the color of the Ecliptic J2000 Grid. //! Set the color of the Ecliptic J2000 Grid.
//! @param newColor The color of ecliptic J2000 grid //! @param newColor The color of ecliptic J2000 grid
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! GridLinesMgr.setColorEclipticJ2000Grid(Vec3f(1.0,0.0,0.0)); //! GridLinesMgr.setColorEclipticJ2000Grid(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setColorEclipticJ2000Grid(const Vec3f& newColor); void setColorEclipticJ2000Grid(const Vec3f& newColor);
//! Setter for displaying Ecliptic Grid of Date.
void setFlagEclipticGrid(const bool displayed);
//! Accessor for displaying Ecliptic Grid.
bool getFlagEclipticGrid(void) const;
//! Get the current color of the Ecliptic of Date Grid.
Vec3f getColorEclipticGrid(void) const;
//! Set the color of the Ecliptic Grid.
//! @param newColor The color of Ecliptic of Date grid
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorEclipticGrid(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorEclipticGrid(const Vec3f& newColor);
//! Setter for displaying Galactic Grid. //! Setter for displaying Galactic Grid.
void setFlagGalacticGrid(const bool displayed); void setFlagGalacticGrid(const bool displayed);
//! Accessor for displaying Galactic Grid. //! Accessor for displaying Galactic Grid.
bool getFlagGalacticGrid(void) const; bool getFlagGalacticGrid(void) const;
//! 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
skipping to change at line 235 skipping to change at line 303
//! 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
//! GridLinesMgr.setColorEquatorLine(Vec3f(1.0,0.0,0.0)); //! GridLinesMgr.setColorEquatorLine(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setColorEquatorLine(const Vec3f& newColor); void setColorEquatorLine(const Vec3f& newColor);
//! Setter for displaying J2000 Equatorial Line.
void setFlagEquatorJ2000Line(const bool displayed);
//! Accessor for displaying J2000 Equatorial Line.
bool getFlagEquatorJ2000Line(void) const;
//! Get the current color of the J2000 Equatorial Line.
Vec3f getColorEquatorJ2000Line(void) const;
//! Set the color of the J2000 Equator Line.
//! @param newColor The color of J2000 equator line
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorEquatorJ2000Line(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorEquatorJ2000Line(const Vec3f& newColor);
//! Setter for displaying Ecliptic of J2000 Line.
void setFlagEclipticJ2000Line(const bool displayed);
//! Accessor for displaying Ecliptic of J2000 Line.
bool getFlagEclipticJ2000Line(void) const;
//! Get the current color of the Ecliptic of J2000 Line.
Vec3f getColorEclipticJ2000Line(void) const;
//! Set the color of the Ecliptic of J2000 Line.
//! @param newColor The color of ecliptic 2000 line
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorEcliptic2000Line(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorEclipticJ2000Line(const Vec3f& newColor);
//! Setter for displaying Ecliptic Line. //! Setter for displaying Ecliptic Line.
void setFlagEclipticLine(const bool displayed); void setFlagEclipticLine(const bool displayed);
//! Accessor for displaying Ecliptic Line. //! Accessor for displaying Ecliptic Line.
bool getFlagEclipticLine(void) const; bool getFlagEclipticLine(void) const;
//! Get the current color of the Ecliptic Line. //! Get the current color of the Ecliptic Line.
Vec3f getColorEclipticLine(void) const; Vec3f getColorEclipticLine(void) const;
//! Set the color of the Ecliptic Line. //! Set the color of the Ecliptic Line.
//! @param newColor The color of ecliptic line //! @param newColor The color of ecliptic line
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! GridLinesMgr.setColorEclipticLine(Vec3f(1.0,0.0,0.0)); //! GridLinesMgr.setColorEclipticLine(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setColorEclipticLine(const Vec3f& newColor); void setColorEclipticLine(const Vec3f& newColor);
//! Setter for displaying precession circles.
void setFlagPrecessionCircles(const bool displayed);
//! Accessor for displaying precession circles.
bool getFlagPrecessionCircles(void) const;
//! Get the current color of the precession circles.
Vec3f getColorPrecessionCircles(void) const;
//! Set the color of the precession circles.
//! @param newColor The color of precession circles
//! @code
//! // example of usage in scripts
//! GridLinesMgr.setColorPrecessionCircles(Vec3f(1.0,0.0,0.0));
//! @endcode
void setColorPrecessionCircles(const Vec3f& newColor);
//! Setter for displaying Meridian Line. //! Setter for displaying Meridian Line.
void setFlagMeridianLine(const bool displayed); void setFlagMeridianLine(const bool displayed);
//! Accessor for displaying Meridian Line. //! Accessor for displaying Meridian Line.
bool getFlagMeridianLine(void) const; bool getFlagMeridianLine(void) const;
//! Get the current color of the Meridian Line. //! Get the current color of the Meridian Line.
Vec3f getColorMeridianLine(void) const; Vec3f getColorMeridianLine(void) const;
//! Set the color of the Meridian Line. //! Set the color of the Meridian Line.
//! @param newColor The color of meridian line //! @param newColor The color of meridian line
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
skipping to change at line 294 skipping to change at line 404
//! @param newColor The color of horizon line //! @param newColor The color of horizon line
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! GridLinesMgr.setColorHorizonLine(Vec3f(1.0,0.0,0.0)); //! GridLinesMgr.setColorHorizonLine(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setColorHorizonLine(const Vec3f& newColor); void setColorHorizonLine(const Vec3f& newColor);
//! Setter for displaying Galactic Equator Line. //! Setter for displaying Galactic Equator Line.
void setFlagGalacticEquatorLine(const bool displayed); void setFlagGalacticEquatorLine(const bool displayed);
//! @deprecated Setter for displaying Galactic "Plane" (i.e., Equato r) Line. Left here for compatibility with older scripts. //! @deprecated Setter for displaying Galactic "Plane" (i.e., Equato r) Line. Left here for compatibility with older scripts.
//! @note will be delete in version 0.14 //! @note will be deleted in version 0.14
void setFlagGalacticPlaneLine(const bool displayed) { setFlagGalacti cEquatorLine(displayed); } void setFlagGalacticPlaneLine(const bool displayed) { setFlagGalacti cEquatorLine(displayed); }
//! Accessor for displaying Galactic Equator Line. //! Accessor for displaying Galactic Equator Line.
bool getFlagGalacticEquatorLine(void) const; bool getFlagGalacticEquatorLine(void) const;
//! @deprecated Accessor for displaying Galactic "Plane" (i.e., Equa tor) Line. Left here for compatibility with older scripts. //! @deprecated Accessor for displaying Galactic "Plane" (i.e., Equa tor) Line. Left here for compatibility with older scripts.
//! @note will be delete in version 0.14 //! @note will be deleted in version 0.14
bool getFlagGalacticPlaneLine(void) const { return getFlagGalacticEq uatorLine(); } bool getFlagGalacticPlaneLine(void) const { return getFlagGalacticEq uatorLine(); }
//! 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);
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 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 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 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 eclipticJ2000LineColorChanged(const Vec3f & newColor) const;
void precessionCirclesDisplayedChanged(const bool displayed) 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;
private slots: private slots:
skipping to change at line 346 skipping to change at line 464
//! Meridian Line, Equator Line and Ecliptic Line. //! Meridian Line, Equator Line and Ecliptic Line.
void setStelStyle(const QString& section); void setStelStyle(const QString& section);
//! 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 * 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 of J2000 line
SkyLine * eclipticLine; // Ecliptic line SkyLine * eclipticLine; // Ecliptic line
SkyLine * eclipticJ2000Line; // Ecliptic line of J2000
SkyLine * precessionCircleN; // Northern precession circle
SkyLine * precessionCircleS; // Southern precession circle
SkyLine * meridianLine; // Meridian line SkyLine * meridianLine; // Meridian line
SkyLine * longitudeLine; // Opposition/conjunction longitude line SkyLine * longitudeLine; // Opposition/conjunction longitude line
SkyLine * horizonLine; // Horizon line SkyLine * horizonLine; // Horizon line
SkyLine * galacticEquatorLine; // line depicting the Galactic equat or as defined by the IAU definition of Galactic coordinates (System II, 195 8) SkyLine * galacticEquatorLine; // line depicting the Galactic equat or as defined by the IAU definition of Galactic coordinates (System II, 195 8)
}; };
#endif // _GRIDLINESMGR_HPP_ #endif // _GRIDLINESMGR_HPP_
 End of changes. 29 change blocks. 
22 lines changed or deleted 146 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/