Stellarium 0.12.3
Main Page
Namespaces
Classes
Coding Style
Scripting
Plugins
Renderer
File Structure
File List
File Members
core
modules
Comet.hpp
1
/*
2
* Stellarium
3
* Copyright (C) 2010 Bogdan Marinov
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18
*/
19
20
#ifndef _COMET_HPP_
21
#define _COMET_HPP_
22
23
#include "Planet.hpp"
24
32
class
Comet
:
public
Planet
33
{
34
public
:
35
Comet
(
const
QString& englishName,
36
int
flagLighting,
37
double
radius,
38
double
oblateness,
39
Vec3f
color,
40
float
albedo,
41
const
QString& texMapName,
42
posFuncType _coordFunc,
43
void
* userDataPtr,
44
OsculatingFunctType *osculatingFunc,
45
bool
closeOrbit,
46
bool
hidden,
47
const
QString &pType);
48
49
~
Comet
();
50
51
//Inherited from StelObject via Planet
60
// - Size <- Size of what?
64
virtual
QString
getInfoString
(
const
StelCore
*core,
const
InfoStringGroup &flags)
const
;
65
//The Comet class inherits the "Planet" type because the SolarSystem class
66
//was not designed to handle different types of objects.
67
//virtual QString getType() const {return "Comet";}
69
virtual
float
getVMagnitude
(
const
StelCore
* core,
bool
withExtinction=
false
)
const
;
70
76
void
setAbsoluteMagnitudeAndSlope
(
double
magnitude,
double
slope);
77
79
void
setSemiMajorAxis
(
double
value);
80
82
double
getSiderealPeriod
()
const
;
83
84
private
:
85
double
absoluteMagnitude;
86
double
slopeParameter;
87
double
semiMajorAxis;
88
89
bool
isCometFragment;
90
bool
nameIsProvisionalDesignation;
91
};
92
93
#endif //_COMET_HPP_
Generated on Sat Aug 10 2013 17:12:44 for Stellarium by
1.8.3.1