PlanetMoonsComponent

Search for usage in LXR

#include <planetmoonscomponent.h>

Inheritance diagram for PlanetMoonsComponent:

Public Member Functions

 PlanetMoonsComponent (SkyComposite *parent, SolarSystemSingleComponent *pla, KSPlanetBase::Planets &planet)
 
void draw (SkyPainter *skyp) override
 
SkyObjectfindByName (const QString &name, bool exact=true) override
 
PlanetMoonsgetMoons () const
 
KSPlanetBasegetPlanet () const
 
SkyObjectobjectNearest (SkyPoint *p, double &maxrad) override
 
bool selected () override
 
void update (KSNumbers *num) override
 
void updateMoons (KSNumbers *num) override
 
- Public Member Functions inherited from SkyComponent
 SkyComponent (SkyComposite *parent=nullptr)
 
virtual void emitProgressText (const QString &message)
 
QHash< int, QVector< QPair< QString, const SkyObject * > > > & objectLists ()
 
QVector< QPair< QString, const SkyObject * > > & objectLists (int type)
 
QHash< int, QStringList > & objectNames ()
 
QStringListobjectNames (int type)
 
virtual void objectsInArea (QList< SkyObject * > &list, const SkyRegion &region)
 
SkyCompositeparent ()
 
void removeFromLists (const SkyObject *obj)
 
void removeFromNames (const SkyObject *obj)
 
virtual void updateSolarSystemBodies (KSNumbers *)
 

Protected Member Functions

void drawTrails (SkyPainter *skyp) override
 

Detailed Description

Represents the planetmoons on the sky map.

Author
Vipul Kumar Singh
Médéric boquien
Version
0.1

Definition at line 28 of file planetmoonscomponent.h.

Constructor & Destructor Documentation

◆ PlanetMoonsComponent()

PlanetMoonsComponent::PlanetMoonsComponent ( SkyComposite * parent,
SolarSystemSingleComponent * pla,
KSPlanetBase::Planets & planet )

Constructor.

parent pointer to the parent SkyComposite

Definition at line 19 of file planetmoonscomponent.cpp.

Member Function Documentation

◆ draw()

void PlanetMoonsComponent::draw ( SkyPainter * skyp)
overridevirtual

Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.

Implements SkyComponent.

Definition at line 107 of file planetmoonscomponent.cpp.

◆ drawTrails()

void PlanetMoonsComponent::drawTrails ( SkyPainter * skyp)
overrideprotectedvirtual

Draw trails for objects.

Reimplemented from SkyComponent.

Definition at line 154 of file planetmoonscomponent.cpp.

◆ findByName()

SkyObject * PlanetMoonsComponent::findByName ( const QString & name,
bool exact = true )
overridevirtual
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 nullptr pointer if no match was found.

Reimplemented from SkyComponent.

Definition at line 62 of file planetmoonscomponent.cpp.

◆ getMoons()

PlanetMoons * PlanetMoonsComponent::getMoons ( ) const
inline

Return pointer to stored moons object.

Definition at line 62 of file planetmoonscomponent.h.

◆ getPlanet()

KSPlanetBase * PlanetMoonsComponent::getPlanet ( ) const

Return pointer to stored planet object.

◆ objectNearest()

SkyObject * PlanetMoonsComponent::objectNearest ( SkyPoint * p,
double & maxrad )
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 86 of file planetmoonscomponent.cpp.

◆ selected()

bool PlanetMoonsComponent::selected ( )
overridevirtual
Returns
true if component is to be drawn on the map.

Reimplemented from SkyComponent.

Definition at line 41 of file planetmoonscomponent.cpp.

◆ update()

void PlanetMoonsComponent::update ( KSNumbers * )
overridevirtual

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 47 of file planetmoonscomponent.cpp.

◆ updateMoons()

void PlanetMoonsComponent::updateMoons ( KSNumbers * num)
overridevirtual

Reimplemented from SkyComponent.

Definition at line 55 of file planetmoonscomponent.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:53:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.