Stellarium 0.12.3
Main Page
Namespaces
Classes
Coding Style
Scripting
Plugins
Renderer
File Structure
File List
File Members
plugins
Supernovae
src
Supernova.hpp
1
/*
2
* Copyright (C) 2011 Alexander Wolf
3
*
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
17
*/
18
19
#ifndef _SUPERNOVA_HPP_
20
#define _SUPERNOVA_HPP_ 1
21
22
#include <QVariant>
23
#include <QString>
24
#include <QStringList>
25
#include <QFont>
26
#include <QList>
27
#include <QDateTime>
28
29
#include "StelObject.hpp"
30
#include "StelFader.hpp"
31
#include "
StelProjectorType.hpp
"
32
33
38
39
class
Supernova
:
public
StelObject
40
{
41
friend
class
Supernovae
;
42
public
:
44
Supernova
(
const
QVariantMap& map);
45
~
Supernova
();
46
49
QVariantMap
getMap
(
void
);
50
51
virtual
QString
getType
(
void
)
const
52
{
53
return
"Supernova"
;
54
}
55
virtual
float
getSelectPriority
(
const
StelCore
* core)
const
;
56
60
virtual
QString
getInfoString
(
const
StelCore
* core,
const
InfoStringGroup& flags)
const
;
61
virtual
Vec3f
getInfoColor
(
void
)
const
;
62
virtual
Vec3d
getJ2000EquatorialPos
(
const
StelCore
*)
const
63
{
64
return
XYZ;
65
}
66
virtual
float
getVMagnitude
(
const
StelCore
* core,
bool
withExtinction=
false
)
const
;
67
virtual
double
getAngularSize
(
const
StelCore
* core)
const
;
68
virtual
QString
getNameI18n
(
void
)
const
;
69
virtual
QString
getEnglishName
(
void
)
const
;
70
71
void
update
(
double
deltaTime);
72
73
private
:
74
bool
initialized;
75
76
Vec3d
XYZ;
// holds J2000 position
77
78
void
draw
(
StelCore
* core,
class
StelRenderer
* renderer,
StelProjectorP
projector);
79
80
// Supernova
81
QString designation;
82
QString sntype;
83
float
maxMagnitude;
84
double
peakJD;
85
double
snra;
86
double
snde;
87
QString note;
88
double
distance;
89
90
LinearFader
labelsFader;
91
};
92
93
#endif // _SUPERNOVA_HPP_
Generated on Sat Aug 10 2013 17:12:44 for Stellarium by
1.8.3.1