#include <ArmarXGui/gui-plugins/ConditionViewerPlugin/TreeNode.h>
Definition at line 43 of file TreeNode.h.
◆ TreeNode()
Constructs a tree node as part of a Qt visualizable tree.
- Parameters
-
scene | the graphics scene used for rendering |
nodeSite | size of the nodes boundingbox |
Definition at line 35 of file TreeNode.cpp.
◆ addChild()
Adds a child to the node in the tree structure.
- Parameters
-
Definition at line 56 of file TreeNode.cpp.
◆ drawEdge()
void drawEdge |
( |
QLineF |
line | ) |
|
|
protectedvirtual |
Draws an edge to this node.
Overwrite this in order provide your own visualization.
- Parameters
-
line | line from parent to this node |
Reimplemented in TermNode.
Definition at line 234 of file TreeNode.cpp.
◆ drawNode()
void drawNode |
( |
QRectF |
boundingBox | ) |
|
|
protectedvirtual |
Draws the node.
Overwrite this in order provide your own visualization.
- Parameters
-
boundingBox | of the node to be drawn |
Reimplemented in TermNode.
Definition at line 240 of file TreeNode.cpp.
◆ getBoundingBox()
QRectF getBoundingBox |
( |
| ) |
|
|
inline |
Retrieve boundingbox of the node.
Only valid after update has been called.
- Returns
- boundingbox of the node in the graphicsscene
Definition at line 87 of file TreeNode.h.
◆ getChildren()
◆ getSize()
Retrieve size of the node.
- Returns
- node size
Definition at line 76 of file TreeNode.h.
◆ getSubTreeSize()
Retrieve size of the complete subtree where the current node is root.
Only valid after update has been callse;
- Returns
- size of the subtree represented by this node
Definition at line 97 of file TreeNode.h.
◆ setSize()
void setSize |
( |
QSize |
nodeSize | ) |
|
|
inlineprotected |
Sets size of node.
Layout has to be updated afterwards.
- Parameters
-
Definition at line 107 of file TreeNode.h.
◆ update()
void update |
( |
QPointF |
positionLeftTop = QPointF(0, 0) | ) |
|
Updates the layout of the tree.
Only applicable for the root node. Is ignored for all other nodes.
- Parameters
-
positionLeftTop | left top position in the graphicsscene, where the tree is drawn. |
Definition at line 65 of file TreeNode.cpp.
◆ DefaultNodeHorizontalSeparator
const QSize DefaultNodeHorizontalSeparator |
|
static |
◆ DefaultNodeSize
const QSize DefaultNodeSize |
|
static |
◆ DefaultNodeVerticalSeparator
const QSize DefaultNodeVerticalSeparator |
|
static |
The documentation for this class was generated from the following files:
- ArmarXGui/gui-plugins/ConditionViewerPlugin/TreeNode.h
- ArmarXGui/gui-plugins/ConditionViewerPlugin/TreeNode.cpp