NebulaMgr.hpp   NebulaMgr.hpp 
skipping to change at line 76 skipping to change at line 76
Q_PROPERTY(Nebula::CatalogGroup catalogFilters Q_PROPERTY(Nebula::CatalogGroup catalogFilters
READ getCatalogFilters READ getCatalogFilters
WRITE setCatalogFilters WRITE setCatalogFilters
NOTIFY catalogFiltersChanged NOTIFY catalogFiltersChanged
) )
Q_PROPERTY(bool hintsProportional Q_PROPERTY(bool hintsProportional
READ getHintsProportional READ getHintsProportional
WRITE setHintsProportional WRITE setHintsProportional
NOTIFY hintsProportionalChanged NOTIFY hintsProportionalChanged
) )
Q_PROPERTY(bool flagOutlinesDisplayed
READ getFlagOutlines
WRITE setFlagOutlines
NOTIFY flagOutlinesDisplayedChanged
)
Q_PROPERTY(bool flagSurfaceBrightnessUsage Q_PROPERTY(bool flagSurfaceBrightnessUsage
READ getFlagSurfaceBrightnessUsage READ getFlagSurfaceBrightnessUsage
WRITE setFlagSurfaceBrightnessUsage WRITE setFlagSurfaceBrightnessUsage
NOTIFY flagSurfaceBrightnessUsageChanged NOTIFY flagSurfaceBrightnessUsageChanged
) )
Q_PROPERTY(bool flagSurfaceBrightnessArcsecUsage Q_PROPERTY(bool flagSurfaceBrightnessArcsecUsage
READ getFlagSurfaceBrightnessArcsecUsage READ getFlagSurfaceBrightnessArcsecUsage
WRITE setFlagSurfaceBrightnessArcsecUsage WRITE setFlagSurfaceBrightnessArcsecUsage
NOTIFY flagSurfaceBrightnessArcsecUsageChanged NOTIFY flagSurfaceBrightnessArcsecUsageChanged
) )
Q_PROPERTY(bool flagSurfaceBrightnessShortNotationUsage
READ getFlagSurfaceBrightnessShortNotationUsage
WRITE setFlagSurfaceBrightnessShortNotationUsage
NOTIFY flagSurfaceBrightnessShortNotationUsageChanged
)
Q_PROPERTY(double labelsAmount Q_PROPERTY(double labelsAmount
READ getLabelsAmount READ getLabelsAmount
WRITE setLabelsAmount WRITE setLabelsAmount
NOTIFY labelsAmountChanged NOTIFY labelsAmountChanged
) )
Q_PROPERTY(double hintsAmount Q_PROPERTY(double hintsAmount
READ getHintsAmount READ getHintsAmount
WRITE setHintsAmount WRITE setHintsAmount
NOTIFY hintsAmountChanged NOTIFY hintsAmountChanged
) )
skipping to change at line 172 skipping to change at line 182
Q_PROPERTY(Vec3f starCloudsColor Q_PROPERTY(Vec3f starCloudsColor
READ getStarCloudColor READ getStarCloudColor
WRITE setStarCloudColor WRITE setStarCloudColor
NOTIFY starCloudsColorChanged NOTIFY starCloudsColorChanged
) )
Q_PROPERTY(Vec3f starsColor Q_PROPERTY(Vec3f starsColor
READ getStarColor READ getStarColor
WRITE setStarColor WRITE setStarColor
NOTIFY starsColorChanged NOTIFY starsColorChanged
) )
Q_PROPERTY(Vec3f symbioticStarsColor
READ getSymbioticStarColor
WRITE setSymbioticStarColor
NOTIFY symbioticStarsColorChanged
)
Q_PROPERTY(Vec3f emissionLineStarsColor
READ getEmissionLineStarColor
WRITE setEmissionLineStarColor
NOTIFY emissionLineStarsColorChanged
)
Q_PROPERTY(Vec3f nebulaeColor Q_PROPERTY(Vec3f nebulaeColor
READ getNebulaColor READ getNebulaColor
WRITE setNebulaColor WRITE setNebulaColor
NOTIFY nebulaeColorChanged NOTIFY nebulaeColorChanged
) )
Q_PROPERTY(Vec3f planetaryNebulaeColor Q_PROPERTY(Vec3f planetaryNebulaeColor
READ getPlanetaryNebulaColor READ getPlanetaryNebulaColor
WRITE setPlanetaryNebulaColor WRITE setPlanetaryNebulaColor
NOTIFY planetaryNebulaeColorChanged NOTIFY planetaryNebulaeColorChanged
) )
skipping to change at line 257 skipping to change at line 277
Q_PROPERTY(Vec3f youngStellarObjectsColor Q_PROPERTY(Vec3f youngStellarObjectsColor
READ getYoungStellarObjectColor READ getYoungStellarObjectColor
WRITE setYoungStellarObjectColor WRITE setYoungStellarObjectColor
NOTIFY youngStellarObjectsColorChanged NOTIFY youngStellarObjectsColorChanged
) )
Q_PROPERTY(Vec3f supernovaRemnantsColor Q_PROPERTY(Vec3f supernovaRemnantsColor
READ getSupernovaRemnantColor READ getSupernovaRemnantColor
WRITE setSupernovaRemnantColor WRITE setSupernovaRemnantColor
NOTIFY supernovaRemnantsColorChanged NOTIFY supernovaRemnantsColorChanged
) )
Q_PROPERTY(Vec3f supernovaCandidatesColor
READ getSupernovaCandidateColor
WRITE setSupernovaCandidateColor
NOTIFY supernovaCandidatesColorChanged
)
Q_PROPERTY(Vec3f supernovaRemnantCandidatesColor
READ getSupernovaRemnantCandidateColor
WRITE setSupernovaRemnantCandidateColor
NOTIFY supernovaRemnantCandidatesColorChanged
)
Q_PROPERTY(Vec3f galaxyClustersColor
READ getGalaxyClusterColor
WRITE setGalaxyClusterColor
NOTIFY galaxyClustersColorChanged
)
public: public:
NebulaMgr(); NebulaMgr();
virtual ~NebulaMgr(); virtual ~NebulaMgr();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
//! Initialize the NebulaMgr object. //! Initialize the NebulaMgr object.
//! - Load the font into the Nebula class, which is used to draw Ne bula labels. //! - Load the font into the Nebula class, which is used to draw Ne bula labels.
//! - Load the texture used to draw nebula locations into the Nebul a class (for //! - Load the texture used to draw nebula locations into the Nebul a class (for
skipping to change at line 317 skipping to change at line 352
virtual QStringList listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false, bool inEnglish=false) const; virtual QStringList listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false, bool inEnglish=false) const;
//! @note Loading deep-sky objects with the proper names only. //! @note Loading deep-sky objects with the proper names only.
virtual QStringList listAllObjects(bool inEnglish) const; virtual QStringList listAllObjects(bool inEnglish) const;
virtual QStringList listAllObjectsByType(const QString& objType, boo l inEnglish) const; virtual QStringList listAllObjectsByType(const QString& objType, boo l inEnglish) const;
virtual QString getName() const { return "Deep-sky objects"; } virtual QString getName() const { return "Deep-sky objects"; }
virtual QString getStelObjectType() const { return Nebula::NEBULA_TY PE; } virtual QString getStelObjectType() const { return Nebula::NEBULA_TY PE; }
//! Compute the maximum magntiude for which hints will be displayed. //! Compute the maximum magntiude for which hints will be displayed.
float computeMaxMagHint(const class StelSkyDrawer* skyDrawer) const; float computeMaxMagHint(const class StelSkyDrawer* skyDrawer) const;
bool objectInDisplayedCatalog(NebulaP n);
//! Get designation for latest selected DSO with priority //! Get designation for latest selected DSO with priority
//! @note using for bookmarks feature as example //! @note using for bookmarks feature as example
//! @return a designation //! @return a designation
QString getLatestSelectedDSODesignation(); QString getLatestSelectedDSODesignation();
//! Get the list of all deep-sky objects. //! Get the list of all deep-sky objects.
const QVector<NebulaP>& getAllDeepSkyObjects() const { return dsoArr ay; } const QVector<NebulaP>& getAllDeepSkyObjects() const { return dsoArr ay; }
//! Get the list of deep-sky objects by type. //! Get the list of deep-sky objects by type.
QList<NebulaP> getDeepSkyObjectsByType(const QString& objType); QList<NebulaP> getDeepSkyObjectsByType(const QString& objType);
skipping to change at line 481 skipping to change at line 514
//! Set the color used to draw the supernova remnant symbols. //! Set the color used to draw the supernova remnant symbols.
//! @param c The color of the supernova remnant symbols //! @param c The color of the supernova remnant symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setSupernovaRemnantColor(Vec3f(0.0,1.0,0.0)); //! NebulaMgr.setSupernovaRemnantColor(Vec3f(0.0,1.0,0.0));
//! @endcode //! @endcode
void setSupernovaRemnantColor(const Vec3f& c); void setSupernovaRemnantColor(const Vec3f& c);
//! Get current value of the supernova remnant symbol color. //! Get current value of the supernova remnant symbol color.
const Vec3f getSupernovaRemnantColor(void) const; const Vec3f getSupernovaRemnantColor(void) const;
//! Set the color used to draw the supernova candidate symbols.
//! @param c The color of the supernova candidate symbols
//! @code
//! // example of usage in scripts
//! NebulaMgr.setSupernovaCandidateColor(Vec3f(0.0,1.0,0.0));
//! @endcode
void setSupernovaCandidateColor(const Vec3f& c);
//! Get current value of the supernova candidate symbol color.
const Vec3f getSupernovaCandidateColor(void) const;
//! Set the color used to draw the supernova remnant candidate symbo
ls.
//! @param c The color of the supernova remnant candidate symbols
//! @code
//! // example of usage in scripts
//! NebulaMgr.setSupernovaRemnantCandidateColor(Vec3f(0.0,1.0,0.0));
//! @endcode
void setSupernovaRemnantCandidateColor(const Vec3f& c);
//! Get current value of the supernova remnant candidate symbol colo
r.
const Vec3f getSupernovaRemnantCandidateColor(void) const;
//! Set the color used to draw the interstellar matter symbols. //! Set the color used to draw the interstellar matter symbols.
//! @param c The color of the interstellar matter symbols //! @param c The color of the interstellar matter symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setInterstellarMatterColor(Vec3f(0.0,1.0,0.0)); //! NebulaMgr.setInterstellarMatterColor(Vec3f(0.0,1.0,0.0));
//! @endcode //! @endcode
void setInterstellarMatterColor(const Vec3f& c); void setInterstellarMatterColor(const Vec3f& c);
//! Get current value of the interstellar matter symbol color. //! Get current value of the interstellar matter symbol color.
const Vec3f getInterstellarMatterColor(void) const; const Vec3f getInterstellarMatterColor(void) const;
skipping to change at line 651 skipping to change at line 704
//! Set the color used to draw the stars symbols. //! Set the color used to draw the stars symbols.
//! @param c The color of the stars symbols //! @param c The color of the stars symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setStarColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setStarColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setStarColor(const Vec3f& c); void setStarColor(const Vec3f& c);
//! Get current value of the star symbol color. //! Get current value of the star symbol color.
const Vec3f getStarColor(void) const; const Vec3f getStarColor(void) const;
//! Set the color used to draw the symbiotic stars symbols.
//! @param c The color of the symbiotic stars symbols
//! @code
//! // example of usage in scripts
//! NebulaMgr.setSymbioticStarColor(Vec3f(1.0,1.0,0.0));
//! @endcode
void setSymbioticStarColor(const Vec3f& c);
//! Get current value of the symbiotic star symbol color.
const Vec3f getSymbioticStarColor(void) const;
//! Set the color used to draw the emission-line stars symbols.
//! @param c The color of the emission-line stars symbols
//! @code
//! // example of usage in scripts
//! NebulaMgr.setEmissionLineStarColor(Vec3f(1.0,1.0,0.0));
//! @endcode
void setEmissionLineStarColor(const Vec3f& c);
//! Get current value of the emission-line star symbol color.
const Vec3f getEmissionLineStarColor(void) const;
//! Set the color used to draw the cluster of galaxies symbols.
//! @param c The color of the cluster of galaxies symbols
//! @code
//! // example of usage in scripts
//! NebulaMgr.setGalaxyClusterColor(Vec3f(1.0,1.0,0.0));
//! @endcode
void setGalaxyClusterColor(const Vec3f& c);
//! Get current value of the cluster of galaxies symbol color.
const Vec3f getGalaxyClusterColor(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 //! @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) { if (hintsFader!=b) { hintsFader=b; emit flagHintsDisplayedChanged(b);}} void setFlagHints(bool b) { if (hintsFader!=b) { hintsFader=b; emit flagHintsDisplayedChanged(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 whether hints (symbols) should be scaled according to nebula size. //! Set whether hints (symbols) should be scaled according to nebula size.
void setHintsProportional(const bool proportional); void setHintsProportional(const bool proportional);
//! Get whether hints (symbols) are scaled according to nebula size. //! Get whether hints (symbols) are scaled according to nebula size.
bool getHintsProportional(void) const; bool getHintsProportional(void) const;
//! Set flag for usage outlines for big DSO instead their hints.
void setFlagOutlines(const bool flag);
//! Get flag for usage outlines for big DSO instead their hints.
bool getFlagOutlines(void) const;
//! Set flag for usage designations of DSO for their labels instead common names. //! Set flag for usage designations of DSO for their labels instead common names.
void setDesignationUsage(const bool flag); void setDesignationUsage(const bool flag);
//! Get flag for usage designations of DSO for their labels instead common names. //! Get flag for usage designations of DSO for their labels instead common names.
bool getDesignationUsage(void) const; bool getDesignationUsage(void) const;
//! Set whether hints (symbols) should be visible according to surfa ce brightness value. //! Set whether hints (symbols) should be visible according to surfa ce brightness value.
void setFlagSurfaceBrightnessUsage(const bool usage) {if(usage!=Nebu la::surfaceBrightnessUsage){ Nebula::surfaceBrightnessUsage=usage; emit fla gSurfaceBrightnessUsageChanged(usage);}} void setFlagSurfaceBrightnessUsage(const bool usage) {if(usage!=Nebu la::surfaceBrightnessUsage){ Nebula::surfaceBrightnessUsage=usage; emit fla gSurfaceBrightnessUsageChanged(usage);}}
//! Get whether hints (symbols) are visible according to surface bri ghtness value. //! Get whether hints (symbols) are visible according to surface bri ghtness value.
bool getFlagSurfaceBrightnessUsage(void) const { return Nebula::surf aceBrightnessUsage; } bool getFlagSurfaceBrightnessUsage(void) const { return Nebula::surf aceBrightnessUsage; }
//! Set flag for usage of measure unit mag/arcsec^2 to surface brigh tness value. //! Set flag for usage of measure unit mag/arcsec^2 to surface brigh tness value.
void setFlagSurfaceBrightnessArcsecUsage(const bool usage) { Nebula: :flagUseArcsecSurfaceBrightness=usage; } void setFlagSurfaceBrightnessArcsecUsage(const bool usage) { Nebula: :flagUseArcsecSurfaceBrightness=usage; }
//! Get flag for usage of measure unit mag/arcsec^2 to surface brigh tness value. //! Get flag for usage of measure unit mag/arcsec^2 to surface brigh tness value.
bool getFlagSurfaceBrightnessArcsecUsage(void) const { return Nebula ::flagUseArcsecSurfaceBrightness; } bool getFlagSurfaceBrightnessArcsecUsage(void) const { return Nebula ::flagUseArcsecSurfaceBrightness; }
//! Set flag for usage of short notation for measure unit to surface
brightness value.
void setFlagSurfaceBrightnessShortNotationUsage(const bool usage) {
Nebula::flagUseShortNotationSurfaceBrightness=usage; }
//! Get flag for usage of short notation for measure unit to surface
brightness value.
bool getFlagSurfaceBrightnessShortNotationUsage(void) const { return
Nebula::flagUseShortNotationSurfaceBrightness; }
//! 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.
bool getFlagShow(void) const { return flagShow; } bool getFlagShow(void) const { return flagShow; }
//! Set flag used to turn on and off DSO type filtering. //! Set flag used to turn on and off DSO type filtering.
void setFlagUseTypeFilters(bool b) { if (Nebula::flagUseTypeFilters! =b) { Nebula::flagUseTypeFilters=b; emit flagUseTypeFiltersChanged(b);}} void setFlagUseTypeFilters(bool b) { if (Nebula::flagUseTypeFilters! =b) { Nebula::flagUseTypeFilters=b; emit flagUseTypeFiltersChanged(b);}}
//! Get value of flag used to turn on and off DSO type filtering. //! Get value of flag used to turn on and off DSO type filtering.
bool getFlagUseTypeFilters(void) const { return Nebula::flagUseTypeF ilters; } bool getFlagUseTypeFilters(void) const { return Nebula::flagUseTypeF ilters; }
skipping to change at line 726 skipping to change at line 819
signals: signals:
//! Emitted when hints are toggled. //! Emitted when hints are toggled.
void flagHintsDisplayedChanged(bool b); void flagHintsDisplayedChanged(bool b);
//! Emitted when filter types are changed. //! Emitted when filter types are changed.
void flagUseTypeFiltersChanged(bool b); void flagUseTypeFiltersChanged(bool b);
//! Emitted when the catalog filter is changed //! Emitted when the catalog filter is changed
void catalogFiltersChanged(Nebula::CatalogGroup flags); void catalogFiltersChanged(Nebula::CatalogGroup flags);
//! Emitted when the type filter is changed //! Emitted when the type filter is changed
void typeFiltersChanged(Nebula::TypeGroup flags); void typeFiltersChanged(Nebula::TypeGroup flags);
void hintsProportionalChanged(bool b); void hintsProportionalChanged(bool b);
void flagOutlinesDisplayedChanged(bool b);
void designationUsageChanged(bool b); void designationUsageChanged(bool b);
void flagSurfaceBrightnessUsageChanged(bool b); void flagSurfaceBrightnessUsageChanged(bool b);
void flagSurfaceBrightnessArcsecUsageChanged(bool b); void flagSurfaceBrightnessArcsecUsageChanged(bool b);
void flagSurfaceBrightnessShortNotationUsageChanged(bool b);
void labelsAmountChanged(double a); void labelsAmountChanged(double a);
void hintsAmountChanged(double f); void hintsAmountChanged(double f);
void labelsColorChanged(const Vec3f & color) const; void labelsColorChanged(const Vec3f & color) const;
void circlesColorChanged(const Vec3f & color) const; void circlesColorChanged(const Vec3f & color) const;
void galaxiesColorChanged(const Vec3f & color) const; void galaxiesColorChanged(const Vec3f & color) const;
void activeGalaxiesColorChanged(const Vec3f & color) const; void activeGalaxiesColorChanged(const Vec3f & color) const;
void radioGalaxiesColorChanged(const Vec3f & color) const; void radioGalaxiesColorChanged(const Vec3f & color) const;
void interactingGalaxiesColorChanged(const Vec3f & color) const; void interactingGalaxiesColorChanged(const Vec3f & color) const;
void quasarsColorChanged(const Vec3f & color) const; void quasarsColorChanged(const Vec3f & color) const;
void possibleQuasarsColorChanged(const Vec3f & color) const; void possibleQuasarsColorChanged(const Vec3f & color) const;
void clustersColorChanged(const Vec3f & color) const; void clustersColorChanged(const Vec3f & color) const;
void openClustersColorChanged(const Vec3f & color) const; void openClustersColorChanged(const Vec3f & color) const;
void globularClustersColorChanged(const Vec3f & color) const; void globularClustersColorChanged(const Vec3f & color) const;
void stellarAssociationsColorChanged(const Vec3f & color) const; void stellarAssociationsColorChanged(const Vec3f & color) const;
void starCloudsColorChanged(const Vec3f & color) const; void starCloudsColorChanged(const Vec3f & color) const;
void starsColorChanged(const Vec3f & color) const; void starsColorChanged(const Vec3f & color) const;
void symbioticStarsColorChanged(const Vec3f & color) const;
void emissionLineStarsColorChanged(const Vec3f & color) const;
void nebulaeColorChanged(const Vec3f & color) const; void nebulaeColorChanged(const Vec3f & color) const;
void planetaryNebulaeColorChanged(const Vec3f & color) const; void planetaryNebulaeColorChanged(const Vec3f & color) const;
void darkNebulaeColorChanged(const Vec3f & color) const; void darkNebulaeColorChanged(const Vec3f & color) const;
void reflectionNebulaeColorChanged(const Vec3f & color) const; void reflectionNebulaeColorChanged(const Vec3f & color) const;
void bipolarNebulaeColorChanged(const Vec3f & color) const; void bipolarNebulaeColorChanged(const Vec3f & color) const;
void emissionNebulaeColorChanged(const Vec3f & color) const; void emissionNebulaeColorChanged(const Vec3f & color) const;
void possiblePlanetaryNebulaeColorChanged(const Vec3f & color) const ; void possiblePlanetaryNebulaeColorChanged(const Vec3f & color) const ;
void protoplanetaryNebulaeColorChanged(const Vec3f & color) const; void protoplanetaryNebulaeColorChanged(const Vec3f & color) const;
void clusterWithNebulosityColorChanged(const Vec3f & color) const; void clusterWithNebulosityColorChanged(const Vec3f & color) const;
void hydrogenRegionsColorChanged(const Vec3f & color) const; void hydrogenRegionsColorChanged(const Vec3f & color) const;
void interstellarMatterColorChanged(const Vec3f & color) const; void interstellarMatterColorChanged(const Vec3f & color) const;
void emissionObjectsColorChanged(const Vec3f & color) const; void emissionObjectsColorChanged(const Vec3f & color) const;
void molecularCloudsColorChanged(const Vec3f & color) const; void molecularCloudsColorChanged(const Vec3f & color) const;
void blLacObjectsColorChanged(const Vec3f & color) const; void blLacObjectsColorChanged(const Vec3f & color) const;
void blazarsColorChanged(const Vec3f & color) const; void blazarsColorChanged(const Vec3f & color) const;
void youngStellarObjectsColorChanged(const Vec3f & color) const; void youngStellarObjectsColorChanged(const Vec3f & color) const;
void supernovaRemnantsColorChanged(const Vec3f & color) const; void supernovaRemnantsColorChanged(const Vec3f & color) const;
void supernovaCandidatesColorChanged(const Vec3f & color) const;
void supernovaRemnantCandidatesColorChanged(const Vec3f & color) con
st;
void galaxyClustersColorChanged(const Vec3f & color) const;
private slots: private slots:
//! Update i18 names from English names according to passed translat or. //! Update i18 names from English names according to passed translat or.
//! The translation is done using gettext with translated strings de fined //! The translation is done using gettext with translated strings de fined
//! in translations.h //! in translations.h
void updateI18n(); void updateI18n();
//! Called when the sky culture is updated. //! Called when the sky culture is updated.
//! Loads native names of deep-sky objects for a given sky culture. //! Loads native names of deep-sky objects for a given sky culture.
//! @param skyCultureDir the name of the directory containing the sk y culture to use. //! @param skyCultureDir the name of the directory containing the sk y culture to use.
void updateSkyCulture(const QString& skyCultureDir); void updateSkyCulture(const QString& skyCultureDir);
//! Called when the filter of DSO is updated.
//! Loads native names of deep-sky objects for a current sky culture
.
void updateDSONames();
private: private:
//! Search for a nebula object by name. e.g. M83, NGC 1123, IC 1234. //! Search for a nebula object by name. e.g. M83, NGC 1123, IC 1234.
NebulaP search(const QString& name); NebulaP search(const QString& name);
//! Search the Nebulae by position //! Search the Nebulae by position
NebulaP search(const Vec3d& pos); NebulaP search(const Vec3d& pos);
//! Load a set of nebula images. //! Load a set of nebula images.
//! Each sub-directory of the INSTALLDIR/nebulae directory contains a set of //! Each sub-directory of the INSTALLDIR/nebulae directory contains a set of
skipping to change at line 817 skipping to change at line 913
NebulaP searchLDN(unsigned int LDN); NebulaP searchLDN(unsigned int LDN);
NebulaP searchLBN(unsigned int LBN); NebulaP searchLBN(unsigned int LBN);
NebulaP searchCr(unsigned int Cr); NebulaP searchCr(unsigned int Cr);
NebulaP searchMel(unsigned int Mel); NebulaP searchMel(unsigned int Mel);
NebulaP searchPGC(unsigned int PGC); NebulaP searchPGC(unsigned int PGC);
NebulaP searchUGC(unsigned int UGC); NebulaP searchUGC(unsigned int UGC);
NebulaP searchCed(QString Ced); NebulaP searchCed(QString Ced);
NebulaP searchArp(unsigned int Arp); NebulaP searchArp(unsigned int Arp);
NebulaP searchVV(unsigned int VV); NebulaP searchVV(unsigned int VV);
NebulaP searchPK(QString PK); NebulaP searchPK(QString PK);
NebulaP searchPNG(QString PNG);
NebulaP searchSNRG(QString SNRG);
NebulaP searchACO(QString ACO);
// Load catalog of DSO // Load catalog of DSO
bool loadDSOCatalog(const QString& filename); bool loadDSOCatalog(const QString& filename);
void convertDSOCatalog(const QString& in, const QString& out, bool d ecimal); void convertDSOCatalog(const QString& in, const QString& out, bool d ecimal);
// Load proper names for DSO // Load proper names for DSO
bool loadDSONames(const QString& filename); bool loadDSONames(const QString& filename);
// Load outlines for DSO
bool loadDSOOutlines(const QString& filename);
QVector<NebulaP> dsoArray; // The DSO list QVector<NebulaP> dsoArray; // The DSO list
QHash<unsigned int, NebulaP> dsoIndex; QHash<unsigned int, NebulaP> dsoIndex;
LinearFader hintsFader; LinearFader hintsFader;
LinearFader flagShow; LinearFader flagShow;
//! The internal grid for fast positional lookup //! The internal grid for fast positional lookup
StelSphericalIndex nebGrid; StelSphericalIndex nebGrid;
skipping to change at line 846 skipping to change at line 947
double labelsAmount; double labelsAmount;
//! The selection pointer texture //! The selection pointer texture
StelTextureSP texPointer; StelTextureSP texPointer;
QFont nebulaFont; // Font used for names printing QFont nebulaFont; // Font used for names printing
// For DSO convertor // For DSO convertor
bool flagConverter; bool flagConverter;
bool flagDecimalCoordinates; bool flagDecimalCoordinates;
bool flagReloading;
}; };
#endif // _NEBULAMGR_HPP_ #endif // _NEBULAMGR_HPP_
 End of changes. 17 change blocks. 
9 lines changed or deleted 114 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/