NebulaMgr.hpp   NebulaMgr.hpp 
skipping to change at line 43 skipping to change at line 43
class Nebula; class Nebula;
class StelTranslator; class StelTranslator;
class StelToneReproducer; class StelToneReproducer;
class QSettings; class QSettings;
typedef QSharedPointer<Nebula> NebulaP; typedef QSharedPointer<Nebula> NebulaP;
//! @class NebulaMgr //! @class NebulaMgr
//! Manage a collection of nebulae. This class is used //! Manage a collection of nebulae. This class is used
//! to display the NGC catalog with information, and textures for some of t hem. //! to display the NGC catalog with information, and textures for some of t hem.
// GZ: This doc seems outdated/misleading - photo textures are not mamaged
here but in StelSkyImageTile
class NebulaMgr : public StelObjectModule class NebulaMgr : public StelObjectModule
{ {
Q_OBJECT Q_OBJECT
public: public:
NebulaMgr(); NebulaMgr();
virtual ~NebulaMgr(); virtual ~NebulaMgr();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
skipping to change at line 94 skipping to change at line 96
//! Return the matching nebula if exists or NULL. //! Return the matching nebula if exists or NULL.
//! @param name The case in-sensistive standard program name //! @param name The case in-sensistive standard program name
virtual StelObjectP searchByName(const QString& name) const; virtual StelObjectP searchByName(const QString& name) const;
//! Find and return the list of at most maxNbItem objects auto-compl eting the passed object I18n name. //! Find and return the list of at most maxNbItem objects auto-compl eting the passed object I18n name.
//! @param objPrefix the case insensitive first letters of the searc hed object //! @param objPrefix the case insensitive first letters of the searc hed object
//! @param maxNbItem the maximum number of returned object names //! @param maxNbItem the maximum number of returned object names
//! @return a list of matching object name by order of relevance, or an empty list if nothing match //! @return a list of matching object name by order of relevance, or an empty list if nothing match
virtual QStringList listMatchingObjectsI18n(const QString& objPrefix , int maxNbItem=5) const; virtual QStringList listMatchingObjectsI18n(const QString& objPrefix , int maxNbItem=5) const;
//! Find and return the list of at most maxNbItem objects auto-compl
eting the passed object English name.
//! @param objPrefix the case insensitive first letters of the searc
hed object
//! @param maxNbItem the maximum number of returned object names
//! @return a list of matching object name by order of relevance, or
an empty list if nothing match
virtual QStringList listMatchingObjects(const QString& objPrefix, in
t maxNbItem=5) const;
// empty for now // empty for now
virtual QStringList listAllObjects(bool inEnglish) const { Q_UNUSED( inEnglish) return QStringList(); } virtual QStringList listAllObjects(bool inEnglish) const { Q_UNUSED( inEnglish) return QStringList(); }
virtual QString getName() const { return "Nebulae"; } virtual QString getName() const { return "Nebulae"; }
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Properties setters and getters // Properties setters and getters
public slots: public slots:
//! Set the color used to draw the nebula circles. //! Set the color used to draw the nebula symbols (circles, boxes. e tc).
void setCirclesColor(const Vec3f& c); void setCirclesColor(const Vec3f& c);
//! Get current value of the nebula circle color. //! Get current value of the nebula circle color.
const Vec3f& getCirclesColor(void) const; const Vec3f& getCirclesColor(void) const;
//! Set Nebulae Hints circle scale. //! Set Nebulae Hints circle scale.
void setCircleScale(float scale); void setCircleScale(float scale);
//! Get Nebulae Hints circle scale. //! Get Nebulae Hints circle scale.
float getCircleScale(void) const; float getCircleScale(void) const;
//! Set how long it takes for nebula hints to fade in and out when t urned on and off. //! Set how long it takes for nebula hints to fade in and out when t urned on and off.
//! @param duration given in seconds
void setHintsFadeDuration(float duration) {hintsFader.setDuration((i nt) (duration * 1000.f));} void setHintsFadeDuration(float duration) {hintsFader.setDuration((i nt) (duration * 1000.f));}
//! Set flag for displaying Nebulae Hints. //! Set flag for displaying Nebulae Hints.
void setFlagHints(bool b) {hintsFader=b;} void setFlagHints(bool b) {hintsFader=b;}
//! Get flag for displaying Nebulae Hints. //! Get flag for displaying Nebulae Hints.
bool getFlagHints(void) const {return hintsFader;} bool getFlagHints(void) const {return hintsFader;}
//! Set flag used to turn on and off Nebula rendering. //! Set flag used to turn on and off Nebula rendering.
void setFlagShow(bool b) { flagShow = b; } void setFlagShow(bool b) { flagShow = b; }
//! Get value of flag used to turn on and off Nebula rendering. //! Get value of flag used to turn on and off Nebula rendering.
skipping to change at line 176 skipping to change at line 184
//! This function loads a set of textures. //! This function loads a set of textures.
//! @param setName a string which corresponds to the directory where the set resides //! @param setName a string which corresponds to the directory where the set resides
void loadNebulaSet(const QString& setName); void loadNebulaSet(const QString& setName);
//! Draw a nice animated pointer around the object //! Draw a nice animated pointer around the object
void drawPointer(const StelCore* core, class StelRenderer* renderer) ; void drawPointer(const StelCore* core, class StelRenderer* renderer) ;
NebulaP searchM(unsigned int M); NebulaP searchM(unsigned int M);
NebulaP searchNGC(unsigned int NGC); NebulaP searchNGC(unsigned int NGC);
NebulaP searchIC(unsigned int IC); NebulaP searchIC(unsigned int IC);
NebulaP searchC(unsigned int C);
bool loadNGC(const QString& fileName); bool loadNGC(const QString& fileName);
bool loadNGCOld(const QString& catNGC); bool loadNGCOld(const QString& catNGC);
bool loadNGCNames(const QString& fileName); bool loadNGCNames(const QString& fileName);
QVector<NebulaP> nebArray; // The nebulas list QVector<NebulaP> nebArray; // The nebulas list
QHash<unsigned int, NebulaP> ngcIndex; QHash<unsigned int, NebulaP> ngcIndex;
LinearFader hintsFader; LinearFader hintsFader;
LinearFader flagShow; LinearFader flagShow;
//! The internal grid for fast positional lookup //! The internal grid for fast positional lookup
 End of changes. 5 change blocks. 
1 lines changed or deleted 15 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/