Stellarium  0.20.2
Public Slots | Signals | Public Member Functions | Properties
SpecialMarkersMgr Class Reference

Public Slots

void setFlagFOVCenterMarker (const bool displayed)
 Setter for displaying the FOV center marker.
 
bool getFlagFOVCenterMarker () const
 Accessor for displaying FOV center marker.
 
Vec3f getColorFOVCenterMarker () const
 Get the current color of the FOV center marker.
 
void setColorFOVCenterMarker (const Vec3f &newColor)
 Set the color of the FOV center marker. More...
 
void setFlagFOVCircularMarker (const bool displayed)
 Setter for displaying the circular FOV marker.
 
bool getFlagFOVCircularMarker () const
 Accessor for displaying circular FOV marker.
 
void setFOVCircularMarkerSize (const double size)
 Setter for size of circular FOV marker.
 
double getFOVCircularMarkerSize () const
 Accessor for get size of circular FOV marker.
 
Vec3f getColorFOVCircularMarker () const
 Get the current color of the circular FOV marker.
 
void setColorFOVCircularMarker (const Vec3f &newColor)
 Set the color of the circular FOV marker. More...
 
void setFlagFOVRectangularMarker (const bool displayed)
 Setter for displaying the rectangular FOV marker.
 
bool getFlagFOVRectangularMarker () const
 Accessor for displaying rectangular FOV marker.
 
void setFOVRectangularMarkerWidth (const double size)
 Setter for width of rectangular FOV marker.
 
double getFOVRectangularMarkerWidth () const
 Accessor for get width of rectangular FOV marker.
 
void setFOVRectangularMarkerHeight (const double size)
 Setter for height of rectangular FOV marker.
 
double getFOVRectangularMarkerHeight () const
 Accessor for get height of rectangular FOV marker.
 
void setFOVRectangularMarkerRotationAngle (const double pa)
 Setter for rotation angle of rectangular FOV marker.
 
double getFOVRectangularMarkerRotationAngle () const
 Accessor for get rotation angle of rectangular FOV marker.
 
Vec3f getColorFOVRectangularMarker () const
 Get the current color of the rectangular FOV marker.
 
void setColorFOVRectangularMarker (const Vec3f &newColor)
 Set the color of the rectangular FOV marker. More...
 

Signals

void fovCenterMarkerDisplayedChanged (const bool displayed) const
 
void fovCenterMarkerColorChanged (const Vec3f &newColor) const
 
void fovCircularMarkerDisplayedChanged (const bool displayed) const
 
void fovCircularMarkerSizeChanged (const double size) const
 
void fovCircularMarkerColorChanged (const Vec3f &newColor) const
 
void fovRectangularMarkerDisplayedChanged (const bool displayed) const
 
void fovRectangularMarkerWidthChanged (const double size) const
 
void fovRectangularMarkerHeightChanged (const double size) const
 
void fovRectangularMarkerRotationAngleChanged (const double size) const
 
void fovRectangularMarkerColorChanged (const Vec3f &newColor) const
 

Public Member Functions

virtual void init ()
 Initialize the GridLinesMgr. More...
 
virtual QString getModuleID () const
 Get the module ID, returns "SpecialMarkersMgr".
 
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.
 
- 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 QSettings * getSettings ()
 Return module-specific settings. More...
 
virtual QString getModuleVersion () const
 Get the version of the module, default is stellarium main version.
 
virtual QString getAuthorName () const
 Get the name of the module author.
 
virtual QString getAuthorEmail () const
 Get the email adress of the module author.
 
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 fovCenterMarkerDisplayed
 
Vec3f fovCenterMarkerColor
 
bool fovCircularMarkerDisplayed
 
double fovCircularMarkerSize
 
Vec3f fovCircularMarkerColor
 
bool fovRectangularMarkerDisplayed
 
double fovRectangularMarkerWidth
 
double fovRectangularMarkerHeight
 
double fovRectangularMarkerRotationAngle
 
Vec3f fovRectangularMarkerColor
 

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 StelActionaddAction (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 (call to slot) to the StelActionMgr object. More...
 
class StelActionaddAction (const QString &id, const QString &groupId, const QString &text, const char *slot, const QString &shortcut="", const QString &altShortcut="")
 convenience methods to add an action (call to own slot) to the StelActionMgr object. More...
 

Member Function Documentation

◆ draw()

virtual void SpecialMarkersMgr::draw ( StelCore core)
virtual

Draws the Equatorial Grids, Ecliptical Grids, Azimuthal Grid, Meridian Line, Equator Line, Ecliptic Lines, Precession Circles, Conjunction-Opposition Line, east-west vertical and colures according to the various flags which control their visibility.

Reimplemented from StelModule.

◆ init()

virtual void SpecialMarkersMgr::init ( )
virtual

This process checks the values in the application settings, and according to the settings there sets the visibility of the Equatorial Grids, Ecliptical Grids, Azimuthal Grid, Meridian Line, Equator Line and Ecliptic Lines.

Implements StelModule.

◆ setColorFOVCenterMarker

void SpecialMarkersMgr::setColorFOVCenterMarker ( const Vec3f newColor)
slot
Parameters
newColorThe color of FOV center marker.
// example of usage in scripts
GridLinesMgr.setColorFOVCenterMarker(Vec3f(1.0,0.0,0.0));

◆ setColorFOVCircularMarker

void SpecialMarkersMgr::setColorFOVCircularMarker ( const Vec3f newColor)
slot
Parameters
newColorThe color of circular FOV marker.
// example of usage in scripts
GridLinesMgr.setColorFOVCircularMarker(Vec3f(1.0,0.0,0.0));

◆ setColorFOVRectangularMarker

void SpecialMarkersMgr::setColorFOVRectangularMarker ( const Vec3f newColor)
slot
Parameters
newColorThe color of rectangular FOV marker.
// example of usage in scripts
GridLinesMgr.setColorFOVRectangularMarker(Vec3f(1.0,0.0,0.0));

◆ update()

virtual void SpecialMarkersMgr::update ( double  deltaTime)
virtual

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

Implements StelModule.