Kstars
pointsourcenode.cpp
18PointSourceNode::PointSourceNode(SkyObject *skyObject, RootNode *parentNode, LabelsItem::label_t labelType,
50 (m_labelType == LabelsItem::label_t::STAR_LABEL || m_labelType == LabelsItem::label_t::CATALOG_STAR_LABEL))
64 m_point->setSize(starWidth(m_skyObject->mag())); //Set points size base on the magnitude of object
SkyOpacityNode derived class that represents stars and planets using cached QSGTexture.
Definition pointnode.h:25
PointSourceNode(SkyObject *skyObject, RootNode *parentNode, LabelsItem::label_t labelType=LabelsItem::label_t::STAR_LABEL, char spType='A', float size=1, short trixel=-1)
Constructor.
Definition pointsourcenode.cpp:18
virtual void update() override
update updates coordinates of this node based on the visibility of its SkyObject
Definition pointsourcenode.cpp:77
void updatePoint()
updatePoint initializes PointNode if not done that yet.
Definition pointsourcenode.cpp:56
void updatePos(QPointF pos, bool drawLabel)
updatePos updates position of this node and its label.
Definition pointsourcenode.cpp:99
virtual void changePos(QPointF pos) override
changePos changes the position m_point
Definition pointsourcenode.cpp:67
float starWidth(float mag) const
Get the width of a star of magnitude mag.
Definition pointsourcenode.cpp:25
A QSGClipNode derived class used as a container for holding pointers to nodes and for clipping.
Definition rootnode.h:60
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:50
void translate(const QVector3D &vector)
DirtyMatrix
void markDirty(DirtyState bits)
void setMatrix(const QMatrix4x4 &matrix)
qreal height() const const
qreal width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:53:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:53:02 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.