Nebula.hpp   Nebula.hpp 
skipping to change at line 25 skipping to change at line 25
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* 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 _NEBULA_HPP_ #ifndef _NEBULA_HPP_
#define _NEBULA_HPP_ #define _NEBULA_HPP_
#include <QString> #include <QString>
#include "StelObject.hpp" #include "StelObject.hpp"
#include "Projector.hpp" #include "StelTranslator.hpp"
#include "Navigator.hpp" #include "StelTextureTypes.hpp"
#include "StelCore.hpp"
#include "Translator.hpp"
#include "STextureTypes.hpp"
class SFont; class StelFont;
class StelPainter;
class Nebula : public StelObject class Nebula : public StelObject
{ {
friend class NebulaMgr; friend class NebulaMgr;
public: public:
Nebula(); Nebula();
~Nebula(); ~Nebula();
//! Nebula support the following InfoStringGroup flags: //! Nebula support the following InfoStringGroup flags:
//! - Name //! - Name
skipping to change at line 55 skipping to change at line 53
//! - AltAzi //! - AltAzi
//! - Distance //! - Distance
//! - Size //! - Size
//! - Extra1 (contains the Nebula type, which might be "Galaxy", "Cl uster" or similar) //! - Extra1 (contains the Nebula type, which might be "Galaxy", "Cl uster" or similar)
//! - PlainText //! - PlainText
//! @param core the Stelore object //! @param core the Stelore object
//! @param flags a set of InfoStringGroup items to include in the re turn value. //! @param flags a set of InfoStringGroup items to include in the re turn value.
//! @return a QString containing an HMTL encoded description of the Nebula. //! @return a QString containing an HMTL encoded description of the Nebula.
virtual QString getInfoString(const StelCore *core, const InfoString Group& flags) const; virtual QString getInfoString(const StelCore *core, const InfoString Group& flags) const;
virtual QString getType(void) const {return "Nebula";} virtual QString getType(void) const {return "Nebula";}
virtual Vec3d getObsJ2000Pos(const Navigator *nav) const {return XYZ virtual Vec3d getJ2000EquatorialPos(const StelNavigator *nav) const
;} {return XYZ;}
virtual double getCloseViewFov(const Navigator * nav = NULL) const; virtual double getCloseViewFov(const StelNavigator * nav = NULL) con
virtual float getVMagnitude(const Navigator * nav = NULL) const {ret st;
urn mag;} virtual float getVMagnitude(const StelNavigator * nav = NULL) const
virtual float getSelectPriority(const Navigator *nav) const; {return mag;}
virtual float getSelectPriority(const StelNavigator *nav) const;
virtual Vec3f getInfoColor(void) const; virtual Vec3f getInfoColor(void) const;
virtual QString getNameI18n(void) const {return nameI18;} virtual QString getNameI18n(void) const {return nameI18;}
virtual QString getEnglishName(void) const {return englishName;} virtual QString getEnglishName(void) const {return englishName;}
virtual double getAngularSize(const StelCore *core) const {return an gularSize/2;} virtual double getAngularSize(const StelCore *core) const {return an gularSize/2;}
// Methods specific to Nebula // Methods specific to Nebula
void setLabelColor(const Vec3f& v) {labelColor = v;} void setLabelColor(const Vec3f& v) {labelColor = v;}
void setCircleColor(const Vec3f& v) {circleColor = v;} void setCircleColor(const Vec3f& v) {circleColor = v;}
//! Get the printable nebula Type. //! Get the printable nebula Type.
skipping to change at line 89 skipping to change at line 87
NebGc, //!< Globular star cluster, usually in the Milky Way Galaxy NebGc, //!< Globular star cluster, usually in the Milky Way Galaxy
NebN, //!< Bright emission or reflection nebula NebN, //!< Bright emission or reflection nebula
NebPn, //!< Planetary nebula NebPn, //!< Planetary nebula
NebDn, //!< ??? NebDn, //!< ???
NebIg, //!< ??? NebIg, //!< ???
NebCn, //!< Cluster associated with nebulosity NebCn, //!< Cluster associated with nebulosity
NebUnknown //!< Unknown type NebUnknown //!< Unknown type
}; };
//! Translate nebula name using the passed translator //! Translate nebula name using the passed translator
void translateName(Translator& trans) {nameI18 = trans.qtranslate(en glishName);} void translateName(StelTranslator& trans) {nameI18 = trans.qtranslat e(englishName);}
bool readNGC(char *record); bool readNGC(char *record);
void drawLabel(const StelCore* core, float maxMagLabel); void drawLabel(const StelCore* core, const StelPainter& sPainter, fl
void drawHints(const StelCore* core, float maxMagHints); oat maxMagLabel);
void drawHints(const StelPainter& sPainter, float maxMagHints);
unsigned int M_nb; // Messier Catalog number unsigned int M_nb; // Messier Catalog number
unsigned int NGC_nb; // New General Catalog number unsigned int NGC_nb; // New General Catalog number
unsigned int IC_nb; // Index Catalog number unsigned int IC_nb; // Index Catalog number
QString englishName; // English name QString englishName; // English name
QString nameI18; // Nebula name QString nameI18; // Nebula name
float mag; // Apparent magnitude float mag; // Apparent magnitude
float angularSize; // Angular size in degree float angularSize; // Angular size in degree
Vec3f XYZ; // Cartesian equatorial position Vec3f XYZ; // Cartesian equatorial position
Vec3d XY; // Store temporary 2D position Vec3d XY; // Store temporary 2D position
NebulaType nType; NebulaType nType;
static STextureSP texCircle; // The symbolic circle texture static StelTextureSP texCircle; // The symbolic circle texture
static SFont* nebulaFont; // Font used for names printing static StelFont* nebulaFont; // Font used for names printing
static float hintsBrightness; static float hintsBrightness;
static Vec3f labelColor, circleColor; static Vec3f labelColor, circleColor;
static float circleScale; // Define the scaling of the hints c ircle static float circleScale; // Define the scaling of the hints c ircle
}; };
#endif // _NEBULA_HPP_ #endif // _NEBULA_HPP_
 End of changes. 6 change blocks. 
17 lines changed or deleted 17 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/