MilkyWay

Search for usage in LXR

#include <milkywayitem.h>

Inheritance diagram for MilkyWay:

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

Detailed Description

Class that handles drawing of MilkyWay (both filled and non-filled)

Author
Artem Fedoskin
Version
1.0

Definition at line 24 of file milkyway.h.

Constructor & Destructor Documentation

◆ MilkyWay()

MilkyWay::MilkyWay ( SkyComposite * parent)
explicit

Constructor parent pointer to the parent SkyComposite.

Definition at line 25 of file milkyway.cpp.

Member Function Documentation

◆ draw()

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

const IndexHash & MilkyWay::getIndexHash ( LineList * skipList)
overrideprotectedvirtual

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

void MilkyWay::loadContours ( QString fname,
QString greeting )

Load skiplists from file.

Definition at line 100 of file milkyway.cpp.

◆ selected()

bool MilkyWay::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()

SkipHashList * MilkyWay::skipList ( LineList * lineList)
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:
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.