• 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
  • skycomponents
solarsystemcomposite.h
Go to the documentation of this file.
1 /***************************************************************************
2  solarsystemcomposite.h - K Desktop Planetarium
3  -------------------
4  begin : 2005/01/09
5  copyright : (C) 2005 by Thomas Kabelmann
6  email : thomas.kabelmann@gmx.de
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 SOLARSYSTEMCOMPOSITE_H
19 #define SOLARSYSTEMCOMPOSITE_H
20 
21 #include "skycomposite.h"
22 #include "planetmoonscomponent.h"
23 
24 class KSPlanet;
25 class KSSun;
26 class KSMoon;
27 class JupiterMoonsComponent;
28 class AsteroidsComponent;
29 class CometsComponent;
30 class SkyLabeler;
31 
41 class SolarSystemComposite : public SkyComposite
42 {
43 public:
44  explicit SolarSystemComposite( SkyComposite *parent );
45  ~SolarSystemComposite();
46 
47  KSPlanet* earth() { return m_Earth; }
48  const QList<SkyObject*>& asteroids() const;
49  const QList<SkyObject*>& comets() const;
50 
51  bool selected();
52 
53  virtual void update( KSNumbers *num );
54 
55  virtual void updatePlanets( KSNumbers *num );
56 
57  virtual void updateMoons( KSNumbers *num );
58 
59  void drawTrails( SkyPainter *skyp );
60 
61  CometsComponent* cometsComponent();
62 
63  AsteroidsComponent* asteroidsComponent();
64 
65 private:
66  KSPlanet *m_Earth;
67  KSSun *m_Sun;
68  KSMoon *m_Moon;
69  PlanetMoonsComponent *m_JupiterMoons;
70  AsteroidsComponent *m_AsteroidsComponent;
71  CometsComponent *m_CometsComponent;
72  SkyLabeler* m_skyLabeler;
73 };
74 
75 #endif
SolarSystemComposite::~SolarSystemComposite
~SolarSystemComposite()
Definition: solarsystemcomposite.cpp:64
SolarSystemComposite::drawTrails
void drawTrails(SkyPainter *skyp)
Draw trails for objects.
Definition: solarsystemcomposite.cpp:107
SkyComponent::parent
SkyComposite * parent()
Definition: skycomponent.h:82
KSPlanet
A subclass of KSPlanetBase for seven of the major planets in the solar system (Earth and Pluto have t...
Definition: ksplanet.h:40
KSSun
Child class of KSPlanetBase; encapsulates information about the Sun.
Definition: kssun.h:31
SolarSystemComposite::comets
const QList< SkyObject * > & comets() const
Definition: solarsystemcomposite.cpp:118
SolarSystemComposite::earth
KSPlanet * earth()
Definition: solarsystemcomposite.h:47
SolarSystemComposite::updateMoons
virtual void updateMoons(KSNumbers *num)
Definition: solarsystemcomposite.cpp:97
CometsComponent
This class encapsulates the Comets.
Definition: cometscomponent.h:33
SolarSystemComposite::asteroidsComponent
AsteroidsComponent * asteroidsComponent()
Definition: solarsystemcomposite.cpp:127
SolarSystemComposite::update
virtual void update(KSNumbers *num)
Delegate update-position requests to all sub components.
Definition: solarsystemcomposite.cpp:75
SolarSystemComposite::selected
bool selected()
Definition: solarsystemcomposite.cpp:69
SolarSystemComposite::updatePlanets
virtual void updatePlanets(KSNumbers *num)
Definition: solarsystemcomposite.cpp:89
SolarSystemComposite::asteroids
const QList< SkyObject * > & asteroids() const
Definition: solarsystemcomposite.cpp:114
skycomposite.h
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
planetmoonscomponent.h
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
KSMoon
A subclass of SkyObject that provides information needed for the Moon.
Definition: ksmoon.h:36
SolarSystemComposite::SolarSystemComposite
SolarSystemComposite(SkyComposite *parent)
Definition: solarsystemcomposite.cpp:37
PlanetMoonsComponent
Represents the planetmoons on the sky map.
Definition: planetmoonscomponent.h:41
AsteroidsComponent
Represents the asteroids on the sky map.
Definition: asteroidscomponent.h:32
SolarSystemComposite::cometsComponent
CometsComponent * cometsComponent()
Definition: solarsystemcomposite.cpp:122
SkyLabeler
The purpose of this class is to prevent labels from overlapping.
Definition: skylabeler.h:112
SkyPainter
Draws things on the sky, without regard to backend.
Definition: skypainter.h:47
SolarSystemComposite
The solar system composite manages all planets, asteroids and comets.
Definition: solarsystemcomposite.h:41
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 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