Search for usage in LXR

ConstellationArtComponent Class Reference

#include <constellationartcomponent.h>

Inheritance diagram for ConstellationArtComponent:

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 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 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.


Definition at line 21 of file constellationartcomponent.h.

Constructor & Destructor Documentation

◆ ConstellationArtComponent()

ConstellationArtComponent::ConstellationArtComponent ( SkyComposite parent,
CultureList cultures 


Definition at line 21 of file constellationartcomponent.cpp.

◆ ~ConstellationArtComponent()

ConstellationArtComponent::~ConstellationArtComponent ( )


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()

void ConstellationArtComponent::draw ( SkyPainter skyp)

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.

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.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 16 2022 04:01:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.