21 #ifndef _CONSTELLATION_HPP_
22 #define _CONSTELLATION_HPP_
28 #include "StelObject.hpp"
29 #include "StelUtils.hpp"
30 #include "StelFader.hpp"
31 #include "StelProjector.hpp"
55 virtual QString getInfoString(
const StelCore*,
const InfoStringGroup& flags)
const
57 if (flags&
Name)
return getNameI18n() +
"(" + getShortName() +
")";
63 virtual QString getType()
const {
return "Constellation";}
66 virtual Vec3d getJ2000EquatorialPos(
const StelCore*)
const {
return XYZname;}
68 virtual double getAngularSize(
const StelCore*)
const {Q_ASSERT(0);
return 0;}
77 bool read(
const QString& record,
StarMgr *starMgr);
83 void drawName(
class StelRenderer* renderer, QFont& font)
const;
102 StelObjectP getBrightestStarInConstellation(
void)
const;
105 QString getNameI18n()
const {
return nameI18;}
107 QString getEnglishName()
const {
return abbreviation;}
109 QString getShortName()
const {
return abbreviation;}
115 void generateArtVertices(
class StelRenderer* renderer,
const int resolution);
132 void update(
int deltaTime);
165 QString abbreviation;
170 unsigned int numberOfSegments;
176 QString artTexturePath;
183 Vertex(
const Vec3f& position,
const Vec2f texCoord)
184 : position(position), texCoord(texCoord) {}
197 LinearFader artFader, lineFader, nameFader, boundaryFader;
198 std::vector<std::vector<Vec3f> *> isolatedBoundarySegments;
199 std::vector<std::vector<Vec3f> *> sharedBoundarySegments;
206 static Vec3f lineColor;
207 static Vec3f labelColor;
208 static Vec3f boundaryColor;
210 static bool singleSelected;
213 #endif // _CONSTELLATION_HPP_