ConstellationMgr.hpp   ConstellationMgr.hpp 
skipping to change at line 29 skipping to change at line 29
#ifndef _CONSTELLATIONMGR_HPP_ #ifndef _CONSTELLATIONMGR_HPP_
#define _CONSTELLATIONMGR_HPP_ #define _CONSTELLATIONMGR_HPP_
#include <vector> #include <vector>
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include "StelObjectType.hpp" #include "StelObjectType.hpp"
#include "StelObjectModule.hpp" #include "StelObjectModule.hpp"
#include "StelProjectorType.hpp"
class ToneReproducer; class StelToneReproducer;
class StarMgr; class StarMgr;
class Constellation; class Constellation;
class Projector; class StelProjector;
class Navigator; class StelNavigator;
class SFont; class StelFont;
class StelPainter;
//! @class ConstellationMgr //! @class ConstellationMgr
//! Display and manage the constellations. //! Display and manage the constellations.
//! It can display constellations lines, names, art textures and boundaries . //! It can display constellations lines, names, art textures and boundaries .
//! It also supports several different sky cultures. //! It also supports several different sky cultures.
class ConstellationMgr : public StelObjectModule class ConstellationMgr : public StelObjectModule
{ {
Q_OBJECT; Q_OBJECT
public: public:
//! Constructor //! Constructor
ConstellationMgr(StarMgr *stars); ConstellationMgr(StarMgr *stars);
//! Destructor //! Destructor
virtual ~ConstellationMgr(); virtual ~ConstellationMgr();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
//! Initialize the ConstellationMgr. //! Initialize the ConstellationMgr.
skipping to change at line 189 skipping to change at line 191
//! data items: //! data items:
//! - The number of vertexes which make up in the boundary (integer ). //! - The number of vertexes which make up in the boundary (integer ).
//! - For each vertex, two floating point numbers describing the ra and dec //! - For each vertex, two floating point numbers describing the ra and dec
//! of the vertex. //! of the vertex.
//! - The number of constellations which this boundary separates (a lways 2). //! - The number of constellations which this boundary separates (a lways 2).
//! - Two constellation abbreviations representing the constellatio ns which //! - Two constellation abbreviations representing the constellatio ns which
//! the boundary separates. //! the boundary separates.
//! @param conCatFile the path to the file which contains the conste llation boundary data. //! @param conCatFile the path to the file which contains the conste llation boundary data.
bool loadBoundaries(const QString& conCatFile); bool loadBoundaries(const QString& conCatFile);
//! Draw the constellation lines. //! Draw the constellation lines.
void drawLines(Projector * prj) const; void drawLines(const StelProjectorP& prj) const;
//! Draw the constellation art. //! Draw the constellation art.
void drawArt(Projector * prj, const Navigator * nav) const; void drawArt(const StelProjectorP& prj, const StelNavigator * nav) c onst;
//! Draw the constellation name labels. //! Draw the constellation name labels.
void drawNames(Projector * prj) const; void drawNames(const StelPainter& sPainter) const;
//! Draw the constellation boundaries. //! Draw the constellation boundaries.
void drawBoundaries(Projector* prj) const; void drawBoundaries(const StelProjectorP& prj) const;
//! Handle single and multi-constellation selections. //! Handle single and multi-constellation selections.
void setSelectedConst(Constellation* c); void setSelectedConst(Constellation* c);
//! Handle unselecting a single constellation. //! Handle unselecting a single constellation.
void unsetSelectedConst(Constellation* c); void unsetSelectedConst(Constellation* c);
//! Define which constellation is selected from its abbreviation. //! Define which constellation is selected from its abbreviation.
void setSelected(const QString& abbreviation); void setSelected(const QString& abbreviation);
//! Define which constellation is selected and return brightest star . //! Define which constellation is selected and return brightest star .
StelObjectP setSelectedStar(const QString& abbreviation); StelObjectP setSelectedStar(const QString& abbreviation);
//! Define which constellation is selected from a star number. //! Define which constellation is selected from a star number.
void setSelected(const StelObject* s) {if (!s) setSelectedConst(NULL ); else setSelectedConst(isStarIn(s));} void setSelected(const StelObject* s) {if (!s) setSelectedConst(NULL ); else setSelectedConst(isStarIn(s));}
skipping to change at line 219 skipping to change at line 221
//! NOTE: this function should return a list of all, or may be delet ed. Please //! NOTE: this function should return a list of all, or may be delet ed. Please
//! do not use until it exhibits the proper behaviour. //! do not use until it exhibits the proper behaviour.
StelObject* getSelected(void) const; StelObject* getSelected(void) const;
std::vector<Constellation*> selected; // More than one can be select ed at a time std::vector<Constellation*> selected; // More than one can be select ed at a time
Constellation* isStarIn(const StelObject *s) const; Constellation* isStarIn(const StelObject *s) const;
Constellation* findFromAbbreviation(const QString& abbreviation) con st; Constellation* findFromAbbreviation(const QString& abbreviation) con st;
std::vector<Constellation*> asterisms; std::vector<Constellation*> asterisms;
double fontSize; double fontSize;
SFont* asterFont; StelFont* asterFont;
StarMgr* hipStarMgr; StarMgr* hipStarMgr;
bool isolateSelected; bool isolateSelected;
std::vector<std::vector<Vec3f> *> allBoundarySegments; std::vector<std::vector<Vec3f> *> allBoundarySegments;
QString lastLoadedSkyCulture; // Store the last loaded sky culture directory name QString lastLoadedSkyCulture; // Store the last loaded sky culture directory name
// These are THE master settings - individual constellation settings can vary based on selection status // These are THE master settings - individual constellation settings can vary based on selection status
bool flagNames; bool flagNames;
bool flagLines; bool flagLines;
 End of changes. 9 change blocks. 
10 lines changed or deleted 12 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/