22 #ifndef _CONSTELLATION_HPP_ 23 #define _CONSTELLATION_HPP_ 25 #include "StelObject.hpp" 26 #include "StelUtils.hpp" 27 #include "StelFader.hpp" 30 #include "ConstellationMgr.hpp" 64 virtual QString getInfoString(
const StelCore*,
const InfoStringGroup& flags)
const;
68 virtual QString getType()
const {
return "Constellation";}
71 virtual Vec3d getJ2000EquatorialPos(
const StelCore*)
const {
return XYZname;}
73 virtual double getAngularSize(
const StelCore*)
const {Q_ASSERT(0);
return 0;}
82 bool read(
const QString& record,
StarMgr *starMgr);
89 void drawBoundaryOptim(
StelPainter& sPainter)
const;
102 StelObjectP getBrightestStarInConstellation(
void)
const;
105 QString getNameI18n()
const {
return nameI18;}
107 QString getEnglishName()
const {
return englishName;}
109 QString getShortName()
const {
return abbreviation;}
117 void update(
int deltaTime);
145 bool checkVisibility()
const;
158 QString abbreviation;
163 unsigned int numberOfSegments;
176 LinearFader artFader, lineFader, nameFader, boundaryFader;
177 std::vector<std::vector<Vec3f> *> isolatedBoundarySegments;
178 std::vector<std::vector<Vec3f> *> sharedBoundarySegments;
181 static Vec3f lineColor;
182 static Vec3f labelColor;
183 static Vec3f boundaryColor;
185 static bool singleSelected;
186 static bool seasonalRuleEnabled;
189 static float artIntensityFovScale;
192 #endif // _CONSTELLATION_HPP_ bool getFlagBoundaries(void) const
Get whether constellation boundaries lines are displayed.
void setFlagArt(const bool displayed)
Set whether constellation art will be displayed.
void setFlagBoundaries(const bool displayed)
Set whether constellation boundaries lines will be displayed.
Implementation of StelFader which implements a linear transition.
The base abstract class for sky objects used in Stellarium like Stars, Planets, Constellations etc...
Define the StelTextureSP type.
virtual void update(double deltaTime)
Updates time-varying state for each Constellation.
A SphericalCap is defined by a direction and an aperture.
bool getFlagArt(void) const
Get whether constellation art is displayed.
The Constellation class models a grouping of stars in a Sky Culture.
Main class for Stellarium core processing.
Provides functions for performing openGL drawing operations.
Stores the star catalogue data.
Abstract class defining a region of the sphere.
ConstellationDisplayStyle
Describes how to display constellation labels. The viewDialog GUI has a combobox which corresponds to...
void setFlagLabels(const bool displayed)
Set whether constellation names will be displayed.
Display and manage the constellations.
bool getFlagLabels(void) const
Set whether constellation names are displayed.
bool getFlagLines(void) const
Get whether constellation lines are displayed.
QSharedPointer< StelTexture > StelTextureSP
Use shared pointer to simplify memory managment.
void setFlagLines(const bool displayed)
Set whether constellation lines will be displayed.
Define all SphericalGeometry primitives as well as the SphericalRegionP type.