25 #include "StelObject.hpp"
56 virtual QString
getType()
const {
return "Nebula";}
68 void setLabelColor(
const Vec3f& v) {labelColor = v;}
69 void setCircleColor(
const Vec3f& v) {circleColor = v;}
75 float getSurfaceBrightness(
const StelCore* core)
const;
76 float getSurfaceBrightnessWithExtinction(
const StelCore* core)
const;
79 friend struct DrawNebulaFuncObject;
107 enum HIIStructureType
115 enum HIIBrightnessType
123 enum HaBrightnessType
134 bool readNGC(
char *record);
135 void readNGC(QDataStream& in);
136 bool readBarnard(QString record);
137 bool readSharpless(QString record);
138 bool readVandenBergh(QString record);
139 bool readRCW(QString record);
140 bool readLDN(QString record);
141 bool readLBN(QString record);
143 void drawLabel(
StelPainter& sPainter,
float maxMagLabel);
144 void drawHints(
StelPainter& sPainter,
float maxMagHints);
148 QString getHIIFormTypeString()
const;
150 QString getHIIStructureTypeString()
const;
152 QString getHIIBrightnessTypeString()
const;
154 QString getHaBrightnessTypeString()
const;
176 HIIFormType formType;
177 HIIStructureType structureType;
178 HIIBrightnessType brightnessType;
179 HaBrightnessType rcwBrightnessType;
193 static float hintsBrightness;
195 static Vec3f labelColor, circleColor;
196 static float circleScale;
197 static bool drawHintProportional;
200 #endif // _NEBULA_HPP_
virtual float getVMagnitude(const StelCore *core) const
Return object's apparent V magnitude as seen from observer, without including extinction.
virtual float getSelectPriority(const StelCore *core) const
Return a priority value which is used to discriminate objects by priority As for magnitudes, the lower is the higher priority.
Class used to translate strings to any language.
virtual QString getType() const
Return object's type. It should be the name of the class.
virtual SphericalRegionP getRegion() const
Default implementation of the getRegion method.
The base abstract class for sky objects used in Stellarium like Stars, Planets, Constellations etc...
A shared pointer on a SphericalRegion.
virtual double getCloseViewFov(const StelCore *core=NULL) const
Return the best FOV in degree to use for a close view of the object.
Define the StelTextureSP type.
Main class for Stellarium core processing.
virtual QString getNameI18n() const
Return translated object's name.
virtual Vec3d getJ2000EquatorialPos(const StelCore *) const
Get observer-centered equatorial coordinates at equinox J2000.
Define some translation macros.
virtual QString getEnglishName() const
Return object's name in english.
virtual QString getInfoString(const StelCore *core, const InfoStringGroup &flags) const
Nebula support the following InfoStringGroup flags:
Provides functions for performing openGL drawing operations.
virtual double getAngularSize(const StelCore *) const
Return the angular radius of a circle containing the object as seen from the observer with the circle...
QString qtranslate(const QString &s, const QString &c=QString()) const
Translate input message and return it as a QString.
QString getTypeString() const
Get the printable nebula Type.
QSharedPointer< StelTexture > StelTextureSP
Use shared pointer to simplify memory managment.
virtual Vec3f getInfoColor() const
Get a color used to display info about the object.
Manage a collection of nebulae.