
The shape of a subtree. More...
#include <visualnode.hh>
Public Member Functions | |
| int | depth (void) const |
| Return depth of the shape. More... | |
| void | setDepth (int d) |
| Set depth of the shape to d (must be smaller than original depth) More... | |
| void | computeBoundingBox (void) |
| Compute bounding box. More... | |
| const Extent & | operator[] (int i) const |
| Return extent at depth i. More... | |
| Extent & | operator[] (int i) |
| Return extent at depth i. More... | |
| bool | getExtentAtDepth (int depth, Extent &extent) |
| Return if extent exists at depth, if yes return it in extent. More... | |
| const BoundingBox & | getBoundingBox (void) const |
| Return bounding box. More... | |
Static Public Member Functions | |
| static Shape * | allocate (int d) |
| Construct shape of depth d. More... | |
| static void | deallocate (Shape *) |
Static Public Attributes | |
| static Shape * | leaf |
| Static shape for leaf nodes. More... | |
| static Shape * | hidden |
| Static shape for hidden nodes. More... | |
The shape of a subtree.
Definition at line 87 of file visualnode.hh.
|
inlinestatic |
Construct shape of depth d.
Definition at line 85 of file visualnode.hpp.
|
inlinestatic |
Definition at line 95 of file visualnode.hpp.
|
inline |
Return depth of the shape.
Definition at line 64 of file visualnode.hpp.
|
inline |
Set depth of the shape to d (must be smaller than original depth)
Definition at line 67 of file visualnode.hpp.
|
inline |
Compute bounding box.
Definition at line 114 of file visualnode.hpp.
|
inline |
Return extent at depth i.
Definition at line 73 of file visualnode.hpp.
|
inline |
Return extent at depth i.
Definition at line 79 of file visualnode.hpp.
|
inline |
Return if extent exists at depth, if yes return it in extent.
Definition at line 101 of file visualnode.hpp.
|
inline |
Return bounding box.
Definition at line 128 of file visualnode.hpp.
|
static |
Static shape for leaf nodes.
Definition at line 108 of file visualnode.hh.
|
static |
Static shape for hidden nodes.
Definition at line 110 of file visualnode.hh.