• 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
solarsystemsinglecomponent.h
Go to the documentation of this file.
1 /***************************************************************************
2  solarsystemsinglecomponent.h - K Desktop Planetarium
3  -------------------
4  begin : 2005/30/08
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 SOLARSYSTEMSINGLECOMPONENT_H
19 #define SOLARSYSTEMSINGLECOMPONENT_H
20 
21 #include <QColor>
22 
32 #include "skycomponent.h"
33 
34 class SolarSystemComposite;
35 class KSNumbers;
36 class KSPlanet;
37 class KSPlanetBase;
38 class SkyLabeler;
39 
40 class SolarSystemSingleComponent : public SkyComponent
41 {
42 public:
44  SolarSystemSingleComponent(SolarSystemComposite*, KSPlanetBase *kspb, bool (*visibleMethod)());
45 
46  virtual ~SolarSystemSingleComponent();
47 
49  KSPlanetBase* planet() { return m_Planet; }
50 
51  virtual bool selected();
52  virtual void update( KSNumbers *num );
53  virtual void updatePlanets( KSNumbers *num );
54  virtual SkyObject* findByName( const QString &name );
55  virtual SkyObject* objectNearest( SkyPoint *p, double &maxrad );
56  virtual void draw( SkyPainter *skyp );
57 
58 protected:
59  virtual void drawTrails( SkyPainter* skyp );
60 
61 private:
62  bool (*visible)();
63  QColor m_Color;
64  KSPlanet *m_Earth;
65  KSPlanetBase *m_Planet;
66 };
67 
68 #endif
SolarSystemSingleComponent::SolarSystemSingleComponent
SolarSystemSingleComponent(SolarSystemComposite *, KSPlanetBase *kspb, bool(*visibleMethod)())
Initialize visible method, minimum size and sizeScale.
Definition: solarsystemsinglecomponent.cpp:35
SolarSystemSingleComponent::update
virtual void update(KSNumbers *num)
Update the sky position(s) of this component.
Definition: solarsystemsinglecomponent.cpp:76
KSPlanet
A subclass of KSPlanetBase for seven of the major planets in the solar system (Earth and Pluto have t...
Definition: ksplanet.h:40
SolarSystemSingleComponent::~SolarSystemSingleComponent
virtual ~SolarSystemSingleComponent()
Definition: solarsystemsinglecomponent.cpp:48
SolarSystemSingleComponent::draw
virtual void draw(SkyPainter *skyp)
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: solarsystemsinglecomponent.cpp:92
SkyComponent
SkyComponent represents an object on the sky map.
Definition: skycomponent.h:44
SolarSystemSingleComponent::drawTrails
virtual void drawTrails(SkyPainter *skyp)
Draw trails for objects.
Definition: solarsystemsinglecomponent.cpp:105
SolarSystemSingleComponent::updatePlanets
virtual void updatePlanets(KSNumbers *num)
Definition: solarsystemsinglecomponent.cpp:82
SolarSystemSingleComponent::objectNearest
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Find the SkyObject nearest the given SkyPoint.
Definition: solarsystemsinglecomponent.cpp:67
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
skycomponent.h
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
SolarSystemSingleComponent
This class encapsulates some methods which are shared between all single-object solar system componen...
Definition: solarsystemsinglecomponent.h:40
SolarSystemSingleComponent::findByName
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyComponent for a SkyObject whose name matches the argument name the nam...
Definition: solarsystemsinglecomponent.cpp:58
KSPlanetBase
A subclass of TrailObject that provides additional information needed for most solar system objects...
Definition: ksplanetbase.h:63
SolarSystemSingleComponent::planet
KSPlanetBase * planet()
Return pointer to stored planet object.
Definition: solarsystemsinglecomponent.h:49
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
SolarSystemSingleComponent::selected
virtual bool selected()
Definition: solarsystemsinglecomponent.cpp:54
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
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