ConstellationLines
#include <constellationlines.h>
Public Member Functions | |
ConstellationLines (SkyComposite *parent, CultureList *cultures) | |
void | reindex (KSNumbers *num) |
bool | selected () override |
Public Member Functions inherited from LineListIndex | |
LineListIndex (SkyComposite *parent, const QString &name="") | |
void | draw (SkyPainter *skyp) override |
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 void | update (KSNumbers *) |
virtual void | updateMoons (KSNumbers *) |
virtual void | updateSolarSystemBodies (KSNumbers *) |
Protected Member Functions | |
const IndexHash & | getIndexHash (LineList *lineList) override |
void | JITupdate (LineList *lineList) override |
void | preDraw (SkyPainter *skyp) override |
Protected Member Functions inherited from LineListIndex | |
void | appendBoth (const std::shared_ptr< LineList > &lineList) |
void | appendLine (const std::shared_ptr< LineList > &lineList) |
void | appendPoly (const std::shared_ptr< LineList > &lineList) |
virtual MeshBufNum_t | drawBuffer () |
void | drawFilled (SkyPainter *skyp) |
void | drawLines (SkyPainter *skyp) |
void | intro () |
virtual LineListLabel * | label () |
LineListList | listList () const |
QString | name () const |
void | reindexLines () |
void | removeLine (const std::shared_ptr< LineList > &lineList) |
virtual SkipHashList * | skipList (LineList *lineList) |
SkyMesh * | skyMesh () |
void | summary () |
Detailed Description
Collection of lines making the 88 constellations.
- Version
- 0.1
Definition at line 22 of file constellationlines.h.
Constructor & Destructor Documentation
◆ ConstellationLines()
ConstellationLines::ConstellationLines | ( | SkyComposite * | parent, |
CultureList * | cultures ) |
Constructor parent
Pointer to the parent SkyComposite object.
Constellation lines data is read from clines.dat. Each line in the file contains a command character ("M" means move to this position without drawing a line, "D" means draw a line from the previous position to this one), followed by the genetive name of a star, which marks the position of the constellation node.
Definition at line 23 of file constellationlines.cpp.
Member Function Documentation
◆ getIndexHash()
Returns an IndexHash from the SkyMesh that contains the set of trixels that cover lineList.
Overridden by SkipListIndex so it can pass SkyMesh an IndexHash indicating which line segments should not be indexed
- Parameters
-
lineList contains the list of points to be covered.
Reimplemented from LineListIndex.
Definition at line 130 of file constellationlines.cpp.
◆ JITupdate()
|
overrideprotectedvirtual |
we need to override the update routine because stars are updated differently from mere SkyPoints.
Reimplemented from LineListIndex.
Definition at line 138 of file constellationlines.cpp.
◆ preDraw()
|
overrideprotectedvirtual |
Set the QColor and QPen for drawing.
Reimplemented from LineListIndex.
Definition at line 123 of file constellationlines.cpp.
◆ reindex()
void ConstellationLines::reindex | ( | KSNumbers * | num | ) |
Definition at line 153 of file constellationlines.cpp.
◆ selected()
|
overridevirtual |
- Returns
- true if component is to be drawn on the map.
Reimplemented from SkyComponent.
Definition at line 114 of file constellationlines.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.