SolarSystemSingleComponent
#include <solarsystemsinglecomponent.h>
Protected Member Functions | |
void | drawTrails (SkyPainter *skyp) override |
Detailed Description
This class encapsulates some methods which are shared between all single-object solar system components (Sun, Moon, Planet, Pluto)
- Version
- 0.1
Definition at line 28 of file solarsystemsinglecomponent.h.
Constructor & Destructor Documentation
◆ SolarSystemSingleComponent()
SolarSystemSingleComponent::SolarSystemSingleComponent | ( | SolarSystemComposite * | parent, |
KSPlanetBase * | kspb, | ||
bool(*)() | visibleMethod, | ||
bool | isMoon = false ) |
Initialize visible method, minimum size and sizeScale.
Definition at line 29 of file solarsystemsinglecomponent.cpp.
◆ ~SolarSystemSingleComponent()
|
override |
Definition at line 46 of file solarsystemsinglecomponent.cpp.
Member Function Documentation
◆ draw()
|
overridevirtual |
Draw the object on the SkyMap skyp
a pointer to the SkyPainter to use.
Implements SkyComponent.
Definition at line 110 of file solarsystemsinglecomponent.cpp.
◆ drawTrails()
|
overrideprotectedvirtual |
Draw trails for objects.
Reimplemented from SkyComponent.
Definition at line 123 of file solarsystemsinglecomponent.cpp.
◆ findByName()
|
overridevirtual |
Search the children of this SkyComponent for a SkyObject whose name matches the argument name
the name to be matched exact
If true, it will return an exact match, otherwise it can return a partial match.
- Returns
- a pointer to the SkyObject whose name matches the argument, or a nullptr pointer if no match was found.
- Note
- This function simply returns the nullptr pointer; it is reimplemented in various sub-classes
Reimplemented from SkyComponent.
Definition at line 58 of file solarsystemsinglecomponent.cpp.
◆ objectNearest()
|
overridevirtual |
Find the SkyObject nearest the given SkyPoint.
Look for a SkyObject that is nearer to point p than maxrad. If one is found, then maxrad is reset to the separation of the new nearest object. p
pointer to the SkyPoint to search around maxrad
reference to current search radius in degrees
- Returns
- a pointer to the nearest SkyObject
- Note
- This function simply returns a nullptr pointer; it is reimplemented in various sub-classes.
Reimplemented from SkyComponent.
Definition at line 68 of file solarsystemsinglecomponent.cpp.
◆ planet()
|
inline |
Return pointer to stored planet object.
Definition at line 37 of file solarsystemsinglecomponent.h.
◆ selected()
|
overridevirtual |
- Returns
- true if component is to be drawn on the map.
Reimplemented from SkyComponent.
Definition at line 53 of file solarsystemsinglecomponent.cpp.
◆ update()
|
overridevirtual |
update Only convert Equatorial to Horizontal coordinates given current time.
- Parameters
-
num pointer to KSNumbers instance for target time
Reimplemented from SkyComponent.
Definition at line 79 of file solarsystemsinglecomponent.cpp.
◆ updateMoons()
|
overridevirtual |
update Update Equatorial & Horizontal coordinates.
(Called more frequently.)
Reimplemented from SkyComponent.
Definition at line 101 of file solarsystemsinglecomponent.cpp.
◆ updateSolarSystemBodies()
|
overridevirtual |
updateSolarSystemBodies Update Equatorial & Horizontal coordinates.
- Parameters
-
num pointer to KSNumbers instance for target time
Reimplemented from SkyComponent.
Definition at line 86 of file solarsystemsinglecomponent.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:05 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.