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

kstars

Public Member Functions | List of all members
SatelliteNode Class Reference

#include <satellitenode.h>

Inheritance diagram for SatelliteNode:
Inheritance graph
[legend]

Public Member Functions

 SatelliteNode (Satellite *sat, RootNode *rootNode)
 
virtual void changePos (QPointF pos) override
 
virtual void hide () override
 
void initLines ()
 
void initPoint ()
 
Satellite * sat ()
 
virtual void update () override
 
- Public Member Functions inherited from SkyNode
 SkyNode (SkyObject *skyObject)
 
 SkyNode ()
 
virtual ~SkyNode ()
 
void addChildNode (QSGNode *node)
 
int hideCount ()
 
SkyMapLite * map () const
 
const Projector * projector ()
 
virtual void show ()
 
SkyObject * skyObject () const
 
void update (bool drawLabel)
 
bool visible ()
 

Additional Inherited Members

- Public Attributes inherited from SkyNode
SkyOpacityNode * m_opacity { nullptr }
 
- Protected Attributes inherited from SkyNode
bool m_drawLabel { false }
 
int m_hideCount { 0 }
 
SkyObject * m_skyObject { nullptr }
 

Detailed Description

A SkyNode derived class that represents satellite.

Author
Artem Fedoskin
Version
1.0

Definition at line 35 of file satellitenode.h.

Constructor & Destructor Documentation

SatelliteNode::SatelliteNode ( Satellite *  sat,
RootNode *  rootNode 
)

Constructor.


satellitenode.h - K Desktop Planetarium

begin : 25/06/2016 copyright : (C) 2016 by Artem Fedoskin email : afedo[email protected]skin[email protected][email protected][email protected]il.c[email protected]om

Parameters
sat- satellite that is represented by this node
rootNode- pointer to the top parent node

  • This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *

Definition at line 31 of file satellitenode.cpp.

Member Function Documentation

void SatelliteNode::changePos ( QPointF  pos)
overridevirtual

changes the position of SkyNode on SkyMapLite.

Has to be overridden by the classes that support moving

Parameters
posnew position

Reimplemented from SkyNode.

Definition at line 148 of file satellitenode.cpp.

void SatelliteNode::hide ( )
overridevirtual

hides all child nodes (sets opacity of m_opacity to 0)

Reimplemented from SkyNode.

Definition at line 141 of file satellitenode.cpp.

void SatelliteNode::initLines ( )

Initialize m_lines (if not already) to draw satellite with lines.

Definition at line 36 of file satellitenode.cpp.

void SatelliteNode::initPoint ( )

Initialize m_point (if not already) to draw satellite as a star.

Definition at line 73 of file satellitenode.cpp.

Satellite* SatelliteNode::sat ( )
inline

Definition at line 65 of file satellitenode.h.

void SatelliteNode::update ( )
overridevirtual

Update position and visibility of satellite.

We also check user settings (Options::drawSatellitesLikeStars()) and based on that draw satellite either like star or with lines

Reimplemented from SkyNode.

Definition at line 87 of file satellitenode.cpp.


The documentation for this class was generated from the following files:
  • satellitenode.h
  • satellitenode.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Dec 13 2019 02:57: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
  • 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