25 #include "StelObject.hpp" 144 virtual QString
getType()
const {
return "Nebula";}
152 QString getEnglishAliases()
const;
153 QString getI18nAliases()
const;
158 void setLabelColor(
const Vec3f& v) {labelColor = v;}
159 void setCircleColor(
const Vec3f& v) {circleColor = v;}
171 float getSurfaceBrightness(
const StelCore* core)
const;
172 float getSurfaceBrightnessWithExtinction(
const StelCore* core)
const;
178 void setProperName(QString name) { englishName = name; }
179 void addNameAlias(QString name) { englishAliases.append(name); }
180 void removeAllNames() { englishName=
""; englishAliases.clear(); }
187 friend struct DrawNebulaFuncObject;
193 nameI18Aliases.clear();
194 foreach(QString alias, englishAliases)
195 nameI18Aliases.append(trans.
qtranslate(alias));
198 void readDSO(QDataStream& in);
200 void drawLabel(
StelPainter& sPainter,
float maxMagLabel);
201 void drawHints(
StelPainter& sPainter,
float maxMagHints);
203 bool objectInDisplayedType()
const;
207 QString getMorphologicalTypeDescription()
const;
226 QStringList englishAliases;
228 QStringList nameI18Aliases;
234 int orientationAngle;
255 static float hintsBrightness;
257 static Vec3f labelColor;
258 static Vec3f circleColor;
259 static Vec3f galaxyColor;
260 static Vec3f radioGalaxyColor;
261 static Vec3f activeGalaxyColor;
262 static Vec3f interactingGalaxyColor;
263 static Vec3f quasarColor;
264 static Vec3f nebulaColor;
265 static Vec3f planetaryNebulaColor;
266 static Vec3f reflectionNebulaColor;
267 static Vec3f bipolarNebulaColor;
268 static Vec3f emissionNebulaColor;
269 static Vec3f darkNebulaColor;
270 static Vec3f hydrogenRegionColor;
271 static Vec3f supernovaRemnantColor;
272 static Vec3f interstellarMatterColor;
273 static Vec3f clusterWithNebulosityColor;
274 static Vec3f clusterColor;
275 static Vec3f openClusterColor;
276 static Vec3f globularClusterColor;
277 static Vec3f stellarAssociationColor;
278 static Vec3f starCloudColor;
279 static Vec3f emissionObjectColor;
280 static Vec3f blLacObjectColor;
281 static Vec3f blazarColor;
282 static Vec3f molecularCloudColor;
283 static Vec3f youngStellarObjectColor;
284 static Vec3f possibleQuasarColor;
285 static Vec3f possiblePlanetaryNebulaColor;
286 static Vec3f protoplanetaryNebulaColor;
287 static Vec3f starColor;
289 static bool drawHintProportional;
290 static bool surfaceBrightnessUsage;
291 static bool designationUsage;
293 static bool flagUseTypeFilters;
294 static CatalogGroup catalogFilters;
295 static TypeGroup typeFilters;
298 Q_DECLARE_OPERATORS_FOR_FLAGS(Nebula::CatalogGroup)
299 Q_DECLARE_OPERATORS_FOR_FLAGS(Nebula::TypeGroup)
301 #endif // _NEBULA_HPP_ HYPERLEDA. I. Catalog of galaxies (PGC)
A catalogue of Hα-emission regions in the southern Milky Way (RCW)
virtual float getVMagnitude(const StelCore *core) const
Return object's apparent V magnitude as seen from observer, without including extinction.
Sharpless Catalogue (Sh 2)
Possible Planetary Nebula.
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.
The Uppsala General Catalogue of Galaxies.
virtual SphericalRegionP getRegion() const
Default implementation of the getRegion method.
Cederblad Catalog of bright diffuse Galactic nebulae (Ced)
New General Catalogue (NGC)
The base abstract class for sky objects used in Stellarium like Stars, Planets, Constellations etc...
Van den Bergh Catalogue of reflection nebulae (VdB)
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.
float getSurfaceArea(void) const
Get the surface area.
QString getMorphologicalTypeString() const
Get the printable morphological nebula Type.
Cluster associated with nebulosity.
Main class for Stellarium core processing.
virtual QString getNameI18n() const
Return translated object's name.
static const CatalogGroupFlags AllCatalogs
A pre-defined set of specifiers for the catalogs filter.
virtual Vec3d getJ2000EquatorialPos(const StelCore *) const
Get observer-centered equatorial coordinates at equinox J2000.
virtual QVariantMap getInfoMap(const StelCore *core) const
In addition to the entries from StelObject::getInfoMap(), Nebula objects provide. ...
Unknown type, catalog errors, "Unidentified Southern Objects" etc.
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 getDSODesignation()
Get designation for DSO (with priority: M, C, NGC, IC, B, Sh2, VdB, RCW, LDN, LBN, Cr, Mel, PGC, UGC, Ced)
Collinder Catalogue (Cr or Col)
Different Active Galaxies.
Lynds' Catalogue of Bright Nebulae (LBN)
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.
Lynds' Catalogue of Dark Nebulae (LDN)
QSharedPointer< StelTexture > StelTextureSP
Use shared pointer to simplify memory managment.
Globular star cluster, usually in the Milky Way Galaxy.
Melotte Catalogue of Deep Sky Objects (Mel)
virtual Vec3f getInfoColor() const
Get a color used to display info about the object.
Manage a collection of nebulae.