GuideLabelNode
#include <guidelabelnode.h>
Public Member Functions | |
GuideLabelNode (QString name, LabelsItem::label_t type) | |
virtual void | changePos (QPointF pos) override |
const QString | name () const |
void | setLabelPos (QPointF pos, float angle) |
virtual void | update () override |
Public Member Functions inherited from SkyNode | |
SkyNode (SkyObject *skyObject) | |
void | addChildNode (QSGNode *node) |
virtual void | hide () |
int | hideCount () |
SkyMapLite * | map () const |
const Projector * | projector () |
virtual void | show () |
SkyObject * | skyObject () const |
void | update (bool drawLabel) |
bool | visible () |
Public Member Functions inherited from QSGTransformNode | |
const QMatrix4x4 & | matrix () const const |
void | setMatrix (const QMatrix4x4 &matrix) |
Public Member Functions inherited from QSGNode | |
void | appendChildNode (QSGNode *node) |
QSGNode * | childAtIndex (int i) const const |
int | childCount () const const |
QSGNode * | firstChild () const const |
Flags | flags () const const |
void | insertChildNodeAfter (QSGNode *node, QSGNode *after) |
void | insertChildNodeBefore (QSGNode *node, QSGNode *before) |
virtual bool | isSubtreeBlocked () const const |
QSGNode * | lastChild () const const |
void | markDirty (DirtyState bits) |
QSGNode * | nextSibling () const const |
QSGNode * | parent () const const |
void | prependChildNode (QSGNode *node) |
virtual void | preprocess () |
QSGNode * | previousSibling () const const |
void | removeAllChildNodes () |
void | removeChildNode (QSGNode *node) |
void | setFlag (Flag f, bool enabled) |
void | setFlags (Flags f, bool enabled) |
NodeType | type () const const |
Public Attributes | |
qreal | bot { 0 } |
QPointF | labelPos |
qreal | left { 0 } |
qreal | right { 0 } |
qreal | top { 0 } |
Public Attributes inherited from SkyNode | |
SkyOpacityNode * | m_opacity { nullptr } |
Public Attributes inherited from QSGNode | |
BasicNodeType | |
ClipNodeType | |
DirtyForceUpdate | |
DirtyGeometry | |
DirtyMaterial | |
DirtyMatrix | |
DirtyNodeAdded | |
DirtyNodeRemoved | |
DirtyOpacity | |
DirtyPropagationMask | |
DirtySubtreeBlocked | |
DirtyUsePreprocess | |
GeometryNodeType | |
InternalReserved | |
IsVisitableNode | |
OpacityNodeType | |
OwnedByParent | |
OwnsGeometry | |
OwnsMaterial | |
OwnsOpaqueMaterial | |
RenderNodeType | |
RootNodeType | |
TransformNodeType | |
UsePreprocess | |
Additional Inherited Members | |
Public Types inherited from QSGNode | |
typedef | DirtyState |
enum | DirtyStateBit |
enum | Flag |
typedef | Flags |
enum | NodeType |
Protected Attributes inherited from SkyNode | |
bool | m_drawLabel { false } |
int | m_hideCount { 0 } |
SkyObject * | m_skyObject { nullptr } |
Detailed Description
Currently this class is not used anywhere.
- Version
- 1.0
Definition at line 27 of file guidelabelnode.h.
Constructor & Destructor Documentation
◆ GuideLabelNode()
GuideLabelNode::GuideLabelNode | ( | QString | name, |
LabelsItem::label_t | type ) |
Constructor.
- Parameters
-
name name of the guide label type type of the label item
Definition at line 14 of file guidelabelnode.cpp.
Member Function Documentation
◆ changePos()
|
overridevirtual |
changePos changes the position m_point
- Parameters
-
pos new position
Reimplemented from SkyNode.
Definition at line 40 of file guidelabelnode.cpp.
◆ name()
|
inline |
Definition at line 53 of file guidelabelnode.h.
◆ setLabelPos()
void GuideLabelNode::setLabelPos | ( | QPointF | pos, |
float | angle ) |
setLabelPos sets the position of label with the given offset from SkyObject's position and makes the label visible if it was hidden
- Parameters
-
pos position of label angle label angle
Definition at line 58 of file guidelabelnode.cpp.
◆ update()
|
overridevirtual |
Updates coordinate of the object on SkyMapLite.
Reimplemented from SkyNode.
Definition at line 102 of file guidelabelnode.cpp.
Member Data Documentation
◆ bot
qreal GuideLabelNode::bot { 0 } |
Definition at line 59 of file guidelabelnode.h.
◆ labelPos
QPointF GuideLabelNode::labelPos |
Definition at line 55 of file guidelabelnode.h.
◆ left
qreal GuideLabelNode::left { 0 } |
Definition at line 56 of file guidelabelnode.h.
◆ right
qreal GuideLabelNode::right { 0 } |
Definition at line 57 of file guidelabelnode.h.
◆ top
qreal GuideLabelNode::top { 0 } |
Definition at line 58 of file guidelabelnode.h.
The documentation for this class was generated from the following files:
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.