ConstellationArtComponent
#include <constellationartcomponent.h>
Public Member Functions | |
ConstellationArtComponent (SkyComposite *, CultureList *cultures) | |
~ConstellationArtComponent () override | |
void | deleteData () |
void | draw (SkyPainter *skyp) override |
void | loadData () |
void | showList () |
Public Member Functions inherited from SkyComponent | |
SkyComponent (SkyComposite *parent=nullptr) | |
virtual void | drawTrails (SkyPainter *skyp) |
virtual void | emitProgressText (const QString &message) |
virtual SkyObject * | findByName (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 () |
QStringList & | objectNames (int type) |
virtual SkyObject * | objectNearest (SkyPoint *p, double &maxrad) |
virtual void | objectsInArea (QList< SkyObject * > &list, const SkyRegion ®ion) |
SkyComposite * | parent () |
void | removeFromLists (const SkyObject *obj) |
void | removeFromNames (const SkyObject *obj) |
virtual bool | selected () |
virtual void | update (KSNumbers *) |
virtual void | updateMoons (KSNumbers *) |
virtual void | updateSolarSystemBodies (KSNumbers *) |
Public Attributes | |
QList< ConstellationsArt * > | m_ConstList |
Detailed Description
Represents the ConstellationsArt objects.
For each skyculture there is a separate table in skycultures.sqlite.
- Version
- 0.1
Definition at line 21 of file constellationartcomponent.h.
Constructor & Destructor Documentation
◆ ConstellationArtComponent()
|
explicit |
Constructor.
Definition at line 21 of file constellationartcomponent.cpp.
◆ ~ConstellationArtComponent()
|
override |
Destructor.
Definition at line 28 of file constellationartcomponent.cpp.
Member Function Documentation
◆ deleteData()
void ConstellationArtComponent::deleteData | ( | ) |
deletes all created ConstellationsArt objects.
Used in KStars Lite to reduce memory consumption if Constellation Art is switched off
Definition at line 33 of file constellationartcomponent.cpp.
◆ draw()
|
overridevirtual |
Draw the object on the SkyMap skyp
a pointer to the SkyPainter to use.
Implements SkyComponent.
Definition at line 105 of file constellationartcomponent.cpp.
◆ loadData()
void ConstellationArtComponent::loadData | ( | ) |
Read the skycultures.sqlite database file.
Parse all the data from the skycultures database.Construct a ConstellationsArt object from the data, and add it to a QList.
- Returns
- true if data file is successfully read.
Definition at line 39 of file constellationartcomponent.cpp.
◆ showList()
void ConstellationArtComponent::showList | ( | ) |
Shows the details of the constellations selected skyculture.
Definition at line 95 of file constellationartcomponent.cpp.
Member Data Documentation
◆ m_ConstList
QList<ConstellationsArt *> ConstellationArtComponent::m_ConstList |
Definition at line 49 of file constellationartcomponent.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.