![]() |
Stellarium 0.11.0 | ||
| Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
Display and manage the constellations. More...
#include <ConstellationMgr.hpp>
Public Slots | |
| void | setArtFadeDuration (float duration) |
| float | getArtFadeDuration () const |
| void | setArtIntensity (double d) |
| double | getArtIntensity () const |
| void | setFlagArt (bool b) |
| bool | getFlagArt (void) const |
| void | setFlagLines (bool b) |
| bool | getFlagLines (void) const |
| void | setFlagBoundaries (bool b) |
| bool | getFlagBoundaries (void) const |
| void | setFlagLabels (bool b) |
| bool | getFlagLabels (void) const |
| void | setFlagIsolateSelected (bool s) |
| bool | getFlagIsolateSelected (void) const |
| void | setLinesColor (const Vec3f &c) |
| Vec3f | getLinesColor () const |
| void | setBoundariesColor (const Vec3f &c) |
| Vec3f | getBoundariesColor () const |
| void | setLabelsColor (const Vec3f &c) |
| Vec3f | getLabelsColor () const |
| void | setFontSize (float newFontSize) |
| float | getFontSize () 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< StelObjectP > | searchAround (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 |
Display and manage the constellations.
It can display constellations lines, names, art textures and boundaries. It also supports several different sky cultures.
| virtual double ConstellationMgr::getCallOrder | ( | StelModuleActionName | actionName | ) | const [virtual] |
Return the value defining the order of call for the given action.
| actionName | the name of the action for which we want the call order |
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.
| objPrefix | the case insensitive first letters of the searched object |
| maxNbItem | the maximum number of returned object names |
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.
| v | equatorial position at epoch J2000. |
| limitFov | angular diameter of the searching zone in degree. |
| core | the core instance to use. |
Implements StelObjectModule.
| virtual StelObjectP ConstellationMgr::searchByName | ( | const QString & | name | ) | const [virtual] |
Return the matching constellation if exists or NULL.
| name | The 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.
| nameI18n | The case in-sensistive constellation name |
Implements StelObjectModule.
1.7.3