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

kstars

  • extragear
  • edu
  • kstars
  • kstars
  • kstarslite
  • skyitems
planetsitem.h
Go to the documentation of this file.
1 
17 #pragma once
18 
19 #include "skyitem.h"
20 
21 class RootNode;
22 class SkyObject;
23 class SolarSystemSingleComponent;
24 
32 class PlanetsItem : public SkyItem
33 {
34  public:
43  explicit PlanetsItem(QList<SolarSystemSingleComponent *> planets,
44  /*QList<PlanetMoonsComponent *> moons,*/ RootNode *rootNode = nullptr);
45 
52  SolarSystemSingleComponent *getParentComponent(SkyObject *planet);
53 
58  void update() override;
59 
64  virtual void show() override;
65 
70  virtual void hide() override;
71 
72  private:
73  QList<SolarSystemSingleComponent *> m_planetComponents;
74  // QList<PlanetMoonsComponent *> m_moonsComponents;
75 };
SkyItem::rootNode
RootNode * rootNode()
Definition: skyitem.h:68
PlanetsItem::hide
virtual void hide() override
hides this item and labels for all moons (currently only Jupiter moons.
Definition: planetsitem.cpp:80
PlanetsItem::PlanetsItem
PlanetsItem(QList< SolarSystemSingleComponent * > planets, RootNode *rootNode=nullptr)
Constructor.
Definition: planetsitem.cpp:27
PlanetsItem::update
void update() override
calls update() of all child PlanetMoonsNodes
Definition: planetsitem.cpp:56
QList< SolarSystemSingleComponent * >
RootNode
A QSGClipNode derived class used as a container for holding pointers to nodes and for clipping...
Definition: rootnode.h:72
SolarSystemSingleComponent
This class encapsulates some methods which are shared between all single-object solar system componen...
Definition: solarsystemsinglecomponent.h:40
SkyItem
This is an interface for implementing SkyItems that represent SkyComponent derived objects on the Sky...
Definition: skyitem.h:40
skyitem.h
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:43
PlanetsItem::getParentComponent
SolarSystemSingleComponent * getParentComponent(SkyObject *planet)
returns SolarSystemSingleComponent that corresponds to the planet.
Definition: planetsitem.cpp:46
PlanetsItem::show
virtual void show() override
shows this item and labels for all moons (currently only Jupiter moons.
Definition: planetsitem.cpp:74
PlanetsItem
This class handles planets and their moons in SkyMapLite.
Definition: planetsitem.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sat Dec 7 2019 03:50:53 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
  • Modules
  • Related Pages

edu API Reference

Skip menu "edu API Reference"
  •     core
  • kstars

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