ConstellationArtComponent

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.

Author
M.S.Adityan
Version
0.1

Definition at line 21 of file constellationartcomponent.h.

Constructor & Destructor Documentation

◆ ConstellationArtComponent()

ConstellationArtComponent::ConstellationArtComponent ( SkyComposite * parent,
CultureList * cultures )
explicit

Constructor.

Definition at line 21 of file constellationartcomponent.cpp.

◆ ~ConstellationArtComponent()

ConstellationArtComponent::~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()

void ConstellationArtComponent::draw ( SkyPainter * skyp)
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:
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.