NebulaMgr.hpp   NebulaMgr.hpp 
skipping to change at line 96 skipping to change at line 96
Q_PROPERTY(double hintsAmount Q_PROPERTY(double hintsAmount
READ getHintsAmount READ getHintsAmount
WRITE setHintsAmount WRITE setHintsAmount
NOTIFY hintsAmountChanged NOTIFY hintsAmountChanged
) )
Q_PROPERTY(bool flagDesignationLabels Q_PROPERTY(bool flagDesignationLabels
READ getDesignationUsage READ getDesignationUsage
WRITE setDesignationUsage WRITE setDesignationUsage
NOTIFY designationUsageChanged NOTIFY designationUsageChanged
) )
// Colors
Q_PROPERTY(Vec3f labelsColor
READ getLabelsColor
WRITE setLabelsColor
NOTIFY labelsColorChanged
)
Q_PROPERTY(Vec3f circlesColor
READ getCirclesColor
WRITE setCirclesColor
NOTIFY circlesColorChanged
)
Q_PROPERTY(Vec3f galaxiesColor
READ getGalaxyColor
WRITE setGalaxyColor
NOTIFY galaxiesColorChanged
)
Q_PROPERTY(Vec3f activeGalaxiesColor
READ getActiveGalaxyColor
WRITE setActiveGalaxyColor
NOTIFY activeGalaxiesColorChanged
)
Q_PROPERTY(Vec3f radioGalaxiesColor
READ getRadioGalaxyColor
WRITE setRadioGalaxyColor
NOTIFY radioGalaxiesColorChanged
)
Q_PROPERTY(Vec3f interactingGalaxiesColor
READ getInteractingGalaxyColor
WRITE setInteractingGalaxyColor
NOTIFY interactingGalaxiesColorChanged
)
Q_PROPERTY(Vec3f quasarsColor
READ getQuasarColor
WRITE setQuasarColor
NOTIFY quasarsColorChanged
)
Q_PROPERTY(Vec3f possibleQuasarsColor
READ getPossibleQuasarColor
WRITE setPossibleQuasarColor
NOTIFY possibleQuasarsColorChanged
)
Q_PROPERTY(Vec3f clustersColor
READ getClusterColor
WRITE setClusterColor
NOTIFY clustersColorChanged
)
Q_PROPERTY(Vec3f openClustersColor
READ getOpenClusterColor
WRITE setOpenClusterColor
NOTIFY openClustersColorChanged
)
Q_PROPERTY(Vec3f globularClustersColor
READ getGlobularClusterColor
WRITE setGlobularClusterColor
NOTIFY globularClustersColorChanged
)
Q_PROPERTY(Vec3f stellarAssociationsColor
READ getStellarAssociationColor
WRITE setStellarAssociationColor
NOTIFY stellarAssociationsColorChanged
)
Q_PROPERTY(Vec3f starCloudsColor
READ getStarCloudColor
WRITE setStarCloudColor
NOTIFY starCloudsColorChanged
)
Q_PROPERTY(Vec3f starsColor
READ getStarColor
WRITE setStarColor
NOTIFY starsColorChanged
)
Q_PROPERTY(Vec3f nebulaeColor
READ getNebulaColor
WRITE setNebulaColor
NOTIFY nebulaeColorChanged
)
Q_PROPERTY(Vec3f planetaryNebulaeColor
READ getPlanetaryNebulaColor
WRITE setPlanetaryNebulaColor
NOTIFY planetaryNebulaeColorChanged
)
Q_PROPERTY(Vec3f darkNebulaeColor
READ getDarkNebulaColor
WRITE setDarkNebulaColor
NOTIFY darkNebulaeColorChanged
)
Q_PROPERTY(Vec3f reflectionNebulaeColor
READ getReflectionNebulaColor
WRITE setReflectionNebulaColor
NOTIFY reflectionNebulaeColorChanged
)
Q_PROPERTY(Vec3f bipolarNebulaeColor
READ getBipolarNebulaColor
WRITE setBipolarNebulaColor
NOTIFY bipolarNebulaeColorChanged
)
Q_PROPERTY(Vec3f emissionNebulaeColor
READ getEmissionNebulaColor
WRITE setEmissionNebulaColor
NOTIFY emissionNebulaeColorChanged
)
Q_PROPERTY(Vec3f possiblePlanetaryNebulaeColor
READ getPossiblePlanetaryNebulaColor
WRITE setPossiblePlanetaryNebulaColor
NOTIFY possiblePlanetaryNebulaeColorChanged
)
Q_PROPERTY(Vec3f protoplanetaryNebulaeColor
READ getProtoplanetaryNebulaColor
WRITE setProtoplanetaryNebulaColor
NOTIFY protoplanetaryNebulaeColorChanged
)
Q_PROPERTY(Vec3f clusterWithNebulosityColor
READ getClusterWithNebulosityColor
WRITE setClusterWithNebulosityColor
NOTIFY clusterWithNebulosityColorChanged
)
Q_PROPERTY(Vec3f hydrogenRegionsColor
READ getHydrogenRegionColor
WRITE setHydrogenRegionColor
NOTIFY hydrogenRegionsColorChanged
)
Q_PROPERTY(Vec3f interstellarMatterColor
READ getInterstellarMatterColor
WRITE setInterstellarMatterColor
NOTIFY interstellarMatterColorChanged
)
Q_PROPERTY(Vec3f emissionObjectsColor
READ getEmissionObjectColor
WRITE setEmissionObjectColor
NOTIFY emissionObjectsColorChanged
)
Q_PROPERTY(Vec3f molecularCloudsColor
READ getMolecularCloudColor
WRITE setMolecularCloudColor
NOTIFY molecularCloudsColorChanged
)
Q_PROPERTY(Vec3f blLacObjectsColor
READ getBlLacObjectColor
WRITE setBlLacObjectColor
NOTIFY blLacObjectsColorChanged
)
Q_PROPERTY(Vec3f blazarsColor
READ getBlazarColor
WRITE setBlazarColor
NOTIFY blazarsColorChanged
)
Q_PROPERTY(Vec3f youngStellarObjectsColor
READ getYoungStellarObjectColor
WRITE setYoungStellarObjectColor
NOTIFY youngStellarObjectsColorChanged
)
Q_PROPERTY(Vec3f supernovaRemnantsColor
READ getSupernovaRemnantColor
WRITE setSupernovaRemnantColor
NOTIFY supernovaRemnantsColorChanged
)
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
//! those with no individual texture). //! those with no individual texture).
skipping to change at line 159 skipping to change at line 316
//! 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); 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 the bodies of the solar system.
const QVector<NebulaP>& getAllDeepSkyObjects() const { return dsoArr
ay; }
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Properties setters and getters // Properties setters and getters
public slots: public slots:
void setCatalogFilters(Nebula::CatalogGroup cflags); void setCatalogFilters(Nebula::CatalogGroup cflags);
Nebula::CatalogGroup getCatalogFilters() const { return Nebula::cata logFilters; } Nebula::CatalogGroup getCatalogFilters() const { return Nebula::cata logFilters; }
void setTypeFilters(Nebula::TypeGroup tflags); void setTypeFilters(Nebula::TypeGroup tflags);
Nebula::TypeGroup getTypeFilters() const { return Nebula::typeFilter s; } Nebula::TypeGroup getTypeFilters() const { return Nebula::typeFilter s; }
//! Set the default color used to draw the nebula symbols (default c ircles, etc). //! Set the default color used to draw the nebula symbols (default c ircles, etc).
//! @param c The color of the nebula symbols //! @param c The color of the nebula symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setCirclesColor(Vec3f(0.6,0.8,0.0)); //! NebulaMgr.setCirclesColor(Vec3f(0.6,0.8,0.0));
//! @endcode //! @endcode
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 the color used to draw the galaxy symbols (ellipses). //! Set the color used to draw the galaxy symbols (ellipses).
//! @param c The color of the galaxy symbols //! @param c The color of the galaxy symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setGalaxyColor(Vec3f(1.0,0.0,0.0)); //! NebulaMgr.setGalaxyColor(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setGalaxyColor(const Vec3f& c); void setGalaxyColor(const Vec3f& c);
//! Get current value of the galaxy symbol color. //! Get current value of the galaxy symbol color.
const Vec3f& getGalaxyColor(void) const; const Vec3f getGalaxyColor(void) const;
//! Set the color used to draw the active galaxy symbols (ellipses). //! Set the color used to draw the active galaxy symbols (ellipses).
//! @param c The color of the active galaxy symbols //! @param c The color of the active galaxy symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setActiveGalaxyColor(Vec3f(1.0,0.0,0.0)); //! NebulaMgr.setActiveGalaxyColor(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setActiveGalaxyColor(const Vec3f& c); void setActiveGalaxyColor(const Vec3f& c);
//! Get current value of the active galaxy symbol color. //! Get current value of the active galaxy symbol color.
const Vec3f& getActiveGalaxyColor(void) const; const Vec3f getActiveGalaxyColor(void) const;
//! Set the color used to draw the interacting galaxy symbols (ellip ses). //! Set the color used to draw the interacting galaxy symbols (ellip ses).
//! @param c The color of the interacting galaxy symbols //! @param c The color of the interacting galaxy symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setInteractingGalaxyColor(Vec3f(1.0,0.0,0.0)); //! NebulaMgr.setInteractingGalaxyColor(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setInteractingGalaxyColor(const Vec3f& c); void setInteractingGalaxyColor(const Vec3f& c);
//! Get current value of the interacting galaxy symbol color. //! Get current value of the interacting galaxy symbol color.
const Vec3f& getInteractingGalaxyColor(void) const; const Vec3f getInteractingGalaxyColor(void) const;
//! Set the color used to draw the radio galaxy symbols (ellipses). //! Set the color used to draw the radio galaxy symbols (ellipses).
//! @param c The color of the radio galaxy symbols //! @param c The color of the radio galaxy symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setRadioGalaxyColor(Vec3f(1.0,0.0,0.0)); //! NebulaMgr.setRadioGalaxyColor(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setRadioGalaxyColor(const Vec3f& c); void setRadioGalaxyColor(const Vec3f& c);
//! Get current value of the radio galaxy symbol color. //! Get current value of the radio galaxy symbol color.
const Vec3f& getRadioGalaxyColor(void) const; const Vec3f getRadioGalaxyColor(void) const;
//! Set the color used to draw the quasars symbols (ellipses). //! Set the color used to draw the quasars symbols (ellipses).
//! @param c The color of the quasars symbols //! @param c The color of the quasars symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setQuasarColor(Vec3f(1.0,0.0,0.0)); //! NebulaMgr.setQuasarColor(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setQuasarColor(const Vec3f& c); void setQuasarColor(const Vec3f& c);
//! Get current value of the quasar symbol color. //! Get current value of the quasar symbol color.
const Vec3f& getQuasarColor(void) const; const Vec3f getQuasarColor(void) const;
//! Set the color used to draw the bright nebula symbols (emission n ebula boxes, planetary nebulae circles). //! Set the color used to draw the bright nebula symbols (emission n ebula boxes, planetary nebulae circles).
//! @param c The color of the nebula symbols //! @param c The color of the nebula symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setBrightNebulaColor(Vec3f(0.0,1.0,0.0)); //! NebulaMgr.setBrightNebulaColor(Vec3f(0.0,1.0,0.0));
//! @endcode //! @endcode
//! @deprecated //! @deprecated
void setBrightNebulaColor(const Vec3f& c); void setBrightNebulaColor(const Vec3f& c);
//! Get current value of the nebula circle color. //! Get current value of the nebula circle color.
//! @deprecated //! @deprecated
const Vec3f& getBrightNebulaColor(void) const; const Vec3f getBrightNebulaColor(void) const;
//! Set the color used to draw the bright nebula symbols (emission n ebula boxes, planetary nebulae circles). //! Set the color used to draw the bright nebula symbols (emission n ebula boxes, planetary nebulae circles).
//! @param c The color of the nebula symbols //! @param c The color of the nebula symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setNebulaColor(Vec3f(0.0,1.0,0.0)); //! NebulaMgr.setNebulaColor(Vec3f(0.0,1.0,0.0));
//! @endcode //! @endcode
void setNebulaColor(const Vec3f& c); void setNebulaColor(const Vec3f& c);
//! Get current value of the nebula circle color. //! Get current value of the nebula circle color.
const Vec3f& getNebulaColor(void) const; const Vec3f getNebulaColor(void) const;
//! Set the color used to draw the planetary nebulae symbols. //! Set the color used to draw the planetary nebulae symbols.
//! @param c The color of the planetary nebulae symbols //! @param c The color of the planetary nebulae symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setPlanetaryNebulaColor(Vec3f(0.0,1.0,0.0)); //! NebulaMgr.setPlanetaryNebulaColor(Vec3f(0.0,1.0,0.0));
//! @endcode //! @endcode
void setPlanetaryNebulaColor(const Vec3f& c); void setPlanetaryNebulaColor(const Vec3f& c);
//! Get current value of the planetary nebula circle color. //! Get current value of the planetary nebula circle color.
const Vec3f& getPlanetaryNebulaColor(void) const; const Vec3f getPlanetaryNebulaColor(void) const;
//! Set the color used to draw the reflection nebulae symbols. //! Set the color used to draw the reflection nebulae symbols.
//! @param c The color of the reflection nebulae symbols //! @param c The color of the reflection nebulae symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setReflectionNebulaColor(Vec3f(0.0,1.0,0.0)); //! NebulaMgr.setReflectionNebulaColor(Vec3f(0.0,1.0,0.0));
//! @endcode //! @endcode
void setReflectionNebulaColor(const Vec3f& c); void setReflectionNebulaColor(const Vec3f& c);
//! Get current value of the reflection nebula circle color. //! Get current value of the reflection nebula circle color.
const Vec3f& getReflectionNebulaColor(void) const; const Vec3f getReflectionNebulaColor(void) const;
//! Set the color used to draw the bipolar nebulae symbols. //! Set the color used to draw the bipolar nebulae symbols.
//! @param c The color of the bipolar nebulae symbols //! @param c The color of the bipolar nebulae symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setBipolarNebulaColor(Vec3f(0.0,1.0,0.0)); //! NebulaMgr.setBipolarNebulaColor(Vec3f(0.0,1.0,0.0));
//! @endcode //! @endcode
void setBipolarNebulaColor(const Vec3f& c); void setBipolarNebulaColor(const Vec3f& c);
//! Get current value of the bipolar nebula circle color. //! Get current value of the bipolar nebula circle color.
const Vec3f& getBipolarNebulaColor(void) const; const Vec3f getBipolarNebulaColor(void) const;
//! Set the color used to draw the emission nebulae symbols. //! Set the color used to draw the emission nebulae symbols.
//! @param c The color of the emission nebulae symbols //! @param c The color of the emission nebulae symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setEmissionNebulaColor(Vec3f(0.0,1.0,0.0)); //! NebulaMgr.setEmissionNebulaColor(Vec3f(0.0,1.0,0.0));
//! @endcode //! @endcode
void setEmissionNebulaColor(const Vec3f& c); void setEmissionNebulaColor(const Vec3f& c);
//! Get current value of the emission nebula circle color. //! Get current value of the emission nebula circle color.
const Vec3f& getEmissionNebulaColor(void) const; const Vec3f getEmissionNebulaColor(void) const;
//! Set the color used to draw the ionized hydrogen region symbols. //! Set the color used to draw the ionized hydrogen region symbols.
//! @param c The color of the ionized hydrogen region symbols //! @param c The color of the ionized hydrogen region symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setHydrogenRegionColor(Vec3f(0.0,1.0,0.0)); //! NebulaMgr.setHydrogenRegionColor(Vec3f(0.0,1.0,0.0));
//! @endcode //! @endcode
void setHydrogenRegionColor(const Vec3f& c); void setHydrogenRegionColor(const Vec3f& c);
//! Get current value of the hydrogen region symbol color. //! Get current value of the hydrogen region symbol color.
const Vec3f& getHydrogenRegionColor(void) const; const Vec3f getHydrogenRegionColor(void) const;
//! 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 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;
//! Set the color used to draw the dark nebula symbols (gray boxes). //! Set the color used to draw the dark nebula symbols (gray boxes).
//! @param c The color of the dark nebula symbols //! @param c The color of the dark nebula symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setDarkNebulaColor(Vec3f(0.2,0.2,0.2)); //! NebulaMgr.setDarkNebulaColor(Vec3f(0.2,0.2,0.2));
//! @endcode //! @endcode
void setDarkNebulaColor(const Vec3f& c); void setDarkNebulaColor(const Vec3f& c);
//! Get current value of the dark nebula color. //! Get current value of the dark nebula color.
const Vec3f& getDarkNebulaColor(void) const; const Vec3f getDarkNebulaColor(void) const;
//! Set the color used to draw the cluster associated with nebulosit y symbols. //! Set the color used to draw the cluster associated with nebulosit y symbols.
//! @param c The color of the cluster associated with nebulosity sym bols //! @param c The color of the cluster associated with nebulosity sym bols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setClusterWithNebulosityColor(Vec3f(0.2,0.2,0.2)); //! NebulaMgr.setClusterWithNebulosityColor(Vec3f(0.2,0.2,0.2));
//! @endcode //! @endcode
void setClusterWithNebulosityColor(const Vec3f& c); void setClusterWithNebulosityColor(const Vec3f& c);
//! Get current value of the cluster associated with nebulosity colo r. //! Get current value of the cluster associated with nebulosity colo r.
const Vec3f& getClusterWithNebulosityColor(void) const; const Vec3f getClusterWithNebulosityColor(void) const;
//! Set the color used to draw the star cluster symbols (Open/Globul ar). //! Set the color used to draw the star cluster symbols (Open/Globul ar).
//! @param c The color of the cluster symbols //! @param c The color of the cluster symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setClusterColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setClusterColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setClusterColor(const Vec3f& c); void setClusterColor(const Vec3f& c);
//! Get current value of the star cluster symbol color. //! Get current value of the star cluster symbol color.
const Vec3f& getClusterColor(void) const; const Vec3f getClusterColor(void) const;
//! Set the color used to draw the open star cluster symbols. //! Set the color used to draw the open star cluster symbols.
//! @param c The color of the open star cluster symbols //! @param c The color of the open star cluster symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setOpenClusterColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setOpenClusterColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setOpenClusterColor(const Vec3f& c); void setOpenClusterColor(const Vec3f& c);
//! Get current value of the open star cluster symbol color. //! Get current value of the open star cluster symbol color.
const Vec3f& getOpenClusterColor(void) const; const Vec3f getOpenClusterColor(void) const;
//! Set the color used to draw the globular star cluster symbols. //! Set the color used to draw the globular star cluster symbols.
//! @param c The color of the globular star cluster symbols //! @param c The color of the globular star cluster symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setGlobularClusterColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setGlobularClusterColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setGlobularClusterColor(const Vec3f& c); void setGlobularClusterColor(const Vec3f& c);
//! Get current value of the globular star cluster symbol color. //! Get current value of the globular star cluster symbol color.
const Vec3f& getGlobularClusterColor(void) const; const Vec3f getGlobularClusterColor(void) const;
//! Set the color used to draw the stellar associations symbols. //! Set the color used to draw the stellar associations symbols.
//! @param c The color of the stellar associations symbols //! @param c The color of the stellar associations symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setStellarAssociationColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setStellarAssociationColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setStellarAssociationColor(const Vec3f& c); void setStellarAssociationColor(const Vec3f& c);
//! Get current value of the stellar association symbol color. //! Get current value of the stellar association symbol color.
const Vec3f& getStellarAssociationColor(void) const; const Vec3f getStellarAssociationColor(void) const;
//! Set the color used to draw the star clouds symbols. //! Set the color used to draw the star clouds symbols.
//! @param c The color of the star clouds symbols //! @param c The color of the star clouds symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setStarCloudColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setStarCloudColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setStarCloudColor(const Vec3f& c); void setStarCloudColor(const Vec3f& c);
//! Get current value of the star cloud symbol color. //! Get current value of the star cloud symbol color.
const Vec3f& getStarCloudColor(void) const; const Vec3f getStarCloudColor(void) const;
//! Set the color used to draw the emission objects symbols. //! Set the color used to draw the emission objects symbols.
//! @param c The color of the emission objects symbols //! @param c The color of the emission objects symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setEmissionObjectColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setEmissionObjectColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setEmissionObjectColor(const Vec3f& c); void setEmissionObjectColor(const Vec3f& c);
//! Get current value of the emission object symbol color. //! Get current value of the emission object symbol color.
const Vec3f& getEmissionObjectColor(void) const; const Vec3f getEmissionObjectColor(void) const;
//! Set the color used to draw the BL Lac objects symbols. //! Set the color used to draw the BL Lac objects symbols.
//! @param c The color of the BL Lac objects symbols //! @param c The color of the BL Lac objects symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setBlLacObjectColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setBlLacObjectColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setBlLacObjectColor(const Vec3f& c); void setBlLacObjectColor(const Vec3f& c);
//! Get current value of the BL Lac object symbol color. //! Get current value of the BL Lac object symbol color.
const Vec3f& getBlLacObjectColor(void) const; const Vec3f getBlLacObjectColor(void) const;
//! Set the color used to draw the blazars symbols. //! Set the color used to draw the blazars symbols.
//! @param c The color of the blazars symbols //! @param c The color of the blazars symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setBlazarColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setBlazarColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setBlazarColor(const Vec3f& c); void setBlazarColor(const Vec3f& c);
//! Get current value of the blazar symbol color. //! Get current value of the blazar symbol color.
const Vec3f& getBlazarColor(void) const; const Vec3f getBlazarColor(void) const;
//! Set the color used to draw the molecular clouds symbols. //! Set the color used to draw the molecular clouds symbols.
//! @param c The color of the molecular clouds symbols //! @param c The color of the molecular clouds symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setMolecularCloudColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setMolecularCloudColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setMolecularCloudColor(const Vec3f& c); void setMolecularCloudColor(const Vec3f& c);
//! Get current value of the molecular cloud symbol color. //! Get current value of the molecular cloud symbol color.
const Vec3f& getMolecularCloudColor(void) const; const Vec3f getMolecularCloudColor(void) const;
//! Set the color used to draw the young stellar objects symbols. //! Set the color used to draw the young stellar objects symbols.
//! @param c The color of the young stellar objects symbols //! @param c The color of the young stellar objects symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setYoungStellarObjectColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setYoungStellarObjectColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setYoungStellarObjectColor(const Vec3f& c); void setYoungStellarObjectColor(const Vec3f& c);
//! Get current value of the young stellar object symbol color. //! Get current value of the young stellar object symbol color.
const Vec3f& getYoungStellarObjectColor(void) const; const Vec3f getYoungStellarObjectColor(void) const;
//! Set the color used to draw the possible quasars symbols. //! Set the color used to draw the possible quasars symbols.
//! @param c The color of the possible quasars symbols //! @param c The color of the possible quasars symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setPossibleQuasarColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setPossibleQuasarColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setPossibleQuasarColor(const Vec3f& c); void setPossibleQuasarColor(const Vec3f& c);
//! Get current value of the possible quasar symbol color. //! Get current value of the possible quasar symbol color.
const Vec3f& getPossibleQuasarColor(void) const; const Vec3f getPossibleQuasarColor(void) const;
//! Set the color used to draw the possible planetary nebulae symbol s. //! Set the color used to draw the possible planetary nebulae symbol s.
//! @param c The color of the possible planetary nebulae symbols //! @param c The color of the possible planetary nebulae symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setPossiblePlanetaryNebulaColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setPossiblePlanetaryNebulaColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setPossiblePlanetaryNebulaColor(const Vec3f& c); void setPossiblePlanetaryNebulaColor(const Vec3f& c);
//! Get current value of the possible planetary nebula symbol color. //! Get current value of the possible planetary nebula symbol color.
const Vec3f& getPossiblePlanetaryNebulaColor(void) const; const Vec3f getPossiblePlanetaryNebulaColor(void) const;
//! Set the color used to draw the protoplanetary nebulae symbols. //! Set the color used to draw the protoplanetary nebulae symbols.
//! @param c The color of the protoplanetary nebulae symbols //! @param c The color of the protoplanetary nebulae symbols
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setProtoplanetaryNebulaColor(Vec3f(1.0,1.0,0.0)); //! NebulaMgr.setProtoplanetaryNebulaColor(Vec3f(1.0,1.0,0.0));
//! @endcode //! @endcode
void setProtoplanetaryNebulaColor(const Vec3f& c); void setProtoplanetaryNebulaColor(const Vec3f& c);
//! Get current value of the protoplanetary nebula symbol color. //! Get current value of the protoplanetary nebula symbol color.
const Vec3f& getProtoplanetaryNebulaColor(void) const; const Vec3f getProtoplanetaryNebulaColor(void) const;
//! 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 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;}
skipping to change at line 522 skipping to change at line 682
bool getFlagUseTypeFilters(void) const { return Nebula::flagUseTypeF ilters; } bool getFlagUseTypeFilters(void) const { return Nebula::flagUseTypeF ilters; }
//! Set the color used to draw nebula labels. //! Set the color used to draw nebula labels.
//! @param c The color of the nebula labels //! @param c The color of the nebula labels
//! @code //! @code
//! // example of usage in scripts //! // example of usage in scripts
//! NebulaMgr.setLabelsColor(Vec3f(1.0,0.0,0.0)); //! NebulaMgr.setLabelsColor(Vec3f(1.0,0.0,0.0));
//! @endcode //! @endcode
void setLabelsColor(const Vec3f& c); void setLabelsColor(const Vec3f& c);
//! Get current value of the nebula label color. //! Get current value of the nebula label color.
const Vec3f& getLabelsColor(void) const; const Vec3f getLabelsColor(void) const;
//! Set the amount of nebulae labels. The real amount is also propor tional with FOV. //! Set the amount of nebulae labels. The real amount is also propor tional with FOV.
//! The limit is set in function of the nebulae magnitude //! The limit is set in function of the nebulae magnitude
//! @param a the amount between 0 and 10. 0 is no labels, 10 is maxi mum of labels //! @param a the amount between 0 and 10. 0 is no labels, 10 is maxi mum of labels
void setLabelsAmount(double a) {if(a!=labelsAmount){labelsAmount=a; emit labelsAmountChanged(a);}} void setLabelsAmount(double a) {if(a!=labelsAmount){labelsAmount=a; emit labelsAmountChanged(a);}}
//! Get the amount of nebulae labels. The real amount is also propor tional with FOV. //! Get the amount of nebulae labels. The real amount is also propor tional with FOV.
//! @return the amount between 0 and 10. 0 is no labels, 10 is maxim um of labels //! @return the amount between 0 and 10. 0 is no labels, 10 is maxim um of labels
double getLabelsAmount(void) const {return labelsAmount;} double getLabelsAmount(void) const {return labelsAmount;}
//! Set the amount of nebulae hints. The real amount is also proport ional with FOV. //! Set the amount of nebulae hints. The real amount is also proport ional with FOV.
//! The limit is set in function of the nebulae magnitude //! The limit is set in function of the nebulae magnitude
//! @param f the amount between 0 and 10. 0 is no hints, 10 is maxim um of hints //! @param f the amount between 0 and 10. 0 is no hints, 10 is maxim um of hints
void setHintsAmount(double f) {if(hintsAmount!=f){hintsAmount = f; e mit hintsAmountChanged(f);}} void setHintsAmount(double f) {if(hintsAmount!=f){hintsAmount = f; e mit hintsAmountChanged(f);}}
//! Get the amount of nebulae labels. The real amount is also propor tional with FOV. //! Get the amount of nebulae labels. The real amount is also propor tional with FOV.
//! @return the amount between 0 and 10. 0 is no hints, 10 is maximu m of hints //! @return the amount between 0 and 10. 0 is no hints, 10 is maximu m of hints
double getHintsAmount(void) const {return hintsAmount;} double getHintsAmount(void) const {return hintsAmount;}
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 designationUsageChanged(bool b); void designationUsageChanged(bool b);
void flagSurfaceBrightnessUsageChanged(bool b); void flagSurfaceBrightnessUsageChanged(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 circlesColorChanged(const Vec3f & color) const;
void galaxiesColorChanged(const Vec3f & color) const;
void activeGalaxiesColorChanged(const Vec3f & color) const;
void radioGalaxiesColorChanged(const Vec3f & color) const;
void interactingGalaxiesColorChanged(const Vec3f & color) const;
void quasarsColorChanged(const Vec3f & color) const;
void possibleQuasarsColorChanged(const Vec3f & color) const;
void clustersColorChanged(const Vec3f & color) const;
void openClustersColorChanged(const Vec3f & color) const;
void globularClustersColorChanged(const Vec3f & color) const;
void stellarAssociationsColorChanged(const Vec3f & color) const;
void starCloudsColorChanged(const Vec3f & color) const;
void starsColorChanged(const Vec3f & color) const;
void nebulaeColorChanged(const Vec3f & color) const;
void planetaryNebulaeColorChanged(const Vec3f & color) const;
void darkNebulaeColorChanged(const Vec3f & color) const;
void reflectionNebulaeColorChanged(const Vec3f & color) const;
void bipolarNebulaeColorChanged(const Vec3f & color) const;
void emissionNebulaeColorChanged(const Vec3f & color) const;
void possiblePlanetaryNebulaeColorChanged(const Vec3f & color) const
;
void protoplanetaryNebulaeColorChanged(const Vec3f & color) const;
void clusterWithNebulosityColorChanged(const Vec3f & color) const;
void hydrogenRegionsColorChanged(const Vec3f & color) const;
void interstellarMatterColorChanged(const Vec3f & color) const;
void emissionObjectsColorChanged(const Vec3f & color) const;
void molecularCloudsColorChanged(const Vec3f & color) const;
void blLacObjectsColorChanged(const Vec3f & color) const;
void blazarsColorChanged(const Vec3f & color) const;
void youngStellarObjectsColorChanged(const Vec3f & color) const;
void supernovaRemnantsColorChanged(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.
//! 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.
void updateSkyCulture(const QString& skyCultureDir);
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
 End of changes. 37 change blocks. 
32 lines changed or deleted 233 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/