• 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
skyitem.h
Go to the documentation of this file.
1 
17 #pragma once
18 
19 #include "skyopacitynode.h"
20 #include "labelsitem.h"
21 
22 class SkyComponent;
23 class SkyMapLite;
24 class QQuickItem;
25 class RootNode;
26 class SkyNode;
27 
40 class SkyItem : public SkyOpacityNode
41 {
42  public:
50  explicit SkyItem(LabelsItem::label_t labelType, RootNode *rootNode = nullptr);
52  virtual ~SkyItem();
53 
58  virtual void update() = 0;
59 
60  virtual void show() override;
61 
63  virtual void hide() override;
64 
65  void hideLabels();
66 
68  inline RootNode *rootNode() { return m_rootNode; }
69 
71  inline LabelsItem::label_t labelType() { return m_labelType; }
72 
73  private:
74  RootNode *m_rootNode { nullptr };
75  QVector<SkyNode *> m_skyNodes;
76  LabelsItem::label_t m_labelType;
77 };
LabelsItem::label_t
label_t
The label_t enum.
Definition: labelsitem.h:72
SkyItem::rootNode
RootNode * rootNode()
Definition: skyitem.h:68
labelsitem.h
SkyItem::~SkyItem
virtual ~SkyItem()
Definition: skyitem.cpp:26
SkyNode
Provides virtual functions for update of coordinates and nodes hiding.
Definition: skynode.h:38
SkyComponent
SkyComponent represents an object on the sky map.
Definition: skycomponent.h:106
SkyItem::update
virtual void update()=0
updates the coordinates and visibility of child node.
SkyItem::hideLabels
void hideLabels()
Definition: skyitem.cpp:43
SkyItem::show
virtual void show() override
makes this node visible
Definition: skyitem.cpp:34
skyopacitynode.h
SkyOpacityNode
skyopacitynode.h - K Desktop Planetarium begin : 16/06/2016 copyright : (C) 2016 by Artem Fedoskin e...
Definition: skyopacitynode.h:31
SkyItem::hide
virtual void hide() override
hides this item and corresponding labels
Definition: skyitem.cpp:48
RootNode
A QSGClipNode derived class used as a container for holding pointers to nodes and for clipping...
Definition: rootnode.h:72
SkyMapLite
This is the main item that displays all SkyItems.
Definition: skymaplite.h:69
SkyItem::labelType
LabelsItem::label_t labelType()
Definition: skyitem.h:71
QVector< SkyNode * >
SkyItem
This is an interface for implementing SkyItems that represent SkyComponent derived objects on the Sky...
Definition: skyitem.h:40
QQuickItem
SkyItem::SkyItem
SkyItem(LabelsItem::label_t labelType, RootNode *rootNode=nullptr)
Constructor, appends SkyItem to rootNode as a child in a node tree.
Definition: skyitem.cpp:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sun Dec 8 2019 03:55: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
  • 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