Stellarium 0.11.1
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Public Slots | Public Member Functions
NebulaMgr Class Reference

#include <NebulaMgr.hpp>

List of all members.

Public Slots

void setCirclesColor (const Vec3f &c)
const Vec3fgetCirclesColor (void) const
void setCircleScale (float scale)
float getCircleScale (void) const
void setHintsFadeDuration (float duration)
void setFlagHints (bool b)
bool getFlagHints (void) const
void setFlagShow (bool b)
bool getFlagShow (void) const
void setLabelsColor (const Vec3f &c)
const Vec3fgetLabelsColor (void) const
void setFlagDisplayNoTexture (bool b)
bool getFlagDisplayNoTexture (void) const
void setLabelsAmount (float a)
float getLabelsAmount (void) const
void setHintsAmount (float f)
float getHintsAmount (void) const

Public Member Functions

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

Detailed Description

Manage a collection of nebulae.

This class is used to display the NGC catalog with information, and textures for some of them.


Member Function Documentation

float NebulaMgr::getHintsAmount ( void  ) const [inline, slot]

Get the amount of nebulae labels.

The real amount is also proportional with FOV.

Returns:
the amount between 0 and 10. 0 is no hints, 10 is maximum of hints
float NebulaMgr::getLabelsAmount ( void  ) const [inline, slot]

Get the amount of nebulae labels.

The real amount is also proportional with FOV.

Returns:
the amount between 0 and 10. 0 is no labels, 10 is maximum of labels
virtual void NebulaMgr::init ( ) [virtual]

Initialize the NebulaMgr object.

  • Load the font into the Nebula class, which is used to draw Nebula labels.
  • Load the texture used to draw nebula locations into the Nebula class (for those with no individual texture).
  • Load the pointer texture.
  • Set flags values from ini parser which relate to nebula display.
  • call updateI18n() to translate names.

Implements StelModule.

virtual QStringList NebulaMgr::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.

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

Implements StelObjectModule.

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

Used to get a vector of objects which are near to some position.

Parameters:
va vector representing the position in th sky around which to search for nebulae.
limitFovthe field of view around the position v in which to search for nebulae.
corethe StelCore to use for computations.
Returns:
an list containing the nebulae located inside the limitFov circle around position v.

Implements StelObjectModule.

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

Return the matching nebula if exists or NULL.

Parameters:
nameThe case in-sensistive standard program name

Implements StelObjectModule.

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

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

Parameters:
nameI18nThe case in-sensistive nebula name or NGC M catalog name : format can be M31, M 31, NGC31, NGC 31

Implements StelObjectModule.

void NebulaMgr::setHintsAmount ( float  f) [inline, slot]

Set the amount of nebulae hints.

The real amount is also proportional with FOV. The limit is set in function of the nebulae magnitude

Parameters:
fthe amount between 0 and 10. 0 is no hints, 10 is maximum of hints
void NebulaMgr::setLabelsAmount ( float  a) [inline, slot]

Set the amount of nebulae labels.

The real amount is also proportional with FOV. The limit is set in function of the nebulae magnitude

Parameters:
athe amount between 0 and 10. 0 is no labels, 10 is maximum of labels