Stellarium 0.11.2
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Public Slots | Signals | Public Member Functions | Properties
ConstellationMgr Class Reference

Display and manage the constellations. More...

#include <ConstellationMgr.hpp>

List of all members.

Public Slots

void setFlagArt (const bool displayed)
bool getFlagArt (void) const
void setArtFadeDuration (const float duration)
float getArtFadeDuration () const
void setArtIntensity (const double intensity)
double getArtIntensity () const
void setBoundariesColor (const Vec3f &color)
Vec3f getBoundariesColor () const
void setFlagBoundaries (const bool displayed)
bool getFlagBoundaries (void) const
void setFlagIsolateSelected (const bool isolate)
bool getFlagIsolateSelected (void) const
void setLinesColor (const Vec3f &color)
Vec3f getLinesColor () const
void setFlagLines (const bool displayed)
bool getFlagLines (void) const
void setLabelsColor (const Vec3f &color)
Vec3f getLabelsColor () const
void setFlagLabels (bool displayed)
bool getFlagLabels (void) const
void setFontSize (const float newFontSize)
float getFontSize () const


void artDisplayedChanged (const bool displayed) const
void artFadeDurationChanged (const float duration) const
void artIntensityChanged (const double intensity) const
void boundariesColorChanged (const Vec3f &color) const
void boundariesDisplayedChanged (const bool displayed) const
void fontSizeChanged (const float newSize) const
void isolateSelectedChanged (const bool isolate) const
void linesColorChanged (const Vec3f &color) const
void linesDisplayedChanged (const bool displayed) const
void namesColorChanged (const Vec3f &color) const
void namesDisplayedChanged (const bool displayed) const

Public Member Functions

 ConstellationMgr (StarMgr *stars)
virtual ~ConstellationMgr ()
virtual void init ()
virtual void draw (StelCore *core)
virtual void update (double deltaTime)
virtual double getCallOrder (StelModuleActionName actionName) const
virtual QList< StelObjectPsearchAround (const Vec3d &v, double limitFov, const StelCore *core) const
virtual StelObjectP searchByNameI18n (const QString &nameI18n) const
virtual StelObjectP searchByName (const QString &name) const
virtual QStringList listMatchingObjectsI18n (const QString &objPrefix, int maxNbItem=5) const


bool artDisplayed
bool artFadeDuration
bool artIntensity
bool boundariesColor
bool boundariesDisplayed
bool fontSize
bool isolateSelected
bool linesColor
bool linesDisplayed
bool namesColor
bool namesDisplayed

Detailed Description

Display and manage the constellations.

It can display constellations lines, names, art textures and boundaries. It also supports several different sky cultures.

Member Function Documentation

virtual double ConstellationMgr::getCallOrder ( StelModuleActionName  actionName) const [virtual]

Return the value defining the order of call for the given action.

actionNamethe name of the action for which we want the call order
the value defining the order. The closer to 0 the earlier the module's action will be called

Reimplemented from StelModule.

virtual void ConstellationMgr::init ( ) [virtual]

Initialize the ConstellationMgr.

Reads from the configuration parser object and updates the loading bar as constellation objects are loaded for the required sky culture.

Implements StelModule.

virtual QStringList ConstellationMgr::listMatchingObjectsI18n ( const QString &  objPrefix,
int  maxNbItem = 5 
) const [virtual]

Find and return the list of at most maxNbItem objects auto-completing the passed object I18n name.

objPrefixthe case insensitive first letters of the searched object
maxNbItemthe maximum number of returned object names
a vector of matching object name by order of relevance, or an empty vector if nothing match

Implements StelObjectModule.

virtual QList<StelObjectP> ConstellationMgr::searchAround ( const Vec3d v,
double  limitFov,
const StelCore core 
) const [virtual]

Search for StelObject in an area around a specifid point.

The function searches in a disk of diameter limitFov centered on v. Only visible objects (i.e curretly displayed on screen) should be returned.

vequatorial position at epoch J2000.
limitFovangular diameter of the searching zone in degree.
corethe core instance to use.
the list of all the displayed objects contained in the defined zone.

Implements StelObjectModule.

virtual StelObjectP ConstellationMgr::searchByName ( const QString &  name) const [virtual]

Return the matching constellation if exists or NULL.

nameThe case in-sensistive standard program name (three letter abbreviation)

Implements StelObjectModule.

virtual StelObjectP ConstellationMgr::searchByNameI18n ( const QString &  nameI18n) const [virtual]

Return the matching constellation object's pointer if exists or NULL.

nameI18nThe case in-sensistive constellation name

Implements StelObjectModule.