• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
Planet.h
Go to the documentation of this file.
1 // Copyright 2009 Henry de Valence <hdevalence@gmail.com>
2 // Copyright 2009 David Roberts <dvdr18@gmail.com>
3 // Copyright 2012 Mohammed Nafees <nafees.technocool@gmail.com>
4 //
5 // This file is part of the Marble Virtual Globe.
6 //
7 // This program is free software licensed under the GNU LGPL. You can
8 // find a copy of this license in LICENSE.txt in the top directory of
9 // the source code.
10 //
11 
12 #ifndef MARBLE_PLANET_H
13 #define MARBLE_PLANET_H
14 
15 #include "marble_export.h"
16 
17 #include <QStringList>
18 #include <QColor>
19 
20 namespace Marble
21 {
22 
23 class PlanetPrivate;
24 
25 class MARBLE_EXPORT Planet
26 {
27 //Not a QObject because we don't need sigs/slots
28 public:
29 
33  Planet();
34 
36  explicit Planet( const QString& id );
37 
39  Planet( const Planet& other );
41  ~Planet();
42 
43  /* Getter functions */
45  qreal M_0() const;
46  qreal M_1() const;
47 
49  qreal C_1() const;
50  qreal C_2() const;
51  qreal C_3() const;
52  qreal C_4() const;
53  qreal C_5() const;
54  qreal C_6() const;
55 
57  qreal Pi() const;
58 
60  qreal epsilon() const;
61 
63  qreal theta_0() const;
64  qreal theta_1() const;
65 
67  qreal radius() const;
68 
70  QString name() const;
72  QString id() const;
73 
74  /* Setter functions */
75  void setM_0( qreal M_0 );
76  void setM_1( qreal M_1 );
77 
78  void setC_1( qreal C_1 );
79  void setC_2( qreal C_2 );
80  void setC_3( qreal C_3 );
81  void setC_4( qreal C_4 );
82  void setC_5( qreal C_5 );
83  void setC_6( qreal C_6 );
84 
85  void setPi( qreal Pi );
86 
87  void setEpsilon( qreal epsilon );
88 
89  void setTheta_0( qreal theta_0 );
90  void setTheta_1( qreal theta_1 );
91 
92  void setRadius( qreal radius );
93 
94  void setName( const QString& name );
95  void setId( const QString& id );
96 
97  Planet& operator=( const Planet& rhs );
98 
99  static QString name( const QString& id );
100  static QStringList planetList();
101 
102  bool hasAtmosphere() const;
103  void setHasAtmosphere( bool enabled );
104 
105  QColor atmosphereColor() const;
106  void setAtmosphereColor( const QColor& color );
107 
108 private:
109  PlanetPrivate * const d;
110 };
111 
112 
113 
114 } //namespace Marble
115 
116 
117 #endif
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::Planet
Definition: Planet.h:25
epsilon
qreal epsilon
Definition: shp2pn2.cpp:59
marble_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal