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
 
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 (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 (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
SkyOpacityNodem_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 }
 
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.

◆ name()

const QString GuideLabelNode::name ( ) const
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
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.

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.