Supernova.hpp   Supernova.hpp 
skipping to change at line 22 skipping to change at line 22
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* 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., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _SUPERNOVA_HPP_ #ifndef _SUPERNOVA_HPP_
#define _SUPERNOVA_HPP_ 1 #define _SUPERNOVA_HPP_ 1
#include "config.h"
#include <QVariant> #include <QVariant>
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include <QFont> #include <QFont>
#include <QList> #include <QList>
#include <QDateTime> #include <QDateTime>
#include "StelObject.hpp" #include "StelObject.hpp"
#include "StelTextureTypes.hpp"
#include "StelFader.hpp" #include "StelFader.hpp"
#include "StelProjectorType.hpp"
class StelPainter;
//! @class Supernova //! @class Supernova
//! A Supernova object represents one supernova on the sky. //! A Supernova object represents one supernova on the sky.
//! Details about the supernovas are passed using a QVariant which contains //! Details about the supernovas are passed using a QVariant which contains
//! a map of data from the json file. //! a map of data from the json file.
class Supernova : public StelObject class Supernova : public StelObject
{ {
friend class Supernovae; friend class Supernovae;
public: public:
skipping to change at line 54 skipping to change at line 58
~Supernova(); ~Supernova();
//! Get a QVariantMap which describes the supernova. Could be used to //! Get a QVariantMap which describes the supernova. Could be used to
//! create a duplicate. //! create a duplicate.
QVariantMap getMap(void); QVariantMap getMap(void);
virtual QString getType(void) const virtual QString getType(void) const
{ {
return "Supernova"; return "Supernova";
} }
virtual float getSelectPriority(const StelCore* core) const;
//! Get an HTML string to describe the object //! Get an HTML string to describe the object
//! @param core A pointer to the core //! @param core A pointer to the core
//! @flags a set of flags with information types to include. //! @flags a set of flags with information types to include.
virtual QString getInfoString(const StelCore* core, const InfoString Group& flags) const; virtual QString getInfoString(const StelCore* core, const InfoString Group& flags) const;
virtual Vec3f getInfoColor(void) const; virtual Vec3f getInfoColor(void) const;
virtual Vec3d getJ2000EquatorialPos(const StelCore*) const virtual Vec3d getJ2000EquatorialPos(const StelCore*) const
{ {
return XYZ; return XYZ;
} }
virtual float getVMagnitude(const StelCore* core, bool withExtinctio n=false) const; virtual float getVMagnitude(const StelCore* core) const;
virtual double getAngularSize(const StelCore* core) const; virtual double getAngularSize(const StelCore* core) const;
virtual QString getNameI18n(void) const; virtual QString getNameI18n(void) const;
virtual QString getEnglishName(void) const; virtual QString getEnglishName(void) const;
void update(double deltaTime); void update(double deltaTime);
private: private:
bool initialized; bool initialized;
Vec3d XYZ; // holds J2000 position Vec3d XYZ; // holds J2000 position
void draw(StelCore* core, class StelRenderer* renderer, StelProjecto static StelTextureSP hintTexture;
rP projector);
void draw(StelCore* core, StelPainter& painter);
// Supernova // Supernova
QString designation; //! The ID of the supernova QString designation; //! The ID of the supernova
QString sntype; //! Type of the supernova QString sntype; //! Type of the supernova
float maxMagnitude; //! Maximal visual magnitude float maxMagnitude; //! Maximal visual magnitude
double peakJD; //! Julian Day of max. vis. mag. double peakJD; //! Julian Day of max. vis. mag.
double snra; //! R.A. for the supernova double snra; //! R.A. for the supernova
double snde; //! Dec. for the supernova double snde; //! Dec. for the supernova
QString note; //! Notes for the supernova QString note; //! Notes for the supernova
double distance; //! Distance to supernova (10^3 l y) double distance; //! Distance to supernova (10^3 l y)
 End of changes. 6 change blocks. 
5 lines changed or deleted 9 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/