Nebula.hpp   Nebula.hpp 
skipping to change at line 28 skipping to change at line 28
*/ */
#ifndef _NEBULA_HPP_ #ifndef _NEBULA_HPP_
#define _NEBULA_HPP_ #define _NEBULA_HPP_
#include <QString> #include <QString>
#include "StelObject.hpp" #include "StelObject.hpp"
#include "StelTranslator.hpp" #include "StelTranslator.hpp"
#include "StelTextureTypes.hpp" #include "StelTextureTypes.hpp"
class StelFont;
class StelPainter; class StelPainter;
class QDataStream;
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 60 skipping to change at line 60
//! @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 getJ2000EquatorialPos(const StelNavigator *nav) const {return XYZ;} virtual Vec3d getJ2000EquatorialPos(const StelNavigator *nav) const {return XYZ;}
virtual double getCloseViewFov(const StelNavigator * nav = NULL) con st; virtual double getCloseViewFov(const StelNavigator * nav = NULL) con st;
virtual float getVMagnitude(const StelNavigator * nav = NULL) const {return mag;} virtual float getVMagnitude(const StelNavigator * nav = NULL) const {return mag;}
virtual float getSelectPriority(const StelNavigator *nav) const; 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 virtual double getAngularSize(const StelCore *core) const {return an
gularSize/2;} gularSize*0.5;}
virtual SphericalRegionP getRegion() const {return pointRegion;}
// 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.
//! @return the nebula type code. //! @return the nebula type code.
QString getTypeString(void) const; QString getTypeString(void) const;
private: private:
friend struct DrawNebulaFuncObject;
//! @enum NebulaType Nebula types //! @enum NebulaType Nebula types
enum NebulaType enum NebulaType
{ {
NebGx, //!< Galaxy NebGx=0, //!< Galaxy
NebOc, //!< Open star cluster NebOc=1, //!< Open star cluster
NebGc, //!< Globular star cluster, usually in the Milky NebGc=2, //!< Globular star cluster, usually in the Milk
Way Galaxy y Way Galaxy
NebN, //!< Bright emission or reflection nebula NebN=3, //!< Bright emission or reflection nebula
NebPn, //!< Planetary nebula NebPn=4, //!< Planetary nebula
NebDn, //!< ??? NebDn=5, //!< ???
NebIg, //!< ??? NebIg=6, //!< ???
NebCn, //!< Cluster associated with nebulosity NebCn=7, //!< Cluster associated with nebulosity
NebUnknown //!< Unknown type NebUnknown=8 //!< Unknown type
}; };
//! Translate nebula name using the passed translator //! Translate nebula name using the passed translator
void translateName(StelTranslator& trans) {nameI18 = trans.qtranslat e(englishName);} void translateName(StelTranslator& trans) {nameI18 = trans.qtranslat e(englishName);}
bool readNGC(char *record); bool readNGC(char *record);
void readNGC(QDataStream& in);
void drawLabel(const StelCore* core, const StelPainter& sPainter, fl void drawLabel(StelPainter& sPainter, float maxMagLabel);
oat maxMagLabel); void drawHints(StelPainter& sPainter, float maxMagHints);
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 Vec3d XYZ; // Cartesian equatorial position
Vec3d XY; // Store temporary 2D position Vec3d XY; // Store temporary 2D position
NebulaType nType; NebulaType nType;
SphericalRegionP pointRegion;
static StelTextureSP texCircle; // The symbolic circle texture static StelTextureSP texCircle; // The symbolic circle texture
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. 10 change blocks. 
18 lines changed or deleted 21 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/