Kstars
labelnode.cpp
16 : SkyNode(skyObject), m_name(skyObject->labelString()), m_textTexture(new QSGSimpleTextureNode), m_labelType(type),
23 : m_name(name), m_textTexture(new QSGSimpleTextureNode), m_labelType(type), m_fontSize(0), m_zoomFont(false)
void createTexture(QColor color=QColor())
Create texture from label's name.
Definition labelnode.cpp:74
void setLabelPos(QPointF pos)
set the position of label with the given offset from SkyObject's position and makes the label visible...
Definition labelnode.cpp:123
void initialize()
Convenience function to not to repeat the same code in 2 constructors.
Definition labelnode.cpp:35
virtual void update() override
Update position of label according to labelPos and recreate texture if label's size depends on zoom l...
Definition labelnode.cpp:135
virtual void changePos(QPointF pos) override
Changes position of the label.
Definition labelnode.cpp:114
void resetFont()
sets the font in SkyLabeler and in psky back to the zoom dependent value that was set in reset().
Definition skylabeler.cpp:222
void shrinkFont(int delta)
decreases the size of the font in psky and in the SkyLabeler by the delta points.
Definition skylabeler.cpp:206
Provides virtual functions for update of coordinates and nodes hiding.
Definition skynode.h:28
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
qreal x() const const
qreal y() const const
QQuickWindow * window() const const
qreal effectiveDevicePixelRatio() const const
qreal x() const const
qreal y() const const
DirtyMatrix
void appendChildNode(QSGNode *node)
void markDirty(DirtyState bits)
void removeChildNode(QSGNode *node)
QRectF rect() const const
void setOwnsTexture(bool owns)
void setRect(const QRectF &r)
void setTexture(QSGTexture *texture)
QSGTexture * texture() const const
virtual QSize textureSize() const const=0
void setMatrix(const QMatrix4x4 &matrix)
int height() const const
int width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.