Stellarium 0.90.0
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 public:
302  GridLinesMgr();
303  virtual ~GridLinesMgr();
304 
306  // Methods defined in the StelModule class
311  virtual void init();
312 
314  virtual QString getModuleID() const {return "GridLinesMgr";}
315 
320  virtual void draw(StelCore* core);
321 
324  virtual void update(double deltaTime);
325 
327  virtual double getCallOrder(StelModuleActionName actionName) const;
328 
330  // Setter and getters
331 public slots:
333  void setFlagAzimuthalGrid(const bool displayed);
335  bool getFlagAzimuthalGrid(void) const;
337  Vec3f getColorAzimuthalGrid(void) const;
344  void setColorAzimuthalGrid(const Vec3f& newColor);
345 
347  void setFlagEquatorGrid(const bool displayed);
349  bool getFlagEquatorGrid(void) const;
351  Vec3f getColorEquatorGrid(void) const;
358  void setColorEquatorGrid(const Vec3f& newColor);
359 
361  void setFlagEquatorJ2000Grid(const bool displayed);
363  bool getFlagEquatorJ2000Grid(void) const;
365  Vec3f getColorEquatorJ2000Grid(void) const;
372  void setColorEquatorJ2000Grid(const Vec3f& newColor);
373 
375  void setFlagEclipticJ2000Grid(const bool displayed);
377  bool getFlagEclipticJ2000Grid(void) const;
379  Vec3f getColorEclipticJ2000Grid(void) const;
386  void setColorEclipticJ2000Grid(const Vec3f& newColor);
387 
389  void setFlagEclipticGrid(const bool displayed);
391  bool getFlagEclipticGrid(void) const;
393  Vec3f getColorEclipticGrid(void) const;
400  void setColorEclipticGrid(const Vec3f& newColor);
401 
403  void setFlagGalacticGrid(const bool displayed);
405  bool getFlagGalacticGrid(void) const;
407  Vec3f getColorGalacticGrid(void) const;
414  void setColorGalacticGrid(const Vec3f& newColor);
415 
417  void setFlagSupergalacticGrid(const bool displayed);
419  bool getFlagSupergalacticGrid(void) const;
421  Vec3f getColorSupergalacticGrid(void) const;
428  void setColorSupergalacticGrid(const Vec3f& newColor);
429 
431  void setFlagEquatorLine(const bool displayed);
433  bool getFlagEquatorLine(void) const;
435  Vec3f getColorEquatorLine(void) const;
442  void setColorEquatorLine(const Vec3f& newColor);
443 
445  void setFlagEquatorJ2000Line(const bool displayed);
447  bool getFlagEquatorJ2000Line(void) const;
449  Vec3f getColorEquatorJ2000Line(void) const;
456  void setColorEquatorJ2000Line(const Vec3f& newColor);
457 
459  void setFlagEclipticJ2000Line(const bool displayed);
461  bool getFlagEclipticJ2000Line(void) const;
463  Vec3f getColorEclipticJ2000Line(void) const;
470  void setColorEclipticJ2000Line(const Vec3f& newColor);
471 
473  void setFlagEclipticLine(const bool displayed);
475  bool getFlagEclipticLine(void) const;
477  Vec3f getColorEclipticLine(void) const;
484  void setColorEclipticLine(const Vec3f& newColor);
485 
487  void setFlagPrecessionCircles(const bool displayed);
489  bool getFlagPrecessionCircles(void) const;
491  Vec3f getColorPrecessionCircles(void) const;
498  void setColorPrecessionCircles(const Vec3f& newColor);
499 
501  void setFlagMeridianLine(const bool displayed);
503  bool getFlagMeridianLine(void) const;
505  Vec3f getColorMeridianLine(void) const;
512  void setColorMeridianLine(const Vec3f& newColor);
513 
515  void setFlagLongitudeLine(const bool displayed);
517  bool getFlagLongitudeLine(void) const;
519  Vec3f getColorLongitudeLine(void) const;
526  void setColorLongitudeLine(const Vec3f& newColor);
527 
529  void setFlagHorizonLine(const bool displayed);
531  bool getFlagHorizonLine(void) const;
533  Vec3f getColorHorizonLine(void) const;
540  void setColorHorizonLine(const Vec3f& newColor);
541 
543  void setFlagGalacticEquatorLine(const bool displayed);
546  void setFlagGalacticPlaneLine(const bool displayed) { setFlagGalacticEquatorLine(displayed); }
548  bool getFlagGalacticEquatorLine(void) const;
560  void setColorGalacticEquatorLine(const Vec3f& newColor);
561 
563  void setFlagSupergalacticEquatorLine(const bool displayed);
565  bool getFlagSupergalacticEquatorLine(void) const;
574  void setColorSupergalacticEquatorLine(const Vec3f& newColor);
575 
577  void setFlagPrimeVerticalLine(const bool displayed);
579  bool getFlagPrimeVerticalLine(void) const;
581  Vec3f getColorPrimeVerticalLine(void) const;
588  void setColorPrimeVerticalLine(const Vec3f& newColor);
589 
591  void setFlagColureLines(const bool displayed);
593  bool getFlagColureLines(void) const;
595  Vec3f getColorColureLines(void) const;
602  void setColorColureLines(const Vec3f& newColor);
603 
605  void setFlagCircumpolarCircles(const bool displayed);
607  bool getFlagCircumpolarCircles(void) const;
609  Vec3f getColorCircumpolarCircles(void) const;
616  void setColorCircumpolarCircles(const Vec3f& newColor);
617 
619  void setFlagCelestialJ2000Poles(const bool displayed);
621  bool getFlagCelestialJ2000Poles(void) const;
630  void setColorCelestialJ2000Poles(const Vec3f& newColor);
631 
633  void setFlagCelestialPoles(const bool displayed);
635  bool getFlagCelestialPoles(void) const;
637  Vec3f getColorCelestialPoles(void) const;
644  void setColorCelestialPoles(const Vec3f& newColor);
645 
647  void setFlagZenithNadir(const bool displayed);
649  bool getFlagZenithNadir(void) const;
651  Vec3f getColorZenithNadir(void) const;
658  void setColorZenithNadir(const Vec3f& newColor);
659 
661  void setFlagEclipticJ2000Poles(const bool displayed);
663  bool getFlagEclipticJ2000Poles(void) const;
665  Vec3f getColorEclipticJ2000Poles(void) const;
672  void setColorEclipticJ2000Poles(const Vec3f& newColor);
673 
675  void setFlagEclipticPoles(const bool displayed);
677  bool getFlagEclipticPoles(void) const;
679  Vec3f getColorEclipticPoles(void) const;
686  void setColorEclipticPoles(const Vec3f& newColor);
687 
689  void setFlagGalacticPoles(const bool displayed);
691  bool getFlagGalacticPoles(void) const;
693  Vec3f getColorGalacticPoles(void) const;
700  void setColorGalacticPoles(const Vec3f& newColor);
701 
703  void setFlagSupergalacticPoles(const bool displayed);
705  bool getFlagSupergalacticPoles(void) const;
707  Vec3f getColorSupergalacticPoles(void) const;
714  void setColorSupergalacticPoles(const Vec3f& newColor);
715 
717  void setFlagEquinoxJ2000Points(const bool displayed);
719  bool getFlagEquinoxJ2000Points(void) const;
721  Vec3f getColorEquinoxJ2000Points(void) const;
728  void setColorEquinoxJ2000Points(const Vec3f& newColor);
729 
731  void setFlagEquinoxPoints(const bool displayed);
733  bool getFlagEquinoxPoints(void) const;
735  Vec3f getColorEquinoxPoints(void) const;
742  void setColorEquinoxPoints(const Vec3f& newColor);
743 
744 signals:
745  void azimuthalGridDisplayedChanged(const bool) const;
746  void azimuthalGridColorChanged(const Vec3f & newColor) const;
747  void equatorGridDisplayedChanged(const bool displayed) const;
748  void equatorGridColorChanged(const Vec3f & newColor) const;
749  void equatorJ2000GridDisplayedChanged(const bool displayed) const;
750  void equatorJ2000GridColorChanged(const Vec3f & newColor) const;
751  void eclipticGridDisplayedChanged(const bool displayed) const;
752  void eclipticGridColorChanged(const Vec3f & newColor) const;
753  void eclipticJ2000GridDisplayedChanged(const bool displayed) const;
754  void eclipticJ2000GridColorChanged(const Vec3f & newColor) const;
755  void galacticGridDisplayedChanged(const bool displayed) const;
756  void galacticGridColorChanged(const Vec3f & newColor) const;
757  void supergalacticGridDisplayedChanged(const bool displayed) const;
758  void supergalacticGridColorChanged(const Vec3f & newColor) const;
759  void equatorLineDisplayedChanged(const bool displayed) const;
760  void equatorLineColorChanged(const Vec3f & newColor) const;
761  void equatorJ2000LineDisplayedChanged(const bool displayed) const;
762  void equatorJ2000LineColorChanged(const Vec3f & newColor) const;
763  void eclipticLineDisplayedChanged(const bool displayed) const;
764  void eclipticLineColorChanged(const Vec3f & newColor) const;
765  void eclipticJ2000LineDisplayedChanged(const bool displayed) const;
766  void eclipticJ2000LineColorChanged(const Vec3f & newColor) const;
767  void precessionCirclesDisplayedChanged(const bool displayed) const;
768  void precessionCirclesColorChanged(const Vec3f & newColor) const;
769  void meridianLineDisplayedChanged(const bool displayed) const;
770  void meridianLineColorChanged(const Vec3f & newColor) const;
771  void longitudeLineDisplayedChanged(const bool displayed) const;
772  void longitudeLineColorChanged(const Vec3f & newColor) const;
773  void horizonLineDisplayedChanged(const bool displayed) const;
774  void horizonLineColorChanged(const Vec3f & newColor) const;
775  void galacticEquatorLineDisplayedChanged(const bool displayed) const;
776  void galacticEquatorLineColorChanged(const Vec3f & newColor) const;
777  void supergalacticEquatorLineDisplayedChanged(const bool displayed) const;
778  void supergalacticEquatorLineColorChanged(const Vec3f & newColor) const;
779  void primeVerticalLineDisplayedChanged(const bool displayed) const;
780  void primeVerticalLineColorChanged(const Vec3f & newColor) const;
781  void colureLinesDisplayedChanged(const bool displayed) const;
782  void colureLinesColorChanged(const Vec3f & newColor) const;
783  void circumpolarCirclesDisplayedChanged(const bool displayed) const;
784  void circumpolarCirclesColorChanged(const Vec3f & newColor) const;
785  void celestialJ2000PolesDisplayedChanged(const bool displayed) const;
786  void celestialJ2000PolesColorChanged(const Vec3f & newColor) const;
787  void celestialPolesDisplayedChanged(const bool displayed) const;
788  void celestialPolesColorChanged(const Vec3f & newColor) const;
789  void zenithNadirDisplayedChanged(const bool displayed) const;
790  void zenithNadirColorChanged(const Vec3f & newColor) const;
791  void eclipticJ2000PolesDisplayedChanged(const bool displayed) const;
792  void eclipticJ2000PolesColorChanged(const Vec3f & newColor) const;
793  void eclipticPolesDisplayedChanged(const bool displayed) const;
794  void eclipticPolesColorChanged(const Vec3f & newColor) const;
795  void galacticPolesDisplayedChanged(const bool displayed) const;
796  void galacticPolesColorChanged(const Vec3f & newColor) const;
797  void supergalacticPolesDisplayedChanged(const bool displayed) const;
798  void supergalacticPolesColorChanged(const Vec3f & newColor) const;
799  void equinoxJ2000PointsDisplayedChanged(const bool displayed) const;
800  void equinoxJ2000PointsColorChanged(const Vec3f & newColor) const;
801  void equinoxPointsDisplayedChanged(const bool displayed) const;
802  void equinoxPointsColorChanged(const Vec3f & newColor) const;
803 
804 private slots:
807  void updateLineLabels();
808 
809 private:
810  SkyGrid * equGrid; // Equatorial grid
811  SkyGrid * equJ2000Grid; // Equatorial J2000 grid
812  SkyGrid * galacticGrid; // Galactic grid
813  SkyGrid * supergalacticGrid; // Supergalactic grid
814  SkyGrid * eclGrid; // Ecliptic of Date grid
815  SkyGrid * eclJ2000Grid; // Ecliptic J2000 grid
816  SkyGrid * aziGrid; // Azimuthal grid
817  SkyLine * equatorLine; // Celestial Equator line
818  SkyLine * equatorJ2000Line; // Celestial Equator of J2000 line
819  SkyLine * eclipticLine; // Ecliptic line
820  SkyLine * eclipticJ2000Line; // Ecliptic line of J2000
821  SkyLine * precessionCircleN; // Northern precession circle
822  SkyLine * precessionCircleS; // Southern precession circle
823  SkyLine * meridianLine; // Meridian line
824  SkyLine * longitudeLine; // Opposition/conjunction longitude line
825  SkyLine * horizonLine; // Horizon line
826  SkyLine * galacticEquatorLine; // line depicting the Galactic equator as defined by the IAU definition of Galactic coordinates (System II, 1958)
827  SkyLine * supergalacticEquatorLine; // line depicting the Supergalactic equator
828  SkyLine * primeVerticalLine; // Prime Vertical line
829  SkyLine * colureLine_1; // First Colure line (0/12h)
830  SkyLine * colureLine_2; // Second Colure line (6/18h)
831  SkyLine * circumpolarCircleN; // Northern circumpolar circle
832  SkyLine * circumpolarCircleS; // Southern circumpolar circle
833  SkyPoint * celestialJ2000Poles; // Celestial poles of J2000
834  SkyPoint * celestialPoles; // Celestial poles
835  SkyPoint * zenithNadir; // Zenith and nadir
836  SkyPoint * eclipticJ2000Poles; // Ecliptic poles of J2000
837  SkyPoint * eclipticPoles; // Ecliptic poles
838  SkyPoint * galacticPoles; // Galactic poles
839  SkyPoint * supergalacticPoles; // Supergalactic poles
840  SkyPoint * equinoxJ2000Points; // Equinox points of J2000
841  SkyPoint * equinoxPoints; // Equinox points
842 };
843 
844 #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.
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 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.
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 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 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.
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.
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.
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.