A cursor that computes a tree layout for VisualNodes. More...
#include <layoutcursor.hh>
Public Member Functions | |
LayoutCursor (VisualNode *theNode, const VisualNode::NodeAllocator &na) | |
Constructor. | |
![]() | |
VisualNode * | node (void) |
Return current node. | |
NodeCursor (VisualNode *theNode, const typename VisualNode::NodeAllocator &na) | |
Construct cursor, initially set to theNode. | |
unsigned int | alternative (void) |
Return current alternative. | |
void | alternative (unsigned int a) |
Set current alternative. | |
bool | mayMoveUpwards (void) |
Test if the cursor may move to the parent node. | |
void | moveUpwards (void) |
Move cursor to the parent node. | |
bool | mayMoveDownwards (void) |
Test if cursor may move to the first child node. | |
void | moveDownwards (void) |
Move cursor to the first child node. | |
bool | mayMoveSidewards (void) |
Test if cursor may move to the first sibling. | |
void | moveSidewards (void) |
Move cursor to the first sibling. | |
Cursor interface | |
bool | mayMoveDownwards (void) |
Test if the cursor may move to the first child node. | |
void | processCurrentNode (void) |
Compute layout for current node. | |
Additional Inherited Members | |
![]() | |
void | node (VisualNode *n) |
Set current node to n. | |
VisualNode * | startNode (void) |
Return start node. | |
![]() | |
const VisualNode::NodeAllocator & | na |
The node allocator. | |
A cursor that computes a tree layout for VisualNodes.
Definition at line 44 of file layoutcursor.hh.
|
inline |
Constructor.
Definition at line 43 of file layoutcursor.hpp.
|
inline |
Test if the cursor may move to the first child node.
Definition at line 37 of file layoutcursor.hpp.
|
inline |
Compute layout for current node.
Definition at line 48 of file layoutcursor.hpp.