GuideLabelNode

Search for usage in LXR

#include <guidelabelnode.h>

Inheritance diagram for GuideLabelNode:

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 ()
 
SkyMapLitemap () const
 
const Projectorprojector ()
 
virtual void show ()
 
SkyObjectskyObject () const
 
void update (bool drawLabel)
 
bool visible ()
 
- Public Member Functions inherited from QSGTransformNode
const QMatrix4x4matrix () const const
 
void setMatrix (const QMatrix4x4 &matrix)
 
- Public Member Functions inherited from QSGNode
void appendChildNode (QSGNode *node)
 
QSGNodechildAtIndex (int i) const const
 
int childCount () const const
 
QSGNodefirstChild () const const
 
QSGNode::Flags flags () const const
 
void insertChildNodeAfter (QSGNode *node, QSGNode *after)
 
void insertChildNodeBefore (QSGNode *node, QSGNode *before)
 
virtual bool isSubtreeBlocked () const const
 
QSGNodelastChild () const const
 
void markDirty (QSGNode::DirtyState bits)
 
QSGNodenextSibling () const const
 
QSGNodeparent () const const
 
void prependChildNode (QSGNode *node)
 
virtual void preprocess ()
 
QSGNodepreviousSibling () const const
 
void removeAllChildNodes ()
 
void removeChildNode (QSGNode *node)
 
void setFlag (QSGNode::Flag f, bool enabled)
 
void setFlags (QSGNode::Flags f, bool enabled)
 
QSGNode::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
SkyOpacityNodem_opacity { nullptr }
 
- Public Attributes inherited from QSGNode
 BasicNodeType
 
 ClipNodeType
 
 DirtyForceUpdate
 
 DirtyGeometry
 
 DirtyMaterial
 
 DirtyMatrix
 
 DirtyNodeAdded
 
 DirtyNodeRemoved
 
 DirtyOpacity
 
 DirtyPropagationMask
 
typedef DirtyState
 
 DirtySubtreeBlocked
 
 DirtyUsePreprocess
 
typedef Flags
 
 GeometryNodeType
 
 InternalReserved
 
 IsVisitableNode
 
 OpacityNodeType
 
 OwnedByParent
 
 OwnsGeometry
 
 OwnsMaterial
 
 OwnsOpaqueMaterial
 
 RenderNodeType
 
 RootNodeType
 
 TransformNodeType
 
 UsePreprocess
 

Additional Inherited Members

- Public Types inherited from QSGNode
enum  DirtyStateBit
 
enum  Flag
 
enum  NodeType
 
- Protected Attributes inherited from SkyNode
bool m_drawLabel { false }
 
int m_hideCount { 0 }
 
SkyObjectm_skyObject { nullptr }
 

Detailed Description

Currently this class is not used anywhere.

Author
Artem Fedoskin
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
namename of the guide label
typetype of the label item

Definition at line 14 of file guidelabelnode.cpp.

Member Function Documentation

◆ changePos()

void GuideLabelNode::changePos ( QPointF  pos)
overridevirtual

changePos changes the position m_point

Parameters
posnew position

Reimplemented from SkyNode.

Definition at line 40 of file guidelabelnode.cpp.

◆ 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
posposition of label
anglelabel angle

Definition at line 58 of file guidelabelnode.cpp.

◆ update()

void GuideLabelNode::update ( )
overridevirtual

Updates coordinate of the object on SkyMapLite.

Reimplemented from SkyNode.

Definition at line 102 of file guidelabelnode.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.