kstars
#include <planetmoonscomponent.h>

| Public Member Functions | |
| PlanetMoonsComponent (SkyComposite *parent, SolarSystemSingleComponent *pla, KSPlanetBase::Planets planet) | |
| ~PlanetMoonsComponent () | |
| virtual void | draw (SkyPainter *skyp) | 
| SkyObject * | findByName (const QString &name) | 
| SkyObject * | objectNearest (SkyPoint *p, double &maxrad) | 
| virtual bool | selected () | 
| virtual void | update (KSNumbers *num) | 
| virtual void | updateMoons (KSNumbers *num) | 
|  Public Member Functions inherited from SkyComponent | |
| SkyComponent (SkyComposite *parent) | |
| virtual | ~SkyComponent () | 
| virtual void | emitProgressText (const QString &message) | 
| QHash< int, QStringList > & | objectNames () | 
| QStringList & | objectNames (int type) | 
| virtual void | objectsInArea (QList< SkyObject * > &list, const SkyRegion ®ion) | 
| SkyComposite * | parent () | 
| virtual void | updatePlanets (KSNumbers *) | 
| Protected Member Functions | |
| virtual void | drawTrails (SkyPainter *skyp) | 
|  Protected Member Functions inherited from SkyComponent | |
| void | removeFromNames (const SkyObject *obj) | 
Detailed Description
Represents the planetmoons on the sky map.
- Version
- 0.1
Definition at line 41 of file planetmoonscomponent.h.
Constructor & Destructor Documentation
| PlanetMoonsComponent::PlanetMoonsComponent | ( | SkyComposite * | parent, | 
| SolarSystemSingleComponent * | pla, | ||
| KSPlanetBase::Planets | planet | ||
| ) | 
Constructor parent pointer to the parent SkyComposite. 
Definition at line 38 of file planetmoonscomponent.cpp.
| PlanetMoonsComponent::~PlanetMoonsComponent | ( | ) | 
Destructor.
Definition at line 60 of file planetmoonscomponent.cpp.
Member Function Documentation
| 
 | virtual | 
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use. 
Implements SkyComponent.
Definition at line 112 of file planetmoonscomponent.cpp.
| 
 | protectedvirtual | 
Draw trails for objects.
Reimplemented from SkyComponent.
Definition at line 152 of file planetmoonscomponent.cpp.
| 
 | virtual | 
- Returns
- a pointer to a moon if its name matches the argument
name the name to be matched 
- Returns
- a SkyObject pointer to the moon whose name matches the argument, or a NULL pointer if no match was found.
Reimplemented from SkyComponent.
Definition at line 83 of file planetmoonscomponent.cpp.
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 
- Returns
- a pointer to the nearest SkyObject
- Note
- This function simply returns a NULL pointer; it is reimplemented in various sub-classes.
Reimplemented from SkyComponent.
Definition at line 97 of file planetmoonscomponent.cpp.
| 
 | virtual | 
- Returns
- true if component is to be drawn on the map.
Reimplemented from SkyComponent.
Definition at line 65 of file planetmoonscomponent.cpp.
| 
 | virtual | 
Update the sky position(s) of this component.
This function usually just updates the Horizontal (Azimuth/Altitude) coordinates of its member object(s). However, the precession and nutation must also be recomputed periodically. num Pointer to the KSNumbers object 
- See also
- SingleComponent::update()
- ListComponent::update()
- ConstellationBoundaryComponent::update()
Reimplemented from SkyComponent.
Definition at line 69 of file planetmoonscomponent.cpp.
| 
 | virtual | 
Reimplemented from SkyComponent.
Definition at line 76 of file planetmoonscomponent.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
 KDE API Reference
    KDE API Reference