• 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
planetmoonscomponent.h
Go to the documentation of this file.
1 /***************************************************************************
2  planetmoonscomponent.h - K Desktop Planetarium
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 PLANETMOONSCOMPONENT_H
19 #define PLANETMOONSCOMPONENT_H
20 
21 #include "skycomponent.h"
22 #include "skyobjects/ksplanetbase.h"
23 #include "skyobjects/planetmoons.h"
24 
25 class SkyComposite;
26 class SolarSystemSingleComponent;
27 class SkyMap;
28 class KSNumbers;
29 class JupiterMoons;
30 class SaturnMoons;
31 class SkyLabeler;
32 
41 class PlanetMoonsComponent : public SkyComponent
42 {
43 public:
48  PlanetMoonsComponent( SkyComposite *parent, SolarSystemSingleComponent *pla, KSPlanetBase::Planets planet );
49 
53  ~PlanetMoonsComponent();
54 
55  virtual bool selected();
56  virtual void draw( SkyPainter *skyp );
57  virtual void update( KSNumbers *num );
58  virtual void updateMoons( KSNumbers *num );
59 
60  SkyObject* objectNearest( SkyPoint *p, double &maxrad );
61 
68  SkyObject* findByName( const QString &name );
69 
70 protected:
71  virtual void drawTrails( SkyPainter* skyp );
72 
73 private:
74  KSPlanetBase::Planets planet;
75  PlanetMoons *pmoons;
76  SolarSystemSingleComponent *m_Planet;
77 };
78 
79 #endif
ksplanetbase.h
PlanetMoonsComponent::~PlanetMoonsComponent
~PlanetMoonsComponent()
Destructor.
Definition: planetmoonscomponent.cpp:60
SkyComponent::parent
SkyComposite * parent()
Definition: skycomponent.h:82
PlanetMoonsComponent::objectNearest
SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Find the SkyObject nearest the given SkyPoint.
Definition: planetmoonscomponent.cpp:97
SkyComponent
SkyComponent represents an object on the sky map.
Definition: skycomponent.h:44
PlanetMoonsComponent::findByName
SkyObject * findByName(const QString &name)
Definition: planetmoonscomponent.cpp:83
PlanetMoonsComponent::updateMoons
virtual void updateMoons(KSNumbers *num)
Definition: planetmoonscomponent.cpp:76
PlanetMoonsComponent::selected
virtual bool selected()
Definition: planetmoonscomponent.cpp:65
PlanetMoonsComponent::drawTrails
virtual void drawTrails(SkyPainter *skyp)
Draw trails for objects.
Definition: planetmoonscomponent.cpp:152
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
PlanetMoonsComponent::update
virtual void update(KSNumbers *num)
Update the sky position(s) of this component.
Definition: planetmoonscomponent.cpp:69
skycomponent.h
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
PlanetMoonsComponent::PlanetMoonsComponent
PlanetMoonsComponent(SkyComposite *parent, SolarSystemSingleComponent *pla, KSPlanetBase::Planets planet)
Constructor parent pointer to the parent SkyComposite.
Definition: planetmoonscomponent.cpp:38
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
KSPlanetBase::Planets
Planets
Definition: ksplanetbase.h:82
PlanetMoonsComponent
Represents the planetmoons on the sky map.
Definition: planetmoonscomponent.h:41
SolarSystemSingleComponent
This class encapsulates some methods which are shared between all single-object solar system componen...
Definition: solarsystemsinglecomponent.h:40
SkyMap
This is the canvas on which the sky is painted.
Definition: skymap.h:72
JupiterMoons
Implements the four largest moons of Jupiter.
Definition: jupitermoons.h:41
SkyLabeler
The purpose of this class is to prevent labels from overlapping.
Definition: skylabeler.h:112
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
SkyPainter
Draws things on the sky, without regard to backend.
Definition: skypainter.h:47
planetmoons.h
PlanetMoons
Implements the moons of a planet.
Definition: planetmoons.h:39
PlanetMoonsComponent::draw
virtual void draw(SkyPainter *skyp)
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: planetmoonscomponent.cpp:112
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