• 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.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  planetmoons.cpp - 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 
19 #include <kdebug.h>
20 
21 #include "planetmoons.h"
22 #include "ksnumbers.h"
23 #include "ksplanetbase.h"
24 #include "kssun.h"
25 #include "trailobject.h"
26 
27 PlanetMoons::PlanetMoons(){
28 }
29 
30 PlanetMoons::~PlanetMoons(){
31  qDeleteAll( Moon );
32 }
33 
34 QString PlanetMoons::name( int id ) const {
35  return Moon[id]->translatedName();
36 }
37 
38 void PlanetMoons::EquatorialToHorizontal( const dms *LST, const dms *lat ) {
39  int nmoons = nMoons();
40 
41  for ( int i=0; i<nmoons; ++i )
42  moon(i)->EquatorialToHorizontal( LST, lat );
43 }
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
ksplanetbase.h
PlanetMoons::PlanetMoons
PlanetMoons()
Constructor.
Definition: planetmoons.cpp:27
PlanetMoons::~PlanetMoons
virtual ~PlanetMoons()
Destructor.
Definition: planetmoons.cpp:30
PlanetMoons::moon
TrailObject * moon(int id)
Definition: planetmoons.h:56
ksnumbers.h
trailobject.h
dms
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:42
SkyPoint::EquatorialToHorizontal
void EquatorialToHorizontal(const dms *LST, const dms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates, given the local sidereal time and the observer's latitude.
Definition: skypoint.cpp:55
PlanetMoons::Moon
QVector< TrailObject * > Moon
Definition: planetmoons.h:121
kssun.h
PlanetMoons::name
QString name(int id) const
Definition: planetmoons.cpp:34
planetmoons.h
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