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

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • skyobjects
planetmoons.h
Go to the documentation of this file.
1 /***************************************************************************
2  planetmoons.h - description
3  -------------------
4  begin : Sat Mar 13 2009
5  : by Vipul Kumar Singh, Médéric Boquien
6  email : vipulkrsingh@gmail.com, mboquien@free.fr
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef PLANETMOONS_H_
19 #define PLANETMOONS_H_
20 
21 #include <QString>
22 #include <QVector>
23 
24 class KSNumbers;
25 class KSPlanetBase;
26 class KSSun;
27 class TrailObject;
28 class dms;
29 
39 class PlanetMoons {
40 public:
45  PlanetMoons();
46 
50  virtual ~PlanetMoons();
51 
56  inline TrailObject* moon( int id ) { return Moon[id]; }
57 
62  QString name( int id ) const;
63 
69  void EquatorialToHorizontal( const dms *LSTh, const dms *lat );
70 
89  virtual void findPosition( const KSNumbers *num, const KSPlanetBase *pla, const KSSun *sunptr ) = 0;
90 
95  inline bool inFront( int id ) const { return InFront[id]; }
96 
101  double x( int i ) const { return XP[i]; }
102 
107  double y( int i ) const { return YP[i]; }
108 
113  double z( int i ) const { return ZP[i]; }
114 
118  int nMoons( ) const { return Moon.size(); }
119 
120  protected:
121  QVector<TrailObject*> Moon;
122  QVector<bool> InFront;
123  //the rectangular position, relative to the planet. X-axis is equator of the planet; units are planet Radius
124  QVector<double> XP, YP, ZP;
125 
126  private:
127  PlanetMoons(const PlanetMoons&);
128  PlanetMoons& operator = (const PlanetMoons&);
129  };
130 #endif
PlanetMoons::EquatorialToHorizontal
void EquatorialToHorizontal(const dms *LSTh, const dms *lat)
Convert the RA,Dec coordinates of each moon to Az,Alt.
Definition: planetmoons.cpp:38
KSSun
Child class of KSPlanetBase; encapsulates information about the Sun.
Definition: kssun.h:31
PlanetMoons::x
double x(int i) const
Definition: planetmoons.h:101
PlanetMoons::PlanetMoons
PlanetMoons()
Constructor.
Definition: planetmoons.cpp:27
PlanetMoons::XP
QVector< double > XP
Definition: planetmoons.h:124
PlanetMoons::z
double z(int i) const
Definition: planetmoons.h:113
PlanetMoons::~PlanetMoons
virtual ~PlanetMoons()
Destructor.
Definition: planetmoons.cpp:30
PlanetMoons::moon
TrailObject * moon(int id)
Definition: planetmoons.h:56
PlanetMoons::ZP
QVector< double > ZP
Definition: planetmoons.h:124
PlanetMoons::findPosition
virtual void findPosition(const KSNumbers *num, const KSPlanetBase *pla, const KSSun *sunptr)=0
Find the positions of each Moon, relative to the planet.
dms
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:42
PlanetMoons::inFront
bool inFront(int id) const
Definition: planetmoons.h:95
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
PlanetMoons::Moon
QVector< TrailObject * > Moon
Definition: planetmoons.h:121
PlanetMoons::name
QString name(int id) const
Definition: planetmoons.cpp:34
TrailObject
provides a SkyObject with an attachable Trail
Definition: trailobject.h:33
KSPlanetBase
A subclass of TrailObject that provides additional information needed for most solar system objects...
Definition: ksplanetbase.h:63
PlanetMoons::InFront
QVector< bool > InFront
Definition: planetmoons.h:122
PlanetMoons
Implements the moons of a planet.
Definition: planetmoons.h:39
PlanetMoons::YP
QVector< double > YP
Definition: planetmoons.h:124
PlanetMoons::y
double y(int i) const
Definition: planetmoons.h:107
PlanetMoons::nMoons
int nMoons() const
Definition: planetmoons.h:118
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • 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