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
66 if (flags&
Name)
return getNameI18n() +
"(" + getShortName() +
")";
72 virtual QString getType()
const {
return "Constellation";}
75 virtual Vec3d getJ2000EquatorialPos(
const StelCore*)
const {
return XYZname;}
77 virtual double getAngularSize(
const StelCore*)
const {Q_ASSERT(0);
return 0;}
86 bool read(
const QString& record,
StarMgr *starMgr);
93 void drawBoundaryOptim(
StelPainter& sPainter)
const;
106 StelObjectP getBrightestStarInConstellation(
void)
const;
109 QString getNameI18n()
const {
return nameI18;}
111 QString getEnglishName()
const {
return abbreviation;}
113 QString getShortName()
const {
return abbreviation;}
121 void update(
int deltaTime);
149 bool checkVisibility()
const;
162 QString abbreviation;
167 unsigned int numberOfSegments;
180 LinearFader artFader, lineFader, nameFader, boundaryFader;
181 std::vector<std::vector<Vec3f> *> isolatedBoundarySegments;
182 std::vector<std::vector<Vec3f> *> sharedBoundarySegments;
185 static Vec3f lineColor;
186 static Vec3f labelColor;
187 static Vec3f boundaryColor;
189 static bool singleSelected;
190 static bool seasonalRuleEnabled;
193 #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.