ConstellationLines

Search for usage in LXR

#include <constellationlines.h>

Inheritance diagram for ConstellationLines:

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 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 update (KSNumbers *)
 
virtual void updateMoons (KSNumbers *)
 
virtual void updateSolarSystemBodies (KSNumbers *)
 

Protected Member Functions

const IndexHashgetIndexHash (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)
 
SkyMeshskyMesh ()
 
void summary ()
 

Detailed Description

Collection of lines making the 88 constellations.

Author
Jason Harris
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()

const IndexHash & ConstellationLines::getIndexHash ( LineList * lineList)
overrideprotectedvirtual

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
lineListcontains the list of points to be covered.

Reimplemented from LineListIndex.

Definition at line 130 of file constellationlines.cpp.

◆ JITupdate()

void ConstellationLines::JITupdate ( LineList * lineList)
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()

void ConstellationLines::preDraw ( SkyPainter * skyp)
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()

bool ConstellationLines::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:
This file is part of the KDE documentation.
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.