MilkyWay
#include <milkywayitem.h>
Public Member Functions | |
MilkyWay (SkyComposite *parent) | |
void | draw (SkyPainter *skyp) override |
void | loadContours (QString fname, QString greeting) |
bool | selected () override |
Public Member Functions inherited from LineListIndex | |
LineListIndex (SkyComposite *parent, const QString &name="") | |
virtual void | JITupdate (LineList *lineList) |
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 *skipList) override |
SkipHashList * | skipList (LineList *lineList) 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 |
virtual void | preDraw (SkyPainter *skyp) |
void | reindexLines () |
void | removeLine (const std::shared_ptr< LineList > &lineList) |
SkyMesh * | skyMesh () |
void | summary () |
Detailed Description
Class that handles drawing of MilkyWay (both filled and non-filled)
- Version
- 1.0
Definition at line 24 of file milkyway.h.
Constructor & Destructor Documentation
◆ MilkyWay()
|
explicit |
Constructor parent
pointer to the parent SkyComposite.
Definition at line 25 of file milkyway.cpp.
Member Function Documentation
◆ draw()
|
overridevirtual |
The top level draw routine.
Draws all the LineLists for any subclass in one fell swoop which minimizes some of the loop overhead. Overridden by MilkWay so it can decide whether to draw outlines or filled. Therefore MilkyWay does not need to override preDraw(). The MilkyWay draw() routine calls all of the more specific draw() routines below.
Reimplemented from LineListIndex.
Definition at line 66 of file milkyway.cpp.
◆ getIndexHash()
Returns an IndexHash from the SkyMesh that contains the set of trixels that cover the SkipList lineList excluding skipped lines as specified in the SkipList.
SkipList is a subclass of LineList. FIXME: Implementation is broken!!
Reimplemented from LineListIndex.
Definition at line 46 of file milkyway.cpp.
◆ loadContours()
Load skiplists from file.
Definition at line 100 of file milkyway.cpp.
◆ selected()
|
overridevirtual |
- Returns
- true if component is to be drawn on the map.
Reimplemented from SkyComponent.
Definition at line 57 of file milkyway.cpp.
◆ skipList()
|
overrideprotectedvirtual |
Returns a boolean indicating whether to skip the i-th line segment in the SkipList skipList.
Note that SkipList is a subclass of LineList. This routine allows us to use the drawing code in LineListIndex instead of repeating it all here. FIXME: Implementation is broken!!
Reimplemented from LineListIndex.
Definition at line 52 of file milkyway.cpp.
The documentation for this class was generated from the following files:
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.