Kstars
linelistindex.cpp
34 LineListIndex::LineListIndex(SkyComposite *parent, const QString &name) : SkyComponent(parent), m_name(name)
251 printf("%4d out of %4d trixels in line index %3d%%\n", lineSize, total, 100 * lineSize / total);
Definition: MeshIterator.h:20
LineListIndex(SkyComposite *parent, const QString &name="")
Constructor Simply set the internal skyMesh, parent, and name.
Definition: linelistindex.cpp:34
Definition: linelist.h:24
bool removeOne(const T &t)
void drawFilled(SkyPainter *skyp)
Draws all the lines in m_listList as filled polygons in float mode.
Definition: linelistindex.cpp:203
void drawLines(SkyPainter *skyp)
Draws all the lines in m_listList as simple lines in float mode.
Definition: linelistindex.cpp:180
void append(const T &value)
Definition: kstarsdata.h:71
void appendBoth(const std::shared_ptr< LineList > &lineList)
a convenience method that adds a lineList to both the lineIndex and the polyIndex.
Definition: linelistindex.cpp:100
Definition: skycomposite.h:29
void reindexLines()
as the name says, recreates the lineIndex using the LineLists in the previous index.
Definition: linelistindex.cpp:108
virtual void emitProgressText(const QString &message)
Emit signal about progress.
Definition: skycomponent.cpp:18
QString i18n(const char *text, const TYPE &arg...)
void summary()
prints out some summary statistics if the skyMesh debug is greater than 1.
Definition: linelistindex.cpp:241
QHash::const_iterator constBegin() const const
QHash::const_iterator constEnd() const const
const IndexHash & indexPoly(SkyList *points)
fills a QHash with the trixel indices needed to cover the polygon specified in the QList<SkyPoints*> ...
Definition: skymesh.cpp:208
Definition: skycomponent.h:95
virtual const IndexHash & getIndexHash(LineList *lineList)
Returns an IndexHash from the SkyMesh that contains the set of trixels that cover lineList.
Definition: linelistindex.cpp:42
virtual void drawSkyPolygon(LineList *list, bool forceClip=true)=0
Draw a polygon in the sky.
SkyList * points()
return the list of points for iterating or appending (or whatever).
Definition: linelist.h:33
static SkyMesh * Instance()
returns the default instance of SkyMesh or null if it has not yet been created.
Definition: skymesh.cpp:39
virtual SkipHashList * skipList(LineList *lineList)
Also overridden by SkipListIndex.
Definition: linelistindex.cpp:174
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
void appendLine(const std::shared_ptr< LineList > &lineList)
Typically called from within a subclasses constructors.
Definition: linelistindex.cpp:63
virtual void preDraw(SkyPainter *skyp)
Gives the subclasses access to the top of the draw() method.
Definition: linelistindex.cpp:153
const IndexHash & indexLine(SkyList *points)
fills a QHash with the trixel indices needed to cover all the line segments specified in the QVector<...
Definition: skymesh.cpp:126
SolidLine
virtual void drawSkyPolyline(LineList *list, SkipHashList *skipList=nullptr, LineListLabel *label=nullptr)=0
Draw a polyline in the sky.
virtual MeshBufNum_t drawBuffer()
a callback overridden by NoPrecessIndex so it can use the drawing code with the non-reverse-precessed...
Definition: linelistindex.h:142
void appendPoly(const std::shared_ptr< LineList > &lineList)
Typically called from within a subclasses constructors.
Definition: linelistindex.cpp:82
virtual void JITupdate(LineList *lineList)
this is called from within the draw routines when the updateID of the lineList is stale.
Definition: linelistindex.cpp:129
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:02:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 04:02:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.