EarthShadowComponent

Search for usage in LXR

EarthShadowComponent Class Reference

#include <earthshadowcomponent.h>

Inheritance diagram for EarthShadowComponent:

Public Member Functions

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

Detailed Description

The EarthShadowComponent class.

A simple skycomponent for the KSEarthShadow.

Definition at line 19 of file earthshadowcomponent.h.

Constructor & Destructor Documentation

◆ EarthShadowComponent()

EarthShadowComponent::EarthShadowComponent ( SkyComposite * parent,
KSEarthShadow * shadow )

Definition at line 14 of file earthshadowcomponent.cpp.

Member Function Documentation

◆ draw()

void EarthShadowComponent::draw ( SkyPainter * skyp)
overridevirtual

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

Implements SkyComponent.

Definition at line 43 of file earthshadowcomponent.cpp.

◆ selected()

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

Reimplemented from SkyComponent.

Definition at line 26 of file earthshadowcomponent.h.

◆ update()

void EarthShadowComponent::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 20 of file earthshadowcomponent.cpp.

◆ updateSolarSystemBodies()

void EarthShadowComponent::updateSolarSystemBodies ( KSNumbers * num)
overridevirtual

Reimplemented from SkyComponent.

Definition at line 26 of file earthshadowcomponent.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 Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.