22 #ifndef _NEBULAMGR_HPP_
23 #define _NEBULAMGR_HPP_
26 #include "StelFader.hpp"
27 #include "StelSphericalIndex.hpp"
28 #include "StelObjectModule.hpp"
32 #include <QStringList>
41 typedef QSharedPointer<Nebula> NebulaP;
51 Q_PROPERTY(
bool flagHintDisplayed
74 virtual void update(
double deltaTime) {hintsFader.update((
int)(deltaTime*1000)); flagShow.update((
int)(deltaTime*1000));}
102 virtual QStringList
listMatchingObjectsI18n(
const QString& objPrefix,
int maxNbItem=5,
bool useStartOfWords=
false)
const;
108 virtual QStringList
listMatchingObjects(
const QString& objPrefix,
int maxNbItem=5,
bool useStartOfWords=
false)
const;
111 virtual QStringList listAllObjectsByType(
const QString& objType,
bool inEnglish)
const;
112 virtual QString getName()
const {
return "Deep-sky objects"; }
183 void setStelStyle(
const QString& section);
194 NebulaP search(
const QString& name);
197 NebulaP search(
const Vec3d& pos);
205 void loadNebulaSet(
const QString& setName);
210 NebulaP searchM(
unsigned int M);
211 NebulaP searchNGC(
unsigned int NGC);
212 NebulaP searchIC(
unsigned int IC);
213 NebulaP searchC(
unsigned int C);
214 NebulaP searchB(
unsigned int B);
215 NebulaP searchSh2(
unsigned int Sh2);
216 NebulaP searchVdB(
unsigned int VdB);
217 NebulaP searchRCW(
unsigned int RCW);
218 NebulaP searchLDN(
unsigned int LDN);
219 NebulaP searchLBN(
unsigned int LBN);
220 NebulaP searchCr(
unsigned int Cr);
221 NebulaP searchMel(
unsigned int Mel);
222 bool loadNGC(
const QString& fileName);
223 bool loadNGCOld(
const QString& catNGC);
224 bool loadNGCNames(
const QString& fileName);
225 bool loadBarnard(
const QString& filename);
226 bool loadSharpless(
const QString& filename);
227 bool loadVandenBergh(
const QString& filename);
228 bool loadRCW(
const QString& filename);
229 bool loadLDN(
const QString& filename);
230 bool loadLBN(
const QString& filename);
232 QVector<NebulaP> nebArray;
233 QHash<unsigned int, NebulaP> ngcIndex;
251 #endif // _NEBULAMGR_HPP_
void setHintsFadeDuration(float duration)
Set how long it takes for nebula hints to fade in and out when turned on and off. ...
virtual void update(double deltaTime)
Update state which is time dependent.
virtual StelObjectP searchByName(const QString &name) const
Return the matching nebula if exists or NULL.
Provide a set of methods used to draw sky objects taking into account eyes adaptation, zoom level, instrument model and artificially set magnitude limits.
virtual StelObjectP searchByNameI18n(const QString &nameI18n) const
Return the matching nebula object's pointer if exists or NULL.
Class used to translate strings to any language.
bool getFlagShow(void) const
Get value of flag used to turn on and off Nebula rendering.
Implementation of StelFader which implements a linear transition.
void setCircleScale(float scale)
Set Nebulae Hints circle scale.
Define the StelTextureSP type.
virtual QStringList listAllObjects(bool inEnglish) const
float getLabelsAmount(void) const
Get the amount of nebulae labels.
virtual QStringList listMatchingObjectsI18n(const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false) const
Find and return the list of at most maxNbItem objects auto-completing the passed object I18n name...
virtual QList< StelObjectP > searchAround(const Vec3d &v, double limitFov, const StelCore *core) const
Used to get a vector of objects which are near to some position.
virtual void init()
Initialize the NebulaMgr object.
Main class for Stellarium core processing.
void setLabelsAmount(float a)
Set the amount of nebulae labels.
float getCircleScale(void) const
Get Nebulae Hints circle scale.
float computeMaxMagHint(const class StelSkyDrawer *skyDrawer) const
Compute the maximum magntiude for which hints will be displayed.
bool getFlagHints(void) const
Get flag for displaying Nebulae Hints.
Specialization of StelModule which manages a collection of StelObject.
void setFlagShow(bool b)
Set flag used to turn on and off Nebula rendering.
const Vec3f & getCirclesColor(void) const
Get current value of the nebula circle color.
void setCirclesColor(const Vec3f &c)
Set the color used to draw the nebula symbols (circles, boxes.
Converts tones in function of the eye adaptation to luminance.
void setHintsAmount(float f)
Set the amount of nebulae hints.
Define the StelObjectP type.
Provides functions for performing openGL drawing operations.
void setFlagHints(bool b)
Set flag for displaying Nebulae Hints.
void setHintsProportional(const bool proportional)
Set whether hints (symbols) should be scaled according to nebula size.
virtual double getCallOrder(StelModuleActionName actionName) const
Determines the order in which the various modules are drawn.
bool getHintsProportional(void) const
Get whether hints (symbols) are scaled according to nebula size.
StelModuleActionName
Define the possible action for which an order is defined.
Container allowing to store and query SphericalRegion.
float getHintsAmount(void) const
Get the amount of nebulae labels.
A templatized 3d vector compatible with openGL.
virtual QStringList listMatchingObjects(const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false) const
Find and return the list of at most maxNbItem objects auto-completing the passed object English name...
const Vec3f & getLabelsColor(void) const
Get current value of the nebula label color.
QSharedPointer< StelTexture > StelTextureSP
Use shared pointer to simplify memory managment.
virtual void draw(StelCore *core)
Draws all nebula objects.
Manage a collection of nebulae.
void setLabelsColor(const Vec3f &c)
Set the color used to draw nebula labels.