Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

GridLinesMgr Class Reference

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>

List of all members.

Public Slots

void setFlagAzimuthalGrid (const bool displayed)
 Setter for displaying Azimuthal Grid.
bool getFlagAzimuthalGrid (void) const
 Accessor for displaying Azimuthal Grid.
Vec3f getColorAzimuthalGrid (void) const
 Get the current color of the Azimuthal Grid.
void setColorAzimuthalGrid (const Vec3f &newColor)
 Set the color of the Azimuthal Grid.
void setFlagEquatorGrid (const bool displayed)
 Setter for displaying Equatorial Grid.
bool getFlagEquatorGrid (void) const
 Accessor for displaying Equatorial Grid.
Vec3f getColorEquatorGrid (void) const
 Get the current color of the Equatorial Grid.
void setColorEquatorGrid (const Vec3f &newColor)
 Set the color of the Equatorial Grid.
void setFlagEquatorJ2000Grid (const bool displayed)
 Setter for displaying Equatorial Grid.
bool getFlagEquatorJ2000Grid (void) const
 Accessor for displaying Equatorial Grid.
Vec3f getColorEquatorJ2000Grid (void) const
 Get the current color of the Equatorial J2000 Grid.
void setColorEquatorJ2000Grid (const Vec3f &newColor)
 Set the color of the Equatorial J2000 Grid.
void setFlagEclipticJ2000Grid (const bool displayed)
 Setter for displaying Ecliptic Grid.
bool getFlagEclipticJ2000Grid (void) const
 Accessor for displaying Ecliptic Grid.
Vec3f getColorEclipticJ2000Grid (void) const
 Get the current color of the Ecliptic J2000 Grid.
void setColorEclipticJ2000Grid (const Vec3f &newColor)
 Set the color of the Ecliptic J2000 Grid.
void setFlagGalacticGrid (const bool displayed)
 Setter for displaying Galactic Grid.
bool getFlagGalacticGrid (void) const
 Accessor for displaying Galactic Grid.
Vec3f getColorGalacticGrid (void) const
 Get the current color of the Galactic Grid.
void setColorGalacticGrid (const Vec3f &newColor)
 Set the color of the Galactic Grid.
void setFlagEquatorLine (const bool displayed)
 Setter for displaying Equatorial Line.
bool getFlagEquatorLine (void) const
 Accessor for displaying Equatorial Line.
Vec3f getColorEquatorLine (void) const
 Get the current color of the Equatorial Line.
void setColorEquatorLine (const Vec3f &newColor)
 Set the color of the Meridian Line.
void setFlagEclipticLine (const bool displayed)
 Setter for displaying Ecliptic Line.
bool getFlagEclipticLine (void) const
 Accessor for displaying Ecliptic Line.
Vec3f getColorEclipticLine (void) const
 Get the current color of the Ecliptic Line.
void setColorEclipticLine (const Vec3f &newColor)
 Set the color of the Meridian Line.
void setFlagMeridianLine (const bool displayed)
 Setter for displaying Meridian Line.
bool getFlagMeridianLine (void) const
 Accessor for displaying Meridian Line.
Vec3f getColorMeridianLine (void) const
 Get the current color of the Meridian Line.
void setColorMeridianLine (const Vec3f &newColor)
 Set the color of the Meridian Line.
void setFlagHorizonLine (const bool displayed)
 Setter for displaying Horizon Line.
bool getFlagHorizonLine (void) const
 Accessor for displaying Horizon Line.
Vec3f getColorHorizonLine (void) const
 Get the current color of the Horizon Line.
void setColorHorizonLine (const Vec3f &newColor)
 Set the color of the Horizon Line.
void setFlagGalacticPlaneLine (const bool displayed)
 Setter for displaying GalacticPlane Line.
bool getFlagGalacticPlaneLine (void) const
 Accessor for displaying GalacticPlane Line.
Vec3f getColorGalacticPlaneLine (void) const
 Get the current color of the GalacticPlane Line.
void setColorGalacticPlaneLine (const Vec3f &newColor)
 Set the color of the GalacticPlane Line.

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 horizonLineDisplayedChanged (const bool displayed) const
void horizonLineColorChanged (const Vec3f &newColor) const
void galacticPlaneLineDisplayedChanged (const bool displayed) const
void galacticPlaneLineColorChanged (const Vec3f &newColor) const

Public Member Functions

virtual void init ()
 Initialize the GridLinesMgr.
virtual QString getModuleID () const
 Get the module ID, returns, "gridlines".
virtual void draw (StelCore *core)
 Draw the grids and great circle lines.
virtual void update (double deltaTime)
 Update time-dependent features.
virtual double getCallOrder (StelModuleActionName actionName) const
 Used to determine the order in which the various modules are drawn.

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 horizonLineDisplayed
Vec3f horizonLineColor
bool galacticPlaneLineDisplayed
Vec3f galacticPlaneLineColor

Detailed Description

The GridLinesMgr controls the drawing of the Azimuthal and Equatorial Grids, as well as the great circles: Meridian Line, Ecliptic Line and Equator Line.


Member Function Documentation

virtual void GridLinesMgr::draw ( StelCore core  )  [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 double GridLinesMgr::getCallOrder ( StelModuleActionName  actionName  )  const [virtual]

Used to determine the order in which the various modules are drawn.

Reimplemented from StelModule.

Vec3f GridLinesMgr::getColorAzimuthalGrid ( void   )  const [slot]

Get the current color of the Azimuthal Grid.

Vec3f GridLinesMgr::getColorEclipticJ2000Grid ( void   )  const [slot]

Get the current color of the Ecliptic J2000 Grid.

Vec3f GridLinesMgr::getColorEclipticLine ( void   )  const [slot]

Get the current color of the Ecliptic Line.

Vec3f GridLinesMgr::getColorEquatorGrid ( void   )  const [slot]

Get the current color of the Equatorial Grid.

Vec3f GridLinesMgr::getColorEquatorJ2000Grid ( void   )  const [slot]

Get the current color of the Equatorial J2000 Grid.

Vec3f GridLinesMgr::getColorEquatorLine ( void   )  const [slot]

Get the current color of the Equatorial Line.

Vec3f GridLinesMgr::getColorGalacticGrid ( void   )  const [slot]

Get the current color of the Galactic Grid.

Vec3f GridLinesMgr::getColorGalacticPlaneLine ( void   )  const [slot]

Get the current color of the GalacticPlane Line.

Vec3f GridLinesMgr::getColorHorizonLine ( void   )  const [slot]

Get the current color of the Horizon Line.

Vec3f GridLinesMgr::getColorMeridianLine ( void   )  const [slot]

Get the current color of the Meridian Line.

bool GridLinesMgr::getFlagAzimuthalGrid ( void   )  const [slot]

Accessor for displaying Azimuthal Grid.

bool GridLinesMgr::getFlagEclipticJ2000Grid ( void   )  const [slot]

Accessor for displaying Ecliptic Grid.

bool GridLinesMgr::getFlagEclipticLine ( void   )  const [slot]

Accessor for displaying Ecliptic Line.

bool GridLinesMgr::getFlagEquatorGrid ( void   )  const [slot]

Accessor for displaying Equatorial Grid.

bool GridLinesMgr::getFlagEquatorJ2000Grid ( void   )  const [slot]

Accessor for displaying Equatorial Grid.

bool GridLinesMgr::getFlagEquatorLine ( void   )  const [slot]

Accessor for displaying Equatorial Line.

bool GridLinesMgr::getFlagGalacticGrid ( void   )  const [slot]

Accessor for displaying Galactic Grid.

bool GridLinesMgr::getFlagGalacticPlaneLine ( void   )  const [slot]

Accessor for displaying GalacticPlane Line.

bool GridLinesMgr::getFlagHorizonLine ( void   )  const [slot]

Accessor for displaying Horizon Line.

bool GridLinesMgr::getFlagMeridianLine ( void   )  const [slot]

Accessor for displaying Meridian Line.

virtual QString GridLinesMgr::getModuleID (  )  const [inline, virtual]

Get the module ID, returns, "gridlines".

virtual void GridLinesMgr::init (  )  [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.

void GridLinesMgr::setColorAzimuthalGrid ( const Vec3f newColor  )  [slot]

Set the color of the Azimuthal Grid.

void GridLinesMgr::setColorEclipticJ2000Grid ( const Vec3f newColor  )  [slot]

Set the color of the Ecliptic J2000 Grid.

void GridLinesMgr::setColorEclipticLine ( const Vec3f newColor  )  [slot]

Set the color of the Meridian Line.

void GridLinesMgr::setColorEquatorGrid ( const Vec3f newColor  )  [slot]

Set the color of the Equatorial Grid.

void GridLinesMgr::setColorEquatorJ2000Grid ( const Vec3f newColor  )  [slot]

Set the color of the Equatorial J2000 Grid.

void GridLinesMgr::setColorEquatorLine ( const Vec3f newColor  )  [slot]

Set the color of the Meridian Line.

void GridLinesMgr::setColorGalacticGrid ( const Vec3f newColor  )  [slot]

Set the color of the Galactic Grid.

void GridLinesMgr::setColorGalacticPlaneLine ( const Vec3f newColor  )  [slot]

Set the color of the GalacticPlane Line.

void GridLinesMgr::setColorHorizonLine ( const Vec3f newColor  )  [slot]

Set the color of the Horizon Line.

void GridLinesMgr::setColorMeridianLine ( const Vec3f newColor  )  [slot]

Set the color of the Meridian Line.

void GridLinesMgr::setFlagAzimuthalGrid ( const bool  displayed  )  [slot]

Setter for displaying Azimuthal Grid.

void GridLinesMgr::setFlagEclipticJ2000Grid ( const bool  displayed  )  [slot]

Setter for displaying Ecliptic Grid.

void GridLinesMgr::setFlagEclipticLine ( const bool  displayed  )  [slot]

Setter for displaying Ecliptic Line.

void GridLinesMgr::setFlagEquatorGrid ( const bool  displayed  )  [slot]

Setter for displaying Equatorial Grid.

void GridLinesMgr::setFlagEquatorJ2000Grid ( const bool  displayed  )  [slot]

Setter for displaying Equatorial Grid.

void GridLinesMgr::setFlagEquatorLine ( const bool  displayed  )  [slot]

Setter for displaying Equatorial Line.

void GridLinesMgr::setFlagGalacticGrid ( const bool  displayed  )  [slot]

Setter for displaying Galactic Grid.

void GridLinesMgr::setFlagGalacticPlaneLine ( const bool  displayed  )  [slot]

Setter for displaying GalacticPlane Line.

void GridLinesMgr::setFlagHorizonLine ( const bool  displayed  )  [slot]

Setter for displaying Horizon Line.

void GridLinesMgr::setFlagMeridianLine ( const bool  displayed  )  [slot]

Setter for displaying Meridian Line.

virtual void GridLinesMgr::update ( double  deltaTime  )  [virtual]

Update time-dependent features.

Used to control fading when turning on and off the grid lines and great circles.

Implements StelModule.

Generated on Sat Aug 25 22:13:31 2012 for Stellarium by  doxygen 1.6.3