Stellarium  0.16.1
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 #include "Planet.hpp"
27 
28 class SkyGrid;
29 class SkyLine;
30 class SkyPoint;
31 
36 class GridLinesMgr : public StelModule
37 {
38  Q_OBJECT
39  Q_PROPERTY(bool gridlinesDisplayed
40  READ getFlagGridlines
41  WRITE setFlagGridlines
42  NOTIFY gridlinesDisplayedChanged)
43 
44  Q_PROPERTY(bool azimuthalGridDisplayed
47  NOTIFY azimuthalGridDisplayedChanged)
48  Q_PROPERTY(Vec3f azimuthalGridColor
51  NOTIFY azimuthalGridColorChanged)
52 
53  Q_PROPERTY(bool equatorGridDisplayed
55  WRITE setFlagEquatorGrid
56  NOTIFY equatorGridDisplayedChanged)
57  Q_PROPERTY(Vec3f equatorGridColor
60  NOTIFY equatorGridColorChanged)
61 
62  Q_PROPERTY(bool equatorJ2000GridDisplayed
65  NOTIFY equatorJ2000GridDisplayedChanged)
66  Q_PROPERTY(Vec3f equatorJ2000GridColor
69  NOTIFY equatorJ2000GridColorChanged)
70 
71  Q_PROPERTY(bool eclipticJ2000GridDisplayed
74  NOTIFY eclipticJ2000GridDisplayedChanged)
75  Q_PROPERTY(Vec3f eclipticJ2000GridColor
78  NOTIFY eclipticJ2000GridColorChanged)
79 
80  Q_PROPERTY(bool eclipticGridDisplayed
83  NOTIFY eclipticGridDisplayedChanged)
84  Q_PROPERTY(Vec3f eclipticGridColor
87  NOTIFY eclipticGridColorChanged)
88 
89  Q_PROPERTY(bool galacticGridDisplayed
92  NOTIFY galacticGridDisplayedChanged)
93  Q_PROPERTY(Vec3f galacticGridColor
96  NOTIFY galacticGridColorChanged)
97 
98  Q_PROPERTY(bool supergalacticGridDisplayed
101  NOTIFY supergalacticGridDisplayedChanged)
102  Q_PROPERTY(Vec3f supergalacticGridColor
105  NOTIFY supergalacticGridColorChanged)
106 
107  Q_PROPERTY(bool equatorLineDisplayed
108  READ getFlagEquatorLine
109  WRITE setFlagEquatorLine
110  NOTIFY equatorLineDisplayedChanged)
111  Q_PROPERTY(Vec3f equatorLineColor
113  WRITE setColorEquatorLine
114  NOTIFY equatorLineColorChanged)
115 
116  Q_PROPERTY(bool equatorJ2000LineDisplayed
119  NOTIFY equatorJ2000LineDisplayedChanged)
120  Q_PROPERTY(Vec3f equatorJ2000LineColor
123  NOTIFY equatorJ2000LineColorChanged)
124 
125  // This is now ecl. of date.
126  Q_PROPERTY(bool eclipticLineDisplayed
128  WRITE setFlagEclipticLine
129  NOTIFY eclipticLineDisplayedChanged)
130  Q_PROPERTY(Vec3f eclipticLineColor
133  NOTIFY eclipticLineColorChanged)
134 
135  // new name, but replaces old ecliptic.
136  Q_PROPERTY(bool eclipticJ2000LineDisplayed
139  NOTIFY eclipticJ2000LineDisplayedChanged)
140  Q_PROPERTY(Vec3f eclipticJ2000LineColor
143  NOTIFY eclipticJ2000LineColorChanged)
144 
145  Q_PROPERTY(bool precessionCirclesDisplayed
148  NOTIFY precessionCirclesDisplayedChanged)
149  Q_PROPERTY(Vec3f precessionCirclesColor
152  NOTIFY precessionCirclesColorChanged)
153 
154  Q_PROPERTY(bool meridianLineDisplayed
156  WRITE setFlagMeridianLine
157  NOTIFY meridianLineDisplayedChanged)
158  Q_PROPERTY(Vec3f meridianLineColor
161  NOTIFY meridianLineColorChanged)
162 
163  Q_PROPERTY(bool longitudeLineDisplayed
166  NOTIFY longitudeLineDisplayedChanged)
167  Q_PROPERTY(Vec3f longitudeLineColor
170  NOTIFY longitudeLineColorChanged)
171 
172  Q_PROPERTY(bool horizonLineDisplayed
173  READ getFlagHorizonLine
174  WRITE setFlagHorizonLine
175  NOTIFY horizonLineDisplayedChanged)
176  Q_PROPERTY(Vec3f horizonLineColor
178  WRITE setColorHorizonLine
179  NOTIFY horizonLineColorChanged)
180 
181  Q_PROPERTY(bool galacticEquatorLineDisplayed
184  NOTIFY galacticEquatorLineDisplayedChanged)
185  Q_PROPERTY(Vec3f galacticEquatorLineColor
188  NOTIFY galacticEquatorLineColorChanged)
189 
190  Q_PROPERTY(bool supergalacticEquatorLineDisplayed
193  NOTIFY supergalacticEquatorLineDisplayedChanged)
194  Q_PROPERTY(Vec3f supergalacticEquatorLineColor
197  NOTIFY supergalacticEquatorLineColorChanged)
198 
199  Q_PROPERTY(bool primeVerticalLineDisplayed
202  NOTIFY primeVerticalLineDisplayedChanged)
203  Q_PROPERTY(Vec3f primeVerticalLineColor
206  NOTIFY primeVerticalLineColorChanged)
207 
208  Q_PROPERTY(bool colureLinesDisplayed
209  READ getFlagColureLines
210  WRITE setFlagColureLines
211  NOTIFY colureLinesDisplayedChanged)
212  Q_PROPERTY(Vec3f colureLinesColor
214  WRITE setColorColureLines
215  NOTIFY colureLinesColorChanged)
216 
217  Q_PROPERTY(bool circumpolarCirclesDisplayed
220  NOTIFY circumpolarCirclesDisplayedChanged)
221  Q_PROPERTY(Vec3f circumpolarCirclesColor
224  NOTIFY circumpolarCirclesColorChanged)
225 
226  Q_PROPERTY(bool celestialJ2000PolesDisplayed
229  NOTIFY celestialJ2000PolesDisplayedChanged)
230  Q_PROPERTY(Vec3f celestialJ2000PolesColor
233  NOTIFY celestialJ2000PolesColorChanged)
234 
235  Q_PROPERTY(bool celestialPolesDisplayed
238  NOTIFY celestialPolesDisplayedChanged)
239  Q_PROPERTY(Vec3f celestialPolesColor
242  NOTIFY celestialPolesColorChanged)
243 
244  Q_PROPERTY(bool zenithNadirDisplayed
245  READ getFlagZenithNadir
246  WRITE setFlagZenithNadir
247  NOTIFY zenithNadirDisplayedChanged)
248  Q_PROPERTY(Vec3f zenithNadirColor
250  WRITE setColorZenithNadir
251  NOTIFY zenithNadirColorChanged)
252 
253  Q_PROPERTY(bool eclipticJ2000PolesDisplayed
256  NOTIFY eclipticJ2000PolesDisplayedChanged)
257  Q_PROPERTY(Vec3f eclipticJ2000PolesColor
260  NOTIFY eclipticJ2000PolesColorChanged)
261 
262  Q_PROPERTY(bool eclipticPolesDisplayed
265  NOTIFY eclipticPolesDisplayedChanged)
266  Q_PROPERTY(Vec3f eclipticPolesColor
269  NOTIFY eclipticPolesColorChanged)
270 
271  Q_PROPERTY(bool galacticPolesDisplayed
274  NOTIFY galacticPolesDisplayedChanged)
275  Q_PROPERTY(Vec3f galacticPolesColor
278  NOTIFY galacticPolesColorChanged)
279 
280  Q_PROPERTY(bool supergalacticPolesDisplayed
283  NOTIFY supergalacticPolesDisplayedChanged)
284  Q_PROPERTY(Vec3f supergalacticPolesColor
287  NOTIFY supergalacticPolesColorChanged)
288 
289  Q_PROPERTY(bool equinoxJ2000PointsDisplayed
292  NOTIFY equinoxJ2000PointsDisplayedChanged)
293  Q_PROPERTY(Vec3f equinoxJ2000PointsColor
296  NOTIFY equinoxJ2000PointsColorChanged)
297 
298  Q_PROPERTY(bool equinoxPointsDisplayed
301  NOTIFY equinoxPointsDisplayedChanged)
302  Q_PROPERTY(Vec3f equinoxPointsColor
305  NOTIFY equinoxPointsColorChanged)
306 
307  Q_PROPERTY(bool solsticeJ2000PointsDisplayed
310  NOTIFY solsticeJ2000PointsDisplayedChanged)
311  Q_PROPERTY(Vec3f solsticeJ2000PointsColor
314  NOTIFY solsticeJ2000PointsColorChanged)
315 
316  Q_PROPERTY(bool solsticePointsDisplayed
319  NOTIFY solsticePointsDisplayedChanged)
320  Q_PROPERTY(Vec3f solsticePointsColor
323  NOTIFY solsticePointsColorChanged)
324 
325 public:
326  GridLinesMgr();
327  virtual ~GridLinesMgr();
328 
330  // Methods defined in the StelModule class
335  virtual void init();
336 
338  virtual QString getModuleID() const {return "GridLinesMgr";}
339 
344  virtual void draw(StelCore* core);
345 
348  virtual void update(double deltaTime);
349 
351  virtual double getCallOrder(StelModuleActionName actionName) const;
352 
354  // Setter and getters
355 public slots:
357  void setFlagGridlines(const bool displayed);
359  bool getFlagGridlines(void) const;
360 
362  void setFlagAzimuthalGrid(const bool displayed);
364  bool getFlagAzimuthalGrid(void) const;
366  Vec3f getColorAzimuthalGrid(void) const;
373  void setColorAzimuthalGrid(const Vec3f& newColor);
374 
376  void setFlagEquatorGrid(const bool displayed);
378  bool getFlagEquatorGrid(void) const;
380  Vec3f getColorEquatorGrid(void) const;
387  void setColorEquatorGrid(const Vec3f& newColor);
388 
390  void setFlagEquatorJ2000Grid(const bool displayed);
392  bool getFlagEquatorJ2000Grid(void) const;
394  Vec3f getColorEquatorJ2000Grid(void) const;
401  void setColorEquatorJ2000Grid(const Vec3f& newColor);
402 
404  void setFlagEclipticJ2000Grid(const bool displayed);
406  bool getFlagEclipticJ2000Grid(void) const;
408  Vec3f getColorEclipticJ2000Grid(void) const;
415  void setColorEclipticJ2000Grid(const Vec3f& newColor);
416 
418  void setFlagEclipticGrid(const bool displayed);
420  bool getFlagEclipticGrid(void) const;
422  Vec3f getColorEclipticGrid(void) const;
429  void setColorEclipticGrid(const Vec3f& newColor);
430 
432  void setFlagGalacticGrid(const bool displayed);
434  bool getFlagGalacticGrid(void) const;
436  Vec3f getColorGalacticGrid(void) const;
443  void setColorGalacticGrid(const Vec3f& newColor);
444 
446  void setFlagSupergalacticGrid(const bool displayed);
448  bool getFlagSupergalacticGrid(void) const;
450  Vec3f getColorSupergalacticGrid(void) const;
457  void setColorSupergalacticGrid(const Vec3f& newColor);
458 
460  void setFlagEquatorLine(const bool displayed);
462  bool getFlagEquatorLine(void) const;
464  Vec3f getColorEquatorLine(void) const;
471  void setColorEquatorLine(const Vec3f& newColor);
472 
474  void setFlagEquatorJ2000Line(const bool displayed);
476  bool getFlagEquatorJ2000Line(void) const;
478  Vec3f getColorEquatorJ2000Line(void) const;
485  void setColorEquatorJ2000Line(const Vec3f& newColor);
486 
488  void setFlagEclipticJ2000Line(const bool displayed);
490  bool getFlagEclipticJ2000Line(void) const;
492  Vec3f getColorEclipticJ2000Line(void) const;
499  void setColorEclipticJ2000Line(const Vec3f& newColor);
500 
502  void setFlagEclipticLine(const bool displayed);
504  bool getFlagEclipticLine(void) const;
506  Vec3f getColorEclipticLine(void) const;
513  void setColorEclipticLine(const Vec3f& newColor);
514 
516  void setFlagPrecessionCircles(const bool displayed);
518  bool getFlagPrecessionCircles(void) const;
520  Vec3f getColorPrecessionCircles(void) const;
527  void setColorPrecessionCircles(const Vec3f& newColor);
528 
530  void setFlagMeridianLine(const bool displayed);
532  bool getFlagMeridianLine(void) const;
534  Vec3f getColorMeridianLine(void) const;
541  void setColorMeridianLine(const Vec3f& newColor);
542 
544  void setFlagLongitudeLine(const bool displayed);
546  bool getFlagLongitudeLine(void) const;
548  Vec3f getColorLongitudeLine(void) const;
555  void setColorLongitudeLine(const Vec3f& newColor);
556 
558  void setFlagHorizonLine(const bool displayed);
560  bool getFlagHorizonLine(void) const;
562  Vec3f getColorHorizonLine(void) const;
569  void setColorHorizonLine(const Vec3f& newColor);
570 
572  void setFlagGalacticEquatorLine(const bool displayed);
575  void setFlagGalacticPlaneLine(const bool displayed) { setFlagGalacticEquatorLine(displayed); }
577  bool getFlagGalacticEquatorLine(void) const;
589  void setColorGalacticEquatorLine(const Vec3f& newColor);
590 
592  void setFlagSupergalacticEquatorLine(const bool displayed);
594  bool getFlagSupergalacticEquatorLine(void) const;
603  void setColorSupergalacticEquatorLine(const Vec3f& newColor);
604 
606  void setFlagPrimeVerticalLine(const bool displayed);
608  bool getFlagPrimeVerticalLine(void) const;
610  Vec3f getColorPrimeVerticalLine(void) const;
617  void setColorPrimeVerticalLine(const Vec3f& newColor);
618 
620  void setFlagColureLines(const bool displayed);
622  bool getFlagColureLines(void) const;
624  Vec3f getColorColureLines(void) const;
631  void setColorColureLines(const Vec3f& newColor);
632 
634  void setFlagCircumpolarCircles(const bool displayed);
636  bool getFlagCircumpolarCircles(void) const;
638  Vec3f getColorCircumpolarCircles(void) const;
645  void setColorCircumpolarCircles(const Vec3f& newColor);
646 
648  void setFlagCelestialJ2000Poles(const bool displayed);
650  bool getFlagCelestialJ2000Poles(void) const;
659  void setColorCelestialJ2000Poles(const Vec3f& newColor);
660 
662  void setFlagCelestialPoles(const bool displayed);
664  bool getFlagCelestialPoles(void) const;
666  Vec3f getColorCelestialPoles(void) const;
673  void setColorCelestialPoles(const Vec3f& newColor);
674 
676  void setFlagZenithNadir(const bool displayed);
678  bool getFlagZenithNadir(void) const;
680  Vec3f getColorZenithNadir(void) const;
687  void setColorZenithNadir(const Vec3f& newColor);
688 
690  void setFlagEclipticJ2000Poles(const bool displayed);
692  bool getFlagEclipticJ2000Poles(void) const;
694  Vec3f getColorEclipticJ2000Poles(void) const;
701  void setColorEclipticJ2000Poles(const Vec3f& newColor);
702 
704  void setFlagEclipticPoles(const bool displayed);
706  bool getFlagEclipticPoles(void) const;
708  Vec3f getColorEclipticPoles(void) const;
715  void setColorEclipticPoles(const Vec3f& newColor);
716 
718  void setFlagGalacticPoles(const bool displayed);
720  bool getFlagGalacticPoles(void) const;
722  Vec3f getColorGalacticPoles(void) const;
729  void setColorGalacticPoles(const Vec3f& newColor);
730 
732  void setFlagSupergalacticPoles(const bool displayed);
734  bool getFlagSupergalacticPoles(void) const;
736  Vec3f getColorSupergalacticPoles(void) const;
743  void setColorSupergalacticPoles(const Vec3f& newColor);
744 
746  void setFlagEquinoxJ2000Points(const bool displayed);
748  bool getFlagEquinoxJ2000Points(void) const;
750  Vec3f getColorEquinoxJ2000Points(void) const;
757  void setColorEquinoxJ2000Points(const Vec3f& newColor);
758 
760  void setFlagEquinoxPoints(const bool displayed);
762  bool getFlagEquinoxPoints(void) const;
764  Vec3f getColorEquinoxPoints(void) const;
771  void setColorEquinoxPoints(const Vec3f& newColor);
772 
774  void setFlagSolsticeJ2000Points(const bool displayed);
776  bool getFlagSolsticeJ2000Points(void) const;
785  void setColorSolsticeJ2000Points(const Vec3f& newColor);
786 
788  void setFlagSolsticePoints(const bool displayed);
790  bool getFlagSolsticePoints(void) const;
792  Vec3f getColorSolsticePoints(void) const;
799  void setColorSolsticePoints(const Vec3f& newColor);
800 
801 signals:
802  void gridlinesDisplayedChanged(const bool) const;
803  void azimuthalGridDisplayedChanged(const bool) const;
804  void azimuthalGridColorChanged(const Vec3f & newColor) const;
805  void equatorGridDisplayedChanged(const bool displayed) const;
806  void equatorGridColorChanged(const Vec3f & newColor) const;
807  void equatorJ2000GridDisplayedChanged(const bool displayed) const;
808  void equatorJ2000GridColorChanged(const Vec3f & newColor) const;
809  void eclipticGridDisplayedChanged(const bool displayed) const;
810  void eclipticGridColorChanged(const Vec3f & newColor) const;
811  void eclipticJ2000GridDisplayedChanged(const bool displayed) const;
812  void eclipticJ2000GridColorChanged(const Vec3f & newColor) const;
813  void galacticGridDisplayedChanged(const bool displayed) const;
814  void galacticGridColorChanged(const Vec3f & newColor) const;
815  void supergalacticGridDisplayedChanged(const bool displayed) const;
816  void supergalacticGridColorChanged(const Vec3f & newColor) const;
817  void equatorLineDisplayedChanged(const bool displayed) const;
818  void equatorLineColorChanged(const Vec3f & newColor) const;
819  void equatorJ2000LineDisplayedChanged(const bool displayed) const;
820  void equatorJ2000LineColorChanged(const Vec3f & newColor) const;
821  void eclipticLineDisplayedChanged(const bool displayed) const;
822  void eclipticLineColorChanged(const Vec3f & newColor) const;
823  void eclipticJ2000LineDisplayedChanged(const bool displayed) const;
824  void eclipticJ2000LineColorChanged(const Vec3f & newColor) const;
825  void precessionCirclesDisplayedChanged(const bool displayed) const;
826  void precessionCirclesColorChanged(const Vec3f & newColor) const;
827  void meridianLineDisplayedChanged(const bool displayed) const;
828  void meridianLineColorChanged(const Vec3f & newColor) const;
829  void longitudeLineDisplayedChanged(const bool displayed) const;
830  void longitudeLineColorChanged(const Vec3f & newColor) const;
831  void horizonLineDisplayedChanged(const bool displayed) const;
832  void horizonLineColorChanged(const Vec3f & newColor) const;
833  void galacticEquatorLineDisplayedChanged(const bool displayed) const;
834  void galacticEquatorLineColorChanged(const Vec3f & newColor) const;
835  void supergalacticEquatorLineDisplayedChanged(const bool displayed) const;
836  void supergalacticEquatorLineColorChanged(const Vec3f & newColor) const;
837  void primeVerticalLineDisplayedChanged(const bool displayed) const;
838  void primeVerticalLineColorChanged(const Vec3f & newColor) const;
839  void colureLinesDisplayedChanged(const bool displayed) const;
840  void colureLinesColorChanged(const Vec3f & newColor) const;
841  void circumpolarCirclesDisplayedChanged(const bool displayed) const;
842  void circumpolarCirclesColorChanged(const Vec3f & newColor) const;
843  void celestialJ2000PolesDisplayedChanged(const bool displayed) const;
844  void celestialJ2000PolesColorChanged(const Vec3f & newColor) const;
845  void celestialPolesDisplayedChanged(const bool displayed) const;
846  void celestialPolesColorChanged(const Vec3f & newColor) const;
847  void zenithNadirDisplayedChanged(const bool displayed) const;
848  void zenithNadirColorChanged(const Vec3f & newColor) const;
849  void eclipticJ2000PolesDisplayedChanged(const bool displayed) const;
850  void eclipticJ2000PolesColorChanged(const Vec3f & newColor) const;
851  void eclipticPolesDisplayedChanged(const bool displayed) const;
852  void eclipticPolesColorChanged(const Vec3f & newColor) const;
853  void galacticPolesDisplayedChanged(const bool displayed) const;
854  void galacticPolesColorChanged(const Vec3f & newColor) const;
855  void supergalacticPolesDisplayedChanged(const bool displayed) const;
856  void supergalacticPolesColorChanged(const Vec3f & newColor) const;
857  void equinoxJ2000PointsDisplayedChanged(const bool displayed) const;
858  void equinoxJ2000PointsColorChanged(const Vec3f & newColor) const;
859  void equinoxPointsDisplayedChanged(const bool displayed) const;
860  void equinoxPointsColorChanged(const Vec3f & newColor) const;
861  void solsticeJ2000PointsDisplayedChanged(const bool displayed) const;
862  void solsticeJ2000PointsColorChanged(const Vec3f & newColor) const;
863  void solsticePointsDisplayedChanged(const bool displayed) const;
864  void solsticePointsColorChanged(const Vec3f & newColor) const;
865 
866 private slots:
869  void updateLineLabels();
872  void connectEarthFromSolarSystem();
873 
874 private:
875  QSharedPointer<Planet> earth; // shortcut Earth pointer. Must be reconnected whenever solar system has been reloaded.
876  bool gridlinesDisplayed; // master switch to switch off all grids/lines. (useful for oculars plugin)
877  SkyGrid * equGrid; // Equatorial grid
878  SkyGrid * equJ2000Grid; // Equatorial J2000 grid
879  SkyGrid * galacticGrid; // Galactic grid
880  SkyGrid * supergalacticGrid; // Supergalactic grid
881  SkyGrid * eclGrid; // Ecliptic of Date grid
882  SkyGrid * eclJ2000Grid; // Ecliptic J2000 grid
883  SkyGrid * aziGrid; // Azimuthal grid
884  SkyLine * equatorLine; // Celestial Equator line
885  SkyLine * equatorJ2000Line; // Celestial Equator line of J2000
886  SkyLine * eclipticLine; // Ecliptic line
887  SkyLine * eclipticJ2000Line; // Ecliptic line of J2000
888  SkyLine * precessionCircleN; // Northern precession circle
889  SkyLine * precessionCircleS; // Southern precession circle
890  SkyLine * meridianLine; // Meridian line
891  SkyLine * longitudeLine; // Opposition/conjunction longitude line
892  SkyLine * horizonLine; // Horizon line
893  SkyLine * galacticEquatorLine; // line depicting the Galactic equator as defined by the IAU definition of Galactic coordinates (System II, 1958)
894  SkyLine * supergalacticEquatorLine; // line depicting the Supergalactic equator
895  SkyLine * primeVerticalLine; // Prime Vertical line
896  SkyLine * colureLine_1; // First Colure line (0/12h)
897  SkyLine * colureLine_2; // Second Colure line (6/18h)
898  SkyLine * circumpolarCircleN; // Northern circumpolar circle
899  SkyLine * circumpolarCircleS; // Southern circumpolar circle
900  SkyPoint * celestialJ2000Poles; // Celestial poles of J2000
901  SkyPoint * celestialPoles; // Celestial poles
902  SkyPoint * zenithNadir; // Zenith and nadir
903  SkyPoint * eclipticJ2000Poles; // Ecliptic poles of J2000
904  SkyPoint * eclipticPoles; // Ecliptic poles
905  SkyPoint * galacticPoles; // Galactic poles
906  SkyPoint * supergalacticPoles; // Supergalactic poles
907  SkyPoint * equinoxJ2000Points; // Equinox points of J2000
908  SkyPoint * equinoxPoints; // Equinox points
909  SkyPoint * solsticeJ2000Points; // Solstice points of J2000
910  SkyPoint * solsticePoints; // Solstice points
911 };
912 
913 #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 setFlagGridlines(const bool displayed)
Setter ("master switch") for displaying any grid/line.
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 getFlagGridlines(void) const
Accessor ("master switch") for displaying any grid/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.