21 #ifndef _CONSTELLATIONMGR_HPP_
22 #define _CONSTELLATIONMGR_HPP_
26 #include <QStringList>
30 #include "StelObjectModule.hpp"
45 Q_PROPERTY(
bool artDisplayed
48 NOTIFY artDisplayedChanged)
49 Q_PROPERTY(
bool artFadeDuration
52 NOTIFY artFadeDurationChanged)
53 Q_PROPERTY(
bool artIntensity
56 NOTIFY artIntensityChanged)
57 Q_PROPERTY(
bool boundariesColor
60 NOTIFY boundariesColorChanged)
61 Q_PROPERTY(
bool boundariesDisplayed
64 NOTIFY boundariesDisplayedChanged)
65 Q_PROPERTY(
bool fontSize
68 NOTIFY fontSizeChanged)
69 Q_PROPERTY(
bool isolateSelected
72 NOTIFY isolateSelectedChanged)
73 Q_PROPERTY(
bool linesColor
76 NOTIFY linesColorChanged)
77 Q_PROPERTY(
bool linesDisplayed
80 NOTIFY linesDisplayedChanged)
81 Q_PROPERTY(
bool namesColor
84 NOTIFY namesColorChanged)
85 Q_PROPERTY(
bool namesDisplayed
88 NOTIFY namesDisplayedChanged)
107 virtual void update(
double deltaTime);
136 virtual QStringList listAllObjects(
bool inEnglish)
const;
137 virtual QString getName()
const {
return "Constellations"; }
198 void artDisplayedChanged(
const bool displayed)
const;
199 void artFadeDurationChanged(
const float duration)
const;
200 void artIntensityChanged(
const double intensity)
const;
201 void boundariesColorChanged(
const Vec3f & color)
const;
202 void boundariesDisplayedChanged(
const bool displayed)
const;
203 void fontSizeChanged(
const float newSize)
const;
204 void isolateSelectedChanged(
const bool isolate)
const;
205 void linesColorChanged(
const Vec3f & color)
const;
206 void linesDisplayedChanged(
const bool displayed)
const;
207 void namesColorChanged(
const Vec3f & color)
const;
208 void namesDisplayedChanged(
const bool displayed)
const;
218 void setStelStyle(
const QString& section);
222 void updateSkyCulture(
const QString& skyCultureDir);
233 void loadNames(
const QString& namesFile);
239 void loadLinesAndArt(
const QString& fileName,
const QString& artfileName,
const QString& cultureName);
254 bool loadBoundaries(
const QString& conCatFile);
278 void setSelected(
const QString& abbreviation);
280 StelObjectP setSelectedStar(
const QString& abbreviation);
282 void setSelected(
const StelObject* s) {
if (!s) setSelectedConst(NULL);
else setSelectedConst(isStarIn(s));}
284 void deselect() {setSelected(NULL);}
290 void deselectConstellations(
void);
292 std::vector<Constellation*> selected;
295 Constellation* findFromAbbreviation(
const QString& abbreviation)
const;
296 std::vector<Constellation*> asterisms;
300 bool isolateSelected;
301 std::vector<std::vector<Vec3f> *> allBoundarySegments;
303 QString lastLoadedSkyCulture;
306 float artFadeDuration;
309 bool boundariesDisplayed;
314 #endif // _CONSTELLATIONMGR_HPP_