Stellarium 0.13.3
|
The GridLinesMgr controls the drawing of the Azimuthal and Equatorial Grids, as well as the great circles: Meridian Line, Ecliptic Line and Equator Line. More...
#include <GridLinesMgr.hpp>
Public Slots | |
void | setFlagAzimuthalGrid (const bool displayed) |
Setter for displaying Azimuthal Grid. More... | |
bool | getFlagAzimuthalGrid (void) const |
Accessor for displaying Azimuthal Grid. More... | |
Vec3f | getColorAzimuthalGrid (void) const |
Get the current color of the Azimuthal Grid. More... | |
void | setColorAzimuthalGrid (const Vec3f &newColor) |
Set the color of the Azimuthal Grid. More... | |
void | setFlagEquatorGrid (const bool displayed) |
Setter for displaying Equatorial Grid. More... | |
bool | getFlagEquatorGrid (void) const |
Accessor for displaying Equatorial Grid. More... | |
Vec3f | getColorEquatorGrid (void) const |
Get the current color of the Equatorial Grid. More... | |
void | setColorEquatorGrid (const Vec3f &newColor) |
Set the color of the Equatorial Grid. More... | |
void | setFlagEquatorJ2000Grid (const bool displayed) |
Setter for displaying Equatorial Grid. More... | |
bool | getFlagEquatorJ2000Grid (void) const |
Accessor for displaying Equatorial Grid. More... | |
Vec3f | getColorEquatorJ2000Grid (void) const |
Get the current color of the Equatorial J2000 Grid. More... | |
void | setColorEquatorJ2000Grid (const Vec3f &newColor) |
Set the color of the Equatorial J2000 Grid. More... | |
void | setFlagEclipticJ2000Grid (const bool displayed) |
Setter for displaying Ecliptic Grid. More... | |
bool | getFlagEclipticJ2000Grid (void) const |
Accessor for displaying Ecliptic Grid. More... | |
Vec3f | getColorEclipticJ2000Grid (void) const |
Get the current color of the Ecliptic J2000 Grid. More... | |
void | setColorEclipticJ2000Grid (const Vec3f &newColor) |
Set the color of the Ecliptic J2000 Grid. More... | |
void | setFlagGalacticGrid (const bool displayed) |
Setter for displaying Galactic Grid. More... | |
bool | getFlagGalacticGrid (void) const |
Accessor for displaying Galactic Grid. More... | |
Vec3f | getColorGalacticGrid (void) const |
Get the current color of the Galactic Grid. More... | |
void | setColorGalacticGrid (const Vec3f &newColor) |
Set the color of the Galactic Grid. More... | |
void | setFlagEquatorLine (const bool displayed) |
Setter for displaying Equatorial Line. More... | |
bool | getFlagEquatorLine (void) const |
Accessor for displaying Equatorial Line. More... | |
Vec3f | getColorEquatorLine (void) const |
Get the current color of the Equatorial Line. More... | |
void | setColorEquatorLine (const Vec3f &newColor) |
Set the color of the Equator Line. More... | |
void | setFlagEclipticLine (const bool displayed) |
Setter for displaying Ecliptic Line. More... | |
bool | getFlagEclipticLine (void) const |
Accessor for displaying Ecliptic Line. More... | |
Vec3f | getColorEclipticLine (void) const |
Get the current color of the Ecliptic Line. More... | |
void | setColorEclipticLine (const Vec3f &newColor) |
Set the color of the Ecliptic Line. More... | |
void | setFlagMeridianLine (const bool displayed) |
Setter for displaying Meridian Line. More... | |
bool | getFlagMeridianLine (void) const |
Accessor for displaying Meridian Line. More... | |
Vec3f | getColorMeridianLine (void) const |
Get the current color of the Meridian Line. More... | |
void | setColorMeridianLine (const Vec3f &newColor) |
Set the color of the Meridian Line. More... | |
void | setFlagLongitudeLine (const bool displayed) |
Setter for displaying opposition/conjunction longitude line. More... | |
bool | getFlagLongitudeLine (void) const |
Accessor for displaying opposition/conjunction longitude line. More... | |
Vec3f | getColorLongitudeLine (void) const |
Get the current color of the opposition/conjunction longitude line. More... | |
void | setColorLongitudeLine (const Vec3f &newColor) |
Set the color of the opposition/conjunction longitude line. More... | |
void | setFlagHorizonLine (const bool displayed) |
Setter for displaying Horizon Line. More... | |
bool | getFlagHorizonLine (void) const |
Accessor for displaying Horizon Line. More... | |
Vec3f | getColorHorizonLine (void) const |
Get the current color of the Horizon Line. More... | |
void | setColorHorizonLine (const Vec3f &newColor) |
Set the color of the Horizon Line. More... | |
void | setFlagGalacticEquatorLine (const bool displayed) |
Setter for displaying Galactic Equator Line. More... | |
void | setFlagGalacticPlaneLine (const bool displayed) |
bool | getFlagGalacticEquatorLine (void) const |
Accessor for displaying Galactic Equator Line. More... | |
bool | getFlagGalacticPlaneLine (void) const |
Vec3f | getColorGalacticEquatorLine (void) const |
Get the current color of the Galactic Equator Line. More... | |
void | setColorGalacticEquatorLine (const Vec3f &newColor) |
Set the color of the Galactic Equator Line. More... | |
Signals | |
void | azimuthalGridDisplayedChanged (const bool) const |
void | azimuthalGridColorChanged (const Vec3f &newColor) const |
void | equatorGridDisplayedChanged (const bool displayed) const |
void | equatorGridColorChanged (const Vec3f &newColor) const |
void | equatorJ2000GridDisplayedChanged (const bool displayed) const |
void | equatorJ2000GridColorChanged (const Vec3f &newColor) const |
void | eclipticJ2000GridDisplayedChanged (const bool displayed) const |
void | eclipticJ2000GridColorChanged (const Vec3f &newColor) const |
void | galacticGridDisplayedChanged (const bool displayed) const |
void | galacticGridColorChanged (const Vec3f &newColor) const |
void | equatorLineDisplayedChanged (const bool displayed) const |
void | equatorLineColorChanged (const Vec3f &newColor) const |
void | eclipticLineDisplayedChanged (const bool displayed) const |
void | eclipticLineColorChanged (const Vec3f &newColor) const |
void | meridianLineDisplayedChanged (const bool displayed) const |
void | meridianLineColorChanged (const Vec3f &newColor) const |
void | longitudeLineDisplayedChanged (const bool displayed) const |
void | longitudeLineColorChanged (const Vec3f &newColor) const |
void | horizonLineDisplayedChanged (const bool displayed) const |
void | horizonLineColorChanged (const Vec3f &newColor) const |
void | galacticEquatorLineDisplayedChanged (const bool displayed) const |
void | galacticEquatorLineColorChanged (const Vec3f &newColor) const |
Public Member Functions | |
virtual void | init () |
Initialize the GridLinesMgr. More... | |
virtual QString | getModuleID () const |
Get the module ID, returns, "gridlines". More... | |
virtual void | draw (StelCore *core) |
Draw the grids and great circle lines. More... | |
virtual void | update (double deltaTime) |
Update time-dependent features. More... | |
virtual double | getCallOrder (StelModuleActionName actionName) const |
Used to determine the order in which the various modules are drawn. More... | |
Public Member Functions inherited from StelModule | |
virtual void | deinit () |
Called before the module will be delete, and before the openGL context is suppressed. More... | |
virtual QString | getModuleVersion () const |
Get the version of the module, default is stellarium main version. More... | |
virtual QString | getAuthorName () const |
Get the name of the module author. More... | |
virtual QString | getAuthorEmail () const |
Get the email adress of the module author. More... | |
virtual void | handleMouseClicks (class QMouseEvent *) |
Handle mouse clicks. More... | |
virtual void | handleMouseWheel (class QWheelEvent *) |
Handle mouse wheel. More... | |
virtual bool | handleMouseMoves (int x, int y, Qt::MouseButtons b) |
Handle mouse moves. More... | |
virtual void | handleKeys (class QKeyEvent *e) |
Handle key events. More... | |
virtual bool | handlePinch (qreal scale, bool started) |
Handle pinch gesture events. More... | |
virtual bool | configureGui (bool show=true) |
Detect or show the configuration GUI elements for the module. More... | |
Properties | |
bool | azimuthalGridDisplayed |
Vec3f | azimuthalGridColor |
bool | equatorGridDisplayed |
Vec3f | equatorGridColor |
bool | equatorJ2000GridDisplayed |
bool | eclipticJ2000GridDisplayed |
Vec3f | equatorJ2000GridColor |
bool | galacticGridDisplayed |
Vec3f | galacticGridColor |
bool | equatorLineDisplayed |
Vec3f | equatorLineColor |
bool | eclipticLineDisplayed |
Vec3f | eclipticLineColor |
bool | meridianLineDisplayed |
Vec3f | meridianLineColor |
bool | longitudeLineDisplayed |
Vec3f | longitudeLineColor |
bool | horizonLineDisplayed |
Vec3f | horizonLineColor |
bool | galacticEquatorLineDisplayed |
Vec3f | galacticEquatorLineColor |
Additional Inherited Members | |
Public Types inherited from StelModule | |
enum | StelModuleSelectAction { AddToSelection, ReplaceSelection, RemoveFromSelection } |
Enum used when selecting objects to define whether to add to, replace, or remove from the existing selection list. More... | |
enum | StelModuleActionName { ActionDraw, ActionUpdate, ActionHandleMouseClicks, ActionHandleMouseMoves, ActionHandleKeys } |
Define the possible action for which an order is defined. More... | |
Protected Member Functions inherited from StelModule | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, QObject *target, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action to the StelActionMgr object. More... | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action to the StelActionMgr object. More... | |
The GridLinesMgr controls the drawing of the Azimuthal and Equatorial Grids, as well as the great circles: Meridian Line, Ecliptic Line and Equator Line.
Definition at line 32 of file GridLinesMgr.hpp.
|
virtual |
Draw the grids and great circle lines.
Draws the Equatorial Grid, Azimuthal Grid, Meridian Line, Equator Line and Ecliptic Line according to the various flags which control their visibility.
Reimplemented from StelModule.
|
virtual |
Used to determine the order in which the various modules are drawn.
Reimplemented from StelModule.
|
slot |
Get the current color of the Azimuthal Grid.
|
slot |
Get the current color of the Ecliptic J2000 Grid.
|
slot |
Get the current color of the Ecliptic Line.
|
slot |
Get the current color of the Equatorial Grid.
|
slot |
Get the current color of the Equatorial J2000 Grid.
|
slot |
Get the current color of the Equatorial Line.
|
slot |
Get the current color of the Galactic Equator Line.
|
slot |
Get the current color of the Galactic Grid.
|
slot |
Get the current color of the Horizon Line.
|
slot |
Get the current color of the opposition/conjunction longitude line.
|
slot |
Get the current color of the Meridian Line.
|
slot |
Accessor for displaying Azimuthal Grid.
|
slot |
Accessor for displaying Ecliptic Grid.
|
slot |
Accessor for displaying Ecliptic Line.
|
slot |
Accessor for displaying Equatorial Grid.
|
slot |
Accessor for displaying Equatorial Grid.
|
slot |
Accessor for displaying Equatorial Line.
|
slot |
Accessor for displaying Galactic Equator Line.
|
slot |
Accessor for displaying Galactic Grid.
|
inlineslot |
Definition at line 300 of file GridLinesMgr.hpp.
|
slot |
Accessor for displaying Horizon Line.
|
slot |
Accessor for displaying opposition/conjunction longitude line.
|
slot |
Accessor for displaying Meridian Line.
|
inlinevirtual |
Get the module ID, returns, "gridlines".
Definition at line 133 of file GridLinesMgr.hpp.
|
virtual |
Initialize the GridLinesMgr.
This process checks the values in the application settings, and according to the settings there sets the visibility of the Equatorial Grid, Azimuthal Grid, Meridian Line, Equator Line and Ecliptic Line.
Implements StelModule.
|
slot |
Set the color of the Azimuthal Grid.
newColor | The color of azimuthal grid // example of usage in scripts
|
|
slot |
Set the color of the Ecliptic J2000 Grid.
newColor | The color of ecliptic J2000 grid // example of usage in scripts
|
|
slot |
Set the color of the Ecliptic Line.
newColor | The color of ecliptic line // example of usage in scripts
|
|
slot |
Set the color of the Equatorial Grid.
newColor | The color of equatorial grid // example of usage in scripts
|
|
slot |
Set the color of the Equatorial J2000 Grid.
newColor | The color of equatorial J2000 grid // example of usage in scripts
|
|
slot |
Set the color of the Equator Line.
newColor | The color of equator line // example of usage in scripts
|
|
slot |
Set the color of the Galactic Equator Line.
newColor | The color of galactic equator line // example of usage in scripts
|
|
slot |
Set the color of the Galactic Grid.
newColor | The color of galactic grid // example of usage in scripts
|
|
slot |
Set the color of the Horizon Line.
newColor | The color of horizon line // example of usage in scripts
|
|
slot |
Set the color of the opposition/conjunction longitude line.
newColor | The color of opposition/conjunction longitude line // example of usage in scripts
|
|
slot |
Set the color of the Meridian Line.
newColor | The color of meridian line // example of usage in scripts
|
|
slot |
Setter for displaying Azimuthal Grid.
|
slot |
Setter for displaying Ecliptic Grid.
|
slot |
Setter for displaying Ecliptic Line.
|
slot |
Setter for displaying Equatorial Grid.
|
slot |
Setter for displaying Equatorial Grid.
|
slot |
Setter for displaying Equatorial Line.
|
slot |
Setter for displaying Galactic Equator Line.
|
slot |
Setter for displaying Galactic Grid.
|
inlineslot |
Definition at line 295 of file GridLinesMgr.hpp.
|
slot |
Setter for displaying Horizon Line.
|
slot |
Setter for displaying opposition/conjunction longitude line.
|
slot |
Setter for displaying Meridian Line.
|
virtual |
Update time-dependent features.
Used to control fading when turning on and off the grid lines and great circles.
Implements StelModule.