ConstellationMgr.hpp   ConstellationMgr.hpp 
skipping to change at line 26 skipping to change at line 26
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#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 <QFont>
#include "StelObjectType.hpp" #include "StelObjectType.hpp"
#include "StelObjectModule.hpp" #include "StelObjectModule.hpp"
#include "StelProjectorType.hpp" #include "StelProjectorType.hpp"
class StelToneReproducer; class StelToneReproducer;
class StarMgr; class StarMgr;
class Constellation; class Constellation;
class StelProjector; class StelProjector;
class StelNavigator; class StelNavigator;
class StelFont;
class StelPainter; 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
skipping to change at line 192 skipping to change at line 192
//! 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 at the epoch given by the StelNavig ator. //! Draw the constellation lines at the epoch given by the StelNavig ator.
void drawLines(const StelPainter& sPainter, const StelNavigator* nav ) const; void drawLines(StelPainter& sPainter, const StelNavigator* nav) cons t;
//! Draw the constellation art. //! Draw the constellation art.
void drawArt(const StelProjectorP& prj, const StelNavigator * nav) c onst; void drawArt(StelPainter& sPainter) const;
//! Draw the constellation name labels. //! Draw the constellation name labels.
void drawNames(const StelPainter& sPainter) const; void drawNames(StelPainter& sPainter) const;
//! Draw the constellation boundaries. //! Draw the constellation boundaries.
void drawBoundaries(const StelProjectorP& prj) const; void drawBoundaries(StelPainter& sPainter) 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 221 skipping to change at line 221
//! Get the first selected constellation. //! Get the first selected constellation.
//! 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; QFont 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. 7 change blocks. 
7 lines changed or deleted 6 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/