NebulaMgr.hpp   NebulaMgr.hpp 
/* /*
* Stellarium * Stellarium
* Copyright (C) 2002 Fabien Chereau * Copyright (C) 2002 Fabien Chereau
* Copyright (C) 2011 Alexander Wolf
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 68 skipping to change at line 69
//! - Set flags values from ini parser which relate to nebula displ ay. //! - Set flags values from ini parser which relate to nebula displ ay.
//! - call updateI18n() to translate names. //! - call updateI18n() to translate names.
virtual void init(); virtual void init();
//! Draws all nebula objects. //! Draws all nebula objects.
virtual void draw(StelCore* core); virtual void draw(StelCore* core);
//! Update state which is time dependent. //! Update state which is time dependent.
virtual void update(double deltaTime) {hintsFader.update((int)(delta Time*1000)); flagShow.update((int)(deltaTime*1000));} virtual void update(double deltaTime) {hintsFader.update((int)(delta Time*1000)); flagShow.update((int)(deltaTime*1000));}
//! Update i18 names from English names according to passed translat
or.
//! The translation is done using gettext with translated strings de
fined
//! in translations.h
virtual void updateI18n();
//! Sets the colors of the Nebula labels and markers according to th
e
//! values in a configuration object
virtual void setStelStyle(const QString& section);
//! Determines the order in which the various modules are drawn. //! Determines the order in which the various modules are drawn.
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in StelObjectManager class // Methods defined in StelObjectManager class
//! Used to get a vector of objects which are near to some position. //! Used to get a vector of objects which are near to some position.
//! @param v a vector representing the position in th sky around whi ch to search for nebulae. //! @param v a vector representing the position in th sky around whi ch to search for nebulae.
//! @param limitFov the field of view around the position v in which to search for nebulae. //! @param limitFov the field of view around the position v in which to search for nebulae.
//! @param core the StelCore to use for computations. //! @param core the StelCore to use for computations.
//! @return an list containing the nebulae located inside the limitF ov circle around position v. //! @return an list containing the nebulae located inside the limitF ov circle around position v.
skipping to change at line 156 skipping to change at line 148
float getLabelsAmount(void) const {return labelsAmount;} float 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(float f) {hintsAmount = f;} void setHintsAmount(float f) {hintsAmount = 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
float getHintsAmount(void) const {return hintsAmount;} float getHintsAmount(void) const {return hintsAmount;}
private slots:
//! Sets the colors of the Nebula labels and markers according to th
e
//! values in a configuration object
void setStelStyle(const QString& section);
//! Update i18 names from English names according to passed translat
or.
//! The translation is done using gettext with translated strings de
fined
//! in translations.h
void updateI18n();
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
//! nebula textures. The sub-directory is the setName. Each set ha s its //! nebula textures. The sub-directory is the setName. Each set ha s its
 End of changes. 3 change blocks. 
12 lines changed or deleted 14 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/