Stellarium 0.14.3
Main Page
Modules
Classes
Core API
File List
plugins
Quasars
src
Quasar.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 _QUASAR_HPP_
20
#define _QUASAR_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 "
StelTextureTypes.hpp
"
31
#include "StelFader.hpp"
32
33
class
StelPainter
;
34
40
41
class
Quasar
:
public
StelObject
42
{
43
friend
class
Quasars
;
44
public
:
46
Quasar
(
const
QVariantMap& map);
47
~
Quasar
();
48
51
QVariantMap
getMap
(
void
);
52
53
virtual
QString getType(
void
)
const
54
{
55
return
"Quasar"
;
56
}
57
58
virtual
float
getSelectPriority(
const
StelCore
*core)
const
;
59
63
virtual
QString
getInfoString
(
const
StelCore
* core,
const
InfoStringGroup& flags)
const
;
64
virtual
Vec3f getInfoColor(
void
)
const
;
65
virtual
Vec3d getJ2000EquatorialPos(
const
StelCore
*)
const
66
{
67
return
XYZ;
68
}
69
virtual
float
getVMagnitude(
const
StelCore
* core)
const
;
70
virtual
double
getAngularSize(
const
StelCore
* core)
const
;
71
virtual
QString getNameI18n(
void
)
const
72
{
73
return
designation;
74
}
75
virtual
QString getEnglishName(
void
)
const
76
{
77
return
designation;
78
}
79
80
void
update(
double
deltaTime);
81
82
private
:
83
bool
initialized;
84
85
Vec3d XYZ;
// holds J2000 position
86
87
static
StelTextureSP
hintTexture;
88
static
StelTextureSP
markerTexture;
89
static
bool
distributionMode;
90
static
Vec3f markerColor;
91
92
void
draw(
StelCore
* core,
StelPainter
& painter);
95
unsigned
char
BvToColorIndex(
float
b_v);
96
97
// Quasar
98
QString designation;
99
float
VMagnitude;
100
float
AMagnitude;
101
float
bV;
102
double
qRA;
103
double
qDE;
104
float
redshift;
105
106
LinearFader
labelsFader;
107
};
108
109
#endif // _QUASAR_HPP_
LinearFader
StelObject
StelTextureTypes.hpp
StelCore
Quasar
A Quasar object represents one Quasar on the sky.
Definition:
Quasar.hpp:41
Quasar::getInfoString
virtual QString getInfoString(const StelCore *core, const InfoStringGroup &flags) const
Get an HTML string to describe the object.
StelPainter
Quasars
Main class of the Quasars plugin.
Definition:
Quasars.hpp:69
Quasar::getMap
QVariantMap getMap(void)
Get a QVariantMap which describes the Quasar.
StelTextureSP
QSharedPointer< StelTexture > StelTextureSP
Quasar::Quasar
Quasar(const QVariantMap &map)
Generated on Sun Mar 20 2016 15:06:43 for Stellarium by
1.8.8