Stellarium 0.15.2
GridLinesMgr.hpp
1 /*
2  * Stellarium
3  * Copyright (C) 2007 Fabien Chereau
4  * Copyright (C) 2015 Georg Zotti (more grids to illustrate precession issues)
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
19  */
20 
21 #ifndef _GRIDLINESMGR_HPP_
22 #define _GRIDLINESMGR_HPP_
23 
24 #include "VecMath.hpp"
25 #include "StelModule.hpp"
26 
27 class SkyGrid;
28 class SkyLine;
29 class SkyPoint;
30 
35 class GridLinesMgr : public StelModule
36 {
37  Q_OBJECT
38  Q_PROPERTY(bool azimuthalGridDisplayed
41  NOTIFY azimuthalGridDisplayedChanged)
42  Q_PROPERTY(Vec3f azimuthalGridColor
45  NOTIFY azimuthalGridColorChanged)
46 
47  Q_PROPERTY(bool equatorGridDisplayed
49  WRITE setFlagEquatorGrid
50  NOTIFY equatorGridDisplayedChanged)
51  Q_PROPERTY(Vec3f equatorGridColor
54  NOTIFY equatorGridColorChanged)
55 
56  Q_PROPERTY(bool equatorJ2000GridDisplayed
59  NOTIFY equatorJ2000GridDisplayedChanged)
60  Q_PROPERTY(Vec3f equatorJ2000GridColor
63  NOTIFY equatorJ2000GridColorChanged)
64 
65  Q_PROPERTY(bool eclipticJ2000GridDisplayed
68  NOTIFY eclipticJ2000GridDisplayedChanged)
69  Q_PROPERTY(Vec3f eclipticJ2000GridColor
72  NOTIFY eclipticJ2000GridColorChanged)
73 
74  Q_PROPERTY(bool eclipticGridDisplayed
77  NOTIFY eclipticGridDisplayedChanged)
78  Q_PROPERTY(Vec3f eclipticGridColor
81  NOTIFY eclipticGridColorChanged)
82 
83  Q_PROPERTY(bool galacticGridDisplayed
86  NOTIFY galacticGridDisplayedChanged)
87  Q_PROPERTY(Vec3f galacticGridColor
90  NOTIFY galacticGridColorChanged)
91 
92  Q_PROPERTY(bool supergalacticGridDisplayed
95  NOTIFY supergalacticGridDisplayedChanged)
96  Q_PROPERTY(Vec3f supergalacticGridColor
99  NOTIFY supergalacticGridColorChanged)
100 
101  Q_PROPERTY(bool equatorLineDisplayed
102  READ getFlagEquatorLine
103  WRITE setFlagEquatorLine
104  NOTIFY equatorLineDisplayedChanged)
105  Q_PROPERTY(Vec3f equatorLineColor
107  WRITE setColorEquatorLine
108  NOTIFY equatorLineColorChanged)
109 
110  Q_PROPERTY(bool equatorJ2000LineDisplayed
113  NOTIFY equatorJ2000LineDisplayedChanged)
114  Q_PROPERTY(Vec3f equatorJ2000LineColor
117  NOTIFY equatorJ2000LineColorChanged)
118 
119  // This is now ecl. of date.
120  Q_PROPERTY(bool eclipticLineDisplayed
122  WRITE setFlagEclipticLine
123  NOTIFY eclipticLineDisplayedChanged)
124  Q_PROPERTY(Vec3f eclipticLineColor
127  NOTIFY eclipticLineColorChanged)
128 
129  // new name, but replaces old ecliptic.
130  Q_PROPERTY(bool eclipticJ2000LineDisplayed
133  NOTIFY eclipticJ2000LineDisplayedChanged)
134  Q_PROPERTY(Vec3f eclipticJ2000LineColor
137  NOTIFY eclipticJ2000LineColorChanged)
138 
139  Q_PROPERTY(bool precessionCirclesDisplayed
142  NOTIFY precessionCirclesDisplayedChanged)
143  Q_PROPERTY(Vec3f precessionCirclesColor
146  NOTIFY precessionCirclesColorChanged)
147 
148  Q_PROPERTY(bool meridianLineDisplayed
150  WRITE setFlagMeridianLine
151  NOTIFY meridianLineDisplayedChanged)
152  Q_PROPERTY(Vec3f meridianLineColor
155  NOTIFY meridianLineColorChanged)
156 
157  Q_PROPERTY(bool longitudeLineDisplayed
160  NOTIFY longitudeLineDisplayedChanged)
161  Q_PROPERTY(Vec3f longitudeLineColor
164  NOTIFY longitudeLineColorChanged)
165 
166  Q_PROPERTY(bool horizonLineDisplayed
167  READ getFlagHorizonLine
168  WRITE setFlagHorizonLine
169  NOTIFY horizonLineDisplayedChanged)
170  Q_PROPERTY(Vec3f horizonLineColor
172  WRITE setColorHorizonLine
173  NOTIFY horizonLineColorChanged)
174 
175  Q_PROPERTY(bool galacticEquatorLineDisplayed
178  NOTIFY galacticEquatorLineDisplayedChanged)
179  Q_PROPERTY(Vec3f galacticEquatorLineColor
182  NOTIFY galacticEquatorLineColorChanged)
183 
184  Q_PROPERTY(bool supergalacticEquatorLineDisplayed
187  NOTIFY supergalacticEquatorLineDisplayedChanged)
188  Q_PROPERTY(Vec3f supergalacticEquatorLineColor
191  NOTIFY supergalacticEquatorLineColorChanged)
192 
193  Q_PROPERTY(bool primeVerticalLineDisplayed
196  NOTIFY primeVerticalLineDisplayedChanged)
197  Q_PROPERTY(Vec3f primeVerticalLineColor
200  NOTIFY primeVerticalLineColorChanged)
201 
202  Q_PROPERTY(bool colureLinesDisplayed
203  READ getFlagColureLines
204  WRITE setFlagColureLines
205  NOTIFY colureLinesDisplayedChanged)
206  Q_PROPERTY(Vec3f colureLinesColor
208  WRITE setColorColureLines
209  NOTIFY colureLinesColorChanged)
210 
211  Q_PROPERTY(bool circumpolarCirclesDisplayed
214  NOTIFY circumpolarCirclesDisplayedChanged)
215  Q_PROPERTY(Vec3f circumpolarCirclesColor
218  NOTIFY circumpolarCirclesColorChanged)
219 
220  Q_PROPERTY(bool celestialJ2000PolesDisplayed
223  NOTIFY celestialJ2000PolesDisplayedChanged)
224  Q_PROPERTY(Vec3f celestialJ2000PolesColor
227  NOTIFY celestialJ2000PolesColorChanged)
228 
229  Q_PROPERTY(bool celestialPolesDisplayed
232  NOTIFY celestialPolesDisplayedChanged)
233  Q_PROPERTY(Vec3f celestialPolesColor
236  NOTIFY celestialPolesColorChanged)
237 
238  Q_PROPERTY(bool zenithNadirDisplayed
239  READ getFlagZenithNadir
240  WRITE setFlagZenithNadir
241  NOTIFY zenithNadirDisplayedChanged)
242  Q_PROPERTY(Vec3f zenithNadirColor
244  WRITE setColorZenithNadir
245  NOTIFY zenithNadirColorChanged)
246 
247  Q_PROPERTY(bool eclipticJ2000PolesDisplayed
250  NOTIFY eclipticJ2000PolesDisplayedChanged)
251  Q_PROPERTY(Vec3f eclipticJ2000PolesColor
254  NOTIFY eclipticJ2000PolesColorChanged)
255 
256  Q_PROPERTY(bool eclipticPolesDisplayed
259  NOTIFY eclipticPolesDisplayedChanged)
260  Q_PROPERTY(Vec3f eclipticPolesColor
263  NOTIFY eclipticPolesColorChanged)
264 
265  Q_PROPERTY(bool galacticPolesDisplayed
268  NOTIFY galacticPolesDisplayedChanged)
269  Q_PROPERTY(Vec3f galacticPolesColor
272  NOTIFY galacticPolesColorChanged)
273 
274  Q_PROPERTY(bool supergalacticPolesDisplayed
277  NOTIFY supergalacticPolesDisplayedChanged)
278  Q_PROPERTY(Vec3f supergalacticPolesColor
281  NOTIFY supergalacticPolesColorChanged)
282 
283  Q_PROPERTY(bool equinoxJ2000PointsDisplayed
286  NOTIFY equinoxJ2000PointsDisplayedChanged)
287  Q_PROPERTY(Vec3f equinoxJ2000PointsColor
290  NOTIFY equinoxJ2000PointsColorChanged)
291 
292  Q_PROPERTY(bool equinoxPointsDisplayed
295  NOTIFY equinoxPointsDisplayedChanged)
296  Q_PROPERTY(Vec3f equinoxPointsColor
299  NOTIFY equinoxPointsColorChanged)
300 
301  Q_PROPERTY(bool solsticeJ2000PointsDisplayed
304  NOTIFY solsticeJ2000PointsDisplayedChanged)
305  Q_PROPERTY(Vec3f solsticeJ2000PointsColor
308  NOTIFY solsticeJ2000PointsColorChanged)
309 
310  Q_PROPERTY(bool solsticePointsDisplayed
313  NOTIFY solsticePointsDisplayedChanged)
314  Q_PROPERTY(Vec3f solsticePointsColor
317  NOTIFY solsticePointsColorChanged)
318 
319 public:
320  GridLinesMgr();
321  virtual ~GridLinesMgr();
322 
324  // Methods defined in the StelModule class
329  virtual void init();
330 
332  virtual QString getModuleID() const {return "GridLinesMgr";}
333 
338  virtual void draw(StelCore* core);
339 
342  virtual void update(double deltaTime);
343 
345  virtual double getCallOrder(StelModuleActionName actionName) const;
346 
348  // Setter and getters
349 public slots:
351  void setFlagAzimuthalGrid(const bool displayed);
353  bool getFlagAzimuthalGrid(void) const;
355  Vec3f getColorAzimuthalGrid(void) const;
362  void setColorAzimuthalGrid(const Vec3f& newColor);
363 
365  void setFlagEquatorGrid(const bool displayed);
367  bool getFlagEquatorGrid(void) const;
369  Vec3f getColorEquatorGrid(void) const;
376  void setColorEquatorGrid(const Vec3f& newColor);
377 
379  void setFlagEquatorJ2000Grid(const bool displayed);
381  bool getFlagEquatorJ2000Grid(void) const;
383  Vec3f getColorEquatorJ2000Grid(void) const;
390  void setColorEquatorJ2000Grid(const Vec3f& newColor);
391 
393  void setFlagEclipticJ2000Grid(const bool displayed);
395  bool getFlagEclipticJ2000Grid(void) const;
397  Vec3f getColorEclipticJ2000Grid(void) const;
404  void setColorEclipticJ2000Grid(const Vec3f& newColor);
405 
407  void setFlagEclipticGrid(const bool displayed);
409  bool getFlagEclipticGrid(void) const;
411  Vec3f getColorEclipticGrid(void) const;
418  void setColorEclipticGrid(const Vec3f& newColor);
419 
421  void setFlagGalacticGrid(const bool displayed);
423  bool getFlagGalacticGrid(void) const;
425  Vec3f getColorGalacticGrid(void) const;
432  void setColorGalacticGrid(const Vec3f& newColor);
433 
435  void setFlagSupergalacticGrid(const bool displayed);
437  bool getFlagSupergalacticGrid(void) const;
439  Vec3f getColorSupergalacticGrid(void) const;
446  void setColorSupergalacticGrid(const Vec3f& newColor);
447 
449  void setFlagEquatorLine(const bool displayed);
451  bool getFlagEquatorLine(void) const;
453  Vec3f getColorEquatorLine(void) const;
460  void setColorEquatorLine(const Vec3f& newColor);
461 
463  void setFlagEquatorJ2000Line(const bool displayed);
465  bool getFlagEquatorJ2000Line(void) const;
467  Vec3f getColorEquatorJ2000Line(void) const;
474  void setColorEquatorJ2000Line(const Vec3f& newColor);
475 
477  void setFlagEclipticJ2000Line(const bool displayed);
479  bool getFlagEclipticJ2000Line(void) const;
481  Vec3f getColorEclipticJ2000Line(void) const;
488  void setColorEclipticJ2000Line(const Vec3f& newColor);
489 
491  void setFlagEclipticLine(const bool displayed);
493  bool getFlagEclipticLine(void) const;
495  Vec3f getColorEclipticLine(void) const;
502  void setColorEclipticLine(const Vec3f& newColor);
503 
505  void setFlagPrecessionCircles(const bool displayed);
507  bool getFlagPrecessionCircles(void) const;
509  Vec3f getColorPrecessionCircles(void) const;
516  void setColorPrecessionCircles(const Vec3f& newColor);
517 
519  void setFlagMeridianLine(const bool displayed);
521  bool getFlagMeridianLine(void) const;
523  Vec3f getColorMeridianLine(void) const;
530  void setColorMeridianLine(const Vec3f& newColor);
531 
533  void setFlagLongitudeLine(const bool displayed);
535  bool getFlagLongitudeLine(void) const;
537  Vec3f getColorLongitudeLine(void) const;
544  void setColorLongitudeLine(const Vec3f& newColor);
545 
547  void setFlagHorizonLine(const bool displayed);
549  bool getFlagHorizonLine(void) const;
551  Vec3f getColorHorizonLine(void) const;
558  void setColorHorizonLine(const Vec3f& newColor);
559 
561  void setFlagGalacticEquatorLine(const bool displayed);
564  void setFlagGalacticPlaneLine(const bool displayed) { setFlagGalacticEquatorLine(displayed); }
566  bool getFlagGalacticEquatorLine(void) const;
578  void setColorGalacticEquatorLine(const Vec3f& newColor);
579 
581  void setFlagSupergalacticEquatorLine(const bool displayed);
583  bool getFlagSupergalacticEquatorLine(void) const;
592  void setColorSupergalacticEquatorLine(const Vec3f& newColor);
593 
595  void setFlagPrimeVerticalLine(const bool displayed);
597  bool getFlagPrimeVerticalLine(void) const;
599  Vec3f getColorPrimeVerticalLine(void) const;
606  void setColorPrimeVerticalLine(const Vec3f& newColor);
607 
609  void setFlagColureLines(const bool displayed);
611  bool getFlagColureLines(void) const;
613  Vec3f getColorColureLines(void) const;
620  void setColorColureLines(const Vec3f& newColor);
621 
623  void setFlagCircumpolarCircles(const bool displayed);
625  bool getFlagCircumpolarCircles(void) const;
627  Vec3f getColorCircumpolarCircles(void) const;
634  void setColorCircumpolarCircles(const Vec3f& newColor);
635 
637  void setFlagCelestialJ2000Poles(const bool displayed);
639  bool getFlagCelestialJ2000Poles(void) const;
648  void setColorCelestialJ2000Poles(const Vec3f& newColor);
649 
651  void setFlagCelestialPoles(const bool displayed);
653  bool getFlagCelestialPoles(void) const;
655  Vec3f getColorCelestialPoles(void) const;
662  void setColorCelestialPoles(const Vec3f& newColor);
663 
665  void setFlagZenithNadir(const bool displayed);
667  bool getFlagZenithNadir(void) const;
669  Vec3f getColorZenithNadir(void) const;
676  void setColorZenithNadir(const Vec3f& newColor);
677 
679  void setFlagEclipticJ2000Poles(const bool displayed);
681  bool getFlagEclipticJ2000Poles(void) const;
683  Vec3f getColorEclipticJ2000Poles(void) const;
690  void setColorEclipticJ2000Poles(const Vec3f& newColor);
691 
693  void setFlagEclipticPoles(const bool displayed);
695  bool getFlagEclipticPoles(void) const;
697  Vec3f getColorEclipticPoles(void) const;
704  void setColorEclipticPoles(const Vec3f& newColor);
705 
707  void setFlagGalacticPoles(const bool displayed);
709  bool getFlagGalacticPoles(void) const;
711  Vec3f getColorGalacticPoles(void) const;
718  void setColorGalacticPoles(const Vec3f& newColor);
719 
721  void setFlagSupergalacticPoles(const bool displayed);
723  bool getFlagSupergalacticPoles(void) const;
725  Vec3f getColorSupergalacticPoles(void) const;
732  void setColorSupergalacticPoles(const Vec3f& newColor);
733 
735  void setFlagEquinoxJ2000Points(const bool displayed);
737  bool getFlagEquinoxJ2000Points(void) const;
739  Vec3f getColorEquinoxJ2000Points(void) const;
746  void setColorEquinoxJ2000Points(const Vec3f& newColor);
747 
749  void setFlagEquinoxPoints(const bool displayed);
751  bool getFlagEquinoxPoints(void) const;
753  Vec3f getColorEquinoxPoints(void) const;
760  void setColorEquinoxPoints(const Vec3f& newColor);
761 
763  void setFlagSolsticeJ2000Points(const bool displayed);
765  bool getFlagSolsticeJ2000Points(void) const;
774  void setColorSolsticeJ2000Points(const Vec3f& newColor);
775 
777  void setFlagSolsticePoints(const bool displayed);
779  bool getFlagSolsticePoints(void) const;
781  Vec3f getColorSolsticePoints(void) const;
788  void setColorSolsticePoints(const Vec3f& newColor);
789 
790 signals:
791  void azimuthalGridDisplayedChanged(const bool) const;
792  void azimuthalGridColorChanged(const Vec3f & newColor) const;
793  void equatorGridDisplayedChanged(const bool displayed) const;
794  void equatorGridColorChanged(const Vec3f & newColor) const;
795  void equatorJ2000GridDisplayedChanged(const bool displayed) const;
796  void equatorJ2000GridColorChanged(const Vec3f & newColor) const;
797  void eclipticGridDisplayedChanged(const bool displayed) const;
798  void eclipticGridColorChanged(const Vec3f & newColor) const;
799  void eclipticJ2000GridDisplayedChanged(const bool displayed) const;
800  void eclipticJ2000GridColorChanged(const Vec3f & newColor) const;
801  void galacticGridDisplayedChanged(const bool displayed) const;
802  void galacticGridColorChanged(const Vec3f & newColor) const;
803  void supergalacticGridDisplayedChanged(const bool displayed) const;
804  void supergalacticGridColorChanged(const Vec3f & newColor) const;
805  void equatorLineDisplayedChanged(const bool displayed) const;
806  void equatorLineColorChanged(const Vec3f & newColor) const;
807  void equatorJ2000LineDisplayedChanged(const bool displayed) const;
808  void equatorJ2000LineColorChanged(const Vec3f & newColor) const;
809  void eclipticLineDisplayedChanged(const bool displayed) const;
810  void eclipticLineColorChanged(const Vec3f & newColor) const;
811  void eclipticJ2000LineDisplayedChanged(const bool displayed) const;
812  void eclipticJ2000LineColorChanged(const Vec3f & newColor) const;
813  void precessionCirclesDisplayedChanged(const bool displayed) const;
814  void precessionCirclesColorChanged(const Vec3f & newColor) const;
815  void meridianLineDisplayedChanged(const bool displayed) const;
816  void meridianLineColorChanged(const Vec3f & newColor) const;
817  void longitudeLineDisplayedChanged(const bool displayed) const;
818  void longitudeLineColorChanged(const Vec3f & newColor) const;
819  void horizonLineDisplayedChanged(const bool displayed) const;
820  void horizonLineColorChanged(const Vec3f & newColor) const;
821  void galacticEquatorLineDisplayedChanged(const bool displayed) const;
822  void galacticEquatorLineColorChanged(const Vec3f & newColor) const;
823  void supergalacticEquatorLineDisplayedChanged(const bool displayed) const;
824  void supergalacticEquatorLineColorChanged(const Vec3f & newColor) const;
825  void primeVerticalLineDisplayedChanged(const bool displayed) const;
826  void primeVerticalLineColorChanged(const Vec3f & newColor) const;
827  void colureLinesDisplayedChanged(const bool displayed) const;
828  void colureLinesColorChanged(const Vec3f & newColor) const;
829  void circumpolarCirclesDisplayedChanged(const bool displayed) const;
830  void circumpolarCirclesColorChanged(const Vec3f & newColor) const;
831  void celestialJ2000PolesDisplayedChanged(const bool displayed) const;
832  void celestialJ2000PolesColorChanged(const Vec3f & newColor) const;
833  void celestialPolesDisplayedChanged(const bool displayed) const;
834  void celestialPolesColorChanged(const Vec3f & newColor) const;
835  void zenithNadirDisplayedChanged(const bool displayed) const;
836  void zenithNadirColorChanged(const Vec3f & newColor) const;
837  void eclipticJ2000PolesDisplayedChanged(const bool displayed) const;
838  void eclipticJ2000PolesColorChanged(const Vec3f & newColor) const;
839  void eclipticPolesDisplayedChanged(const bool displayed) const;
840  void eclipticPolesColorChanged(const Vec3f & newColor) const;
841  void galacticPolesDisplayedChanged(const bool displayed) const;
842  void galacticPolesColorChanged(const Vec3f & newColor) const;
843  void supergalacticPolesDisplayedChanged(const bool displayed) const;
844  void supergalacticPolesColorChanged(const Vec3f & newColor) const;
845  void equinoxJ2000PointsDisplayedChanged(const bool displayed) const;
846  void equinoxJ2000PointsColorChanged(const Vec3f & newColor) const;
847  void equinoxPointsDisplayedChanged(const bool displayed) const;
848  void equinoxPointsColorChanged(const Vec3f & newColor) const;
849  void solsticeJ2000PointsDisplayedChanged(const bool displayed) const;
850  void solsticeJ2000PointsColorChanged(const Vec3f & newColor) const;
851  void solsticePointsDisplayedChanged(const bool displayed) const;
852  void solsticePointsColorChanged(const Vec3f & newColor) const;
853 
854 private slots:
857  void updateLineLabels();
858 
859 private:
860  SkyGrid * equGrid; // Equatorial grid
861  SkyGrid * equJ2000Grid; // Equatorial J2000 grid
862  SkyGrid * galacticGrid; // Galactic grid
863  SkyGrid * supergalacticGrid; // Supergalactic grid
864  SkyGrid * eclGrid; // Ecliptic of Date grid
865  SkyGrid * eclJ2000Grid; // Ecliptic J2000 grid
866  SkyGrid * aziGrid; // Azimuthal grid
867  SkyLine * equatorLine; // Celestial Equator line
868  SkyLine * equatorJ2000Line; // Celestial Equator line of J2000
869  SkyLine * eclipticLine; // Ecliptic line
870  SkyLine * eclipticJ2000Line; // Ecliptic line of J2000
871  SkyLine * precessionCircleN; // Northern precession circle
872  SkyLine * precessionCircleS; // Southern precession circle
873  SkyLine * meridianLine; // Meridian line
874  SkyLine * longitudeLine; // Opposition/conjunction longitude line
875  SkyLine * horizonLine; // Horizon line
876  SkyLine * galacticEquatorLine; // line depicting the Galactic equator as defined by the IAU definition of Galactic coordinates (System II, 1958)
877  SkyLine * supergalacticEquatorLine; // line depicting the Supergalactic equator
878  SkyLine * primeVerticalLine; // Prime Vertical line
879  SkyLine * colureLine_1; // First Colure line (0/12h)
880  SkyLine * colureLine_2; // Second Colure line (6/18h)
881  SkyLine * circumpolarCircleN; // Northern circumpolar circle
882  SkyLine * circumpolarCircleS; // Southern circumpolar circle
883  SkyPoint * celestialJ2000Poles; // Celestial poles of J2000
884  SkyPoint * celestialPoles; // Celestial poles
885  SkyPoint * zenithNadir; // Zenith and nadir
886  SkyPoint * eclipticJ2000Poles; // Ecliptic poles of J2000
887  SkyPoint * eclipticPoles; // Ecliptic poles
888  SkyPoint * galacticPoles; // Galactic poles
889  SkyPoint * supergalacticPoles; // Supergalactic poles
890  SkyPoint * equinoxJ2000Points; // Equinox points of J2000
891  SkyPoint * equinoxPoints; // Equinox points
892  SkyPoint * solsticeJ2000Points; // Solstice points of J2000
893  SkyPoint * solsticePoints; // Solstice points
894 };
895 
896 #endif // _GRIDLINESMGR_HPP_
virtual void draw(StelCore *core)
Draw the grids and great circle lines.
bool getFlagEclipticGrid(void) const
Accessor for displaying Ecliptic Grid.
void setColorEquinoxJ2000Points(const Vec3f &newColor)
Set the color of the equinox points of J2000.
Vec3f getColorEclipticJ2000Poles(void) const
Get the current color of the ecliptic poles of J2000.
Vec3f getColorSupergalacticEquatorLine(void) const
Get the current color of the Supergalactic Equator Line.
void setColorPrecessionCircles(const Vec3f &newColor)
Set the color of the precession circles.
bool getFlagCelestialJ2000Poles(void) const
Accessor for displaying celestial poles of J2000.
void setColorEclipticLine(const Vec3f &newColor)
Set the color of the Ecliptic Line.
void setFlagCelestialJ2000Poles(const bool displayed)
Setter for displaying celestial poles of J2000.
void setColorColureLines(const Vec3f &newColor)
Set the color of the Colure Lines.
void setFlagEquatorJ2000Grid(const bool displayed)
Setter for displaying Equatorial J2000 Grid.
Vec3f getColorEquatorGrid(void) const
Get the current color of the Equatorial Grid.
bool getFlagEclipticPoles(void) const
Accessor for displaying ecliptic poles.
Vec3f getColorAzimuthalGrid(void) const
Get the current color of the Azimuthal Grid.
void setColorEquatorLine(const Vec3f &newColor)
Set the color of the Equator Line.
void setColorLongitudeLine(const Vec3f &newColor)
Set the color of the opposition/conjunction longitude line.
void setFlagGalacticGrid(const bool displayed)
Setter for displaying Galactic Grid.
bool getFlagCelestialPoles(void) const
Accessor for displaying celestial poles.
void setColorSolsticePoints(const Vec3f &newColor)
Set the color of the solstice points.
bool getFlagPrecessionCircles(void) const
Accessor for displaying precession circles.
bool getFlagEquinoxJ2000Points(void) const
Accessor for displaying equinox points of J2000.
bool getFlagLongitudeLine(void) const
Accessor for displaying opposition/conjunction longitude line.
bool getFlagPrimeVerticalLine(void) const
Accessor for displaying Prime Vertical Line.
void setFlagPrecessionCircles(const bool displayed)
Setter for displaying precession circles.
bool getFlagGalacticPlaneLine(void) const
Vec3f getColorZenithNadir(void) const
Get the current color of the zenith and nadir.
void setFlagEclipticJ2000Poles(const bool displayed)
Setter for displaying ecliptic poles of J2000.
void setColorEquatorJ2000Grid(const Vec3f &newColor)
Set the color of the Equatorial J2000 Grid.
virtual void init()
Initialize the GridLinesMgr.
void setFlagEclipticJ2000Grid(const bool displayed)
Setter for displaying Ecliptic Grid of J2000.0.
Vec3f getColorEquinoxPoints(void) const
Get the current color of the equinox points.
void setFlagEclipticJ2000Line(const bool displayed)
Setter for displaying Ecliptic of J2000 Line.
void setColorEquinoxPoints(const Vec3f &newColor)
Set the color of the equinox points.
void setFlagEquinoxJ2000Points(const bool displayed)
Setter for displaying equinox points of J2000.
void setFlagSupergalacticEquatorLine(const bool displayed)
Setter for displaying Supergalactic Equator Line.
void setFlagGalacticPlaneLine(const bool displayed)
Vec3f getColorHorizonLine(void) const
Get the current color of the Horizon Line.
bool getFlagColureLines(void) const
Accessor for displaying the Colure Lines.
void setFlagEquatorLine(const bool displayed)
Setter for displaying Equatorial Line.
void setColorEclipticJ2000Poles(const Vec3f &newColor)
Set the color of the ecliptic poles of J2000.
bool getFlagEquinoxPoints(void) const
Accessor for displaying equinox points.
Vec3f getColorSupergalacticPoles(void) const
Get the current color of the supergalactic poles.
Vec3f getColorSolsticeJ2000Points(void) const
Get the current color of the solstice points of J2000.
Vec3f getColorEquinoxJ2000Points(void) const
Get the current color of the equinox points of J2000.
void setFlagCircumpolarCircles(const bool displayed)
Setter for displaying circumpolar circles.
void setFlagEquatorGrid(const bool displayed)
Setter for displaying Equatorial Grid.
Vec3f getColorEclipticJ2000Grid(void) const
Get the current color of the Ecliptic J2000 Grid.
Main class for Stellarium core processing.
Definition: StelCore.hpp:48
void setFlagSupergalacticGrid(const bool displayed)
Setter for displaying Supergalactic Grid.
void setFlagZenithNadir(const bool displayed)
Setter for displaying zenith and nadir.
bool getFlagEclipticJ2000Grid(void) const
Accessor for displaying Ecliptic Grid.
void setFlagEquinoxPoints(const bool displayed)
Setter for displaying equinox points.
void setColorCircumpolarCircles(const Vec3f &newColor)
Set the color of the circumpolar circles.
Vec3f getColorSupergalacticGrid(void) const
Get the current color of the Supergalactic Grid.
bool getFlagSupergalacticEquatorLine(void) const
Accessor for displaying Supergalactic Equator Line.
Vec3f getColorEclipticJ2000Line(void) const
Get the current color of the Ecliptic of J2000 Line.
void setColorEquatorGrid(const Vec3f &newColor)
Set the color of the Equatorial Grid.
bool getFlagEclipticLine(void) const
Accessor for displaying Ecliptic Line.
void setColorEquatorJ2000Line(const Vec3f &newColor)
Set the color of the J2000 Equator Line.
void setColorEclipticJ2000Grid(const Vec3f &newColor)
Set the color of the Ecliptic J2000 Grid.
Vec3f getColorGalacticGrid(void) const
Get the current color of the Galactic Grid.
void setColorSolsticeJ2000Points(const Vec3f &newColor)
Set the color of the solstice points of J2000.
Vec3f getColorCircumpolarCircles(void) const
Get the current color of the circumpolar circles.
The GridLinesMgr controls the drawing of the Azimuthal, Equatorial, Ecliptical and Galactic Grids...
virtual QString getModuleID() const
Get the module ID, returns "GridLinesMgr".
void setColorCelestialJ2000Poles(const Vec3f &newColor)
Set the color of the celestial poles of J2000.
bool getFlagZenithNadir(void) const
Accessor for displaying zenith and nadir.
bool getFlagGalacticGrid(void) const
Accessor for displaying Galactic Grid.
void setFlagCelestialPoles(const bool displayed)
Setter for displaying celestial poles.
GridLinesMgr.cpp at V0.13.2, but with small-circle drawing.
void setFlagSolsticePoints(const bool displayed)
Setter for displaying solstice points.
void setFlagGalacticEquatorLine(const bool displayed)
Setter for displaying Galactic Equator Line.
void setFlagAzimuthalGrid(const bool displayed)
Setter for displaying Azimuthal Grid.
virtual double getCallOrder(StelModuleActionName actionName) const
Used to determine the order in which the various modules are drawn.
bool getFlagSolsticeJ2000Points(void) const
Accessor for displaying solstice points of J2000.
bool getFlagGalacticEquatorLine(void) const
Accessor for displaying Galactic Equator Line.
void setColorCelestialPoles(const Vec3f &newColor)
Set the color of the celestial poles.
bool getFlagEquatorJ2000Grid(void) const
Accessor for displaying Equatorial J2000 Grid.
Vec3f getColorEclipticPoles(void) const
Get the current color of the ecliptic poles.
void setFlagEclipticGrid(const bool displayed)
Setter for displaying Ecliptic Grid of Date.
void setColorZenithNadir(const Vec3f &newColor)
Set the color of the zenith and nadir.
void setColorSupergalacticGrid(const Vec3f &newColor)
Set the color of the Supergalactic Grid.
Vec3f getColorEquatorJ2000Grid(void) const
Get the current color of the Equatorial J2000 Grid.
void setFlagColureLines(const bool displayed)
Setter for displaying the Colure Lines.
Vec3f getColorLongitudeLine(void) const
Get the current color of the opposition/conjunction longitude line.
void setColorGalacticEquatorLine(const Vec3f &newColor)
Set the color of the Galactic Equator Line.
void setColorPrimeVerticalLine(const Vec3f &newColor)
Set the color of the Prime Vertical Line.
void setColorSupergalacticPoles(const Vec3f &newColor)
Set the color of the supergalactic poles.
bool getFlagEquatorJ2000Line(void) const
Accessor for displaying J2000 Equatorial Line.
Vec3f getColorCelestialPoles(void) const
Get the current color of the celestial poles.
void setColorMeridianLine(const Vec3f &newColor)
Set the color of the Meridian Line.
Vec3f getColorEclipticLine(void) const
Get the current color of the Ecliptic Line.
void setColorHorizonLine(const Vec3f &newColor)
Set the color of the Horizon Line.
Vec3f getColorPrimeVerticalLine(void) const
Get the current color of the Prime Vertical Line.
StelModuleActionName
Define the possible action for which an order is defined.
Definition: StelModule.hpp:121
bool getFlagEclipticJ2000Line(void) const
Accessor for displaying Ecliptic of J2000 Line.
bool getFlagSupergalacticGrid(void) const
Accessor for displaying Supergalactic Grid.
void setColorSupergalacticEquatorLine(const Vec3f &newColor)
Set the color of the Supergalactic Equator Line.
bool getFlagEclipticJ2000Poles(void) const
Accessor for displaying ecliptic poles of J2000.
void setColorEclipticGrid(const Vec3f &newColor)
Set the color of the Ecliptic Grid.
virtual void update(double deltaTime)
Update time-dependent features.
Vec3f getColorEclipticGrid(void) const
Get the current color of the Ecliptic of Date Grid.
Vec3f getColorMeridianLine(void) const
Get the current color of the Meridian Line.
void setColorGalacticGrid(const Vec3f &newColor)
Set the color of the Galactic Grid.
void setFlagEclipticPoles(const bool displayed)
Setter for displaying ecliptic poles.
void setFlagEclipticLine(const bool displayed)
Setter for displaying Ecliptic Line.
bool getFlagSolsticePoints(void) const
Accessor for displaying solstice points.
void setColorGalacticPoles(const Vec3f &newColor)
Set the color of the galactic poles.
void setFlagSupergalacticPoles(const bool displayed)
Setter for displaying supergalactic poles.
void setFlagEquatorJ2000Line(const bool displayed)
Setter for displaying J2000 Equatorial Line.
Vec3f getColorColureLines(void) const
Get the current color of the Colure Lines.
void setColorEclipticPoles(const Vec3f &newColor)
Set the color of the ecliptic poles.
void setFlagSolsticeJ2000Points(const bool displayed)
Setter for displaying solstice points of J2000.
bool getFlagHorizonLine(void) const
Accessor for displaying Horizon Line.
bool getFlagAzimuthalGrid(void) const
Accessor for displaying Azimuthal Grid.
Vec3f getColorPrecessionCircles(void) const
Get the current color of the precession circles.
void setFlagPrimeVerticalLine(const bool displayed)
Setter for displaying the Prime Vertical Line.
Vec3f getColorEquatorLine(void) const
Get the current color of the Equatorial Line.
Vec3f getColorGalacticEquatorLine(void) const
Get the current color of the Galactic Equator Line.
Vec3f getColorGalacticPoles(void) const
Get the current color of the galactic poles.
Vec3f getColorSolsticePoints(void) const
Get the current color of the solstice points.
bool getFlagEquatorLine(void) const
Accessor for displaying Equatorial Line.
void setFlagHorizonLine(const bool displayed)
Setter for displaying Horizon Line.
bool getFlagSupergalacticPoles(void) const
Accessor for displaying supergalactic poles.
bool getFlagGalacticPoles(void) const
Accessor for displaying galactic poles.
void setColorAzimuthalGrid(const Vec3f &newColor)
Set the color of the Azimuthal Grid.
void setFlagLongitudeLine(const bool displayed)
Setter for displaying opposition/conjunction longitude line.
Vec3f getColorEquatorJ2000Line(void) const
Get the current color of the J2000 Equatorial Line.
This is the common base class for all the main components of stellarium.
Definition: StelModule.hpp:49
Vec3f getColorCelestialJ2000Poles(void) const
Get the current color of the celestial poles of J2000.
void setFlagGalacticPoles(const bool displayed)
Setter for displaying galactic poles.
bool getFlagCircumpolarCircles(void) const
Accessor for displaying circumpolar circles.
bool getFlagEquatorGrid(void) const
Accessor for displaying Equatorial Grid.
bool getFlagMeridianLine(void) const
Accessor for displaying Meridian Line.
void setColorEclipticJ2000Line(const Vec3f &newColor)
Set the color of the Ecliptic of J2000 Line.
void setFlagMeridianLine(const bool displayed)
Setter for displaying Meridian Line.