#include <ArmarXGui/gui-plugins/ConditionViewerPlugin/TreeNode.h>
|
| virtual void | drawEdge (QLineF line) |
| | Draws an edge to this node.
|
| |
| virtual void | drawNode (QRectF boundingBox) |
| | Draws the node.
|
| |
| void | setSize (QSize nodeSize) |
| | Sets size of node.
|
| |
◆ 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 |
◆ addChild()
Adds a child to the node in the tree structure.
- Parameters
-
◆ 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.
◆ 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.
◆ getBoundingBox()
| QRectF getBoundingBox |
( |
| ) |
|
|
inline |
Retrieve boundingbox of the node.
Only valid after update has been called.
- Returns
- boundingbox of the node in the graphicsscene
◆ getChildren()
◆ getSize()
Retrieve size of the node.
- Returns
- node size
◆ 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
◆ setSize()
| void setSize |
( |
QSize | nodeSize | ) |
|
|
inlineprotected |
Sets size of node.
Layout has to be updated afterwards.
- Parameters
-
◆ 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. |
◆ 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