Public Member Functions | |
TreeLayoutPrinter (std::ostream &stream, Interface *instance) | |
virtual ErrorCode | visit (EntityHandle node, int depth, bool &descend) |
Visit a node in the tree during a traversal. More... | |
virtual ErrorCode | leaf (EntityHandle node) |
Process a leaf node during tree traversal. More... | |
Public Member Functions inherited from moab::OrientedBoxTreeTool::Op | |
virtual | ~Op () |
Private Attributes | |
Interface * | instance |
std::ostream & | outputStream |
std::vector< bool > | path |
Definition at line 1417 of file OrientedBoxTreeTool.cpp.
moab::TreeLayoutPrinter::TreeLayoutPrinter | ( | std::ostream & | stream, |
Interface * | instance | ||
) |
Definition at line 1431 of file OrientedBoxTreeTool.cpp.
|
virtual |
Process a leaf node during tree traversal.
Implements moab::OrientedBoxTreeTool::Op.
Definition at line 1469 of file OrientedBoxTreeTool.cpp.
References MB_SUCCESS.
|
virtual |
Visit a node in the tree during a traversal.
This method is called for each node in the tree visited during a pre-order traversal.
node | The EntityHandle for the entity set for the tree node. |
depth | The current depth in the tree. |
descend | Output: if false, traversal will skip children of the current node, or if the current node is a leaf, the 'leaf' method will not be called. |
Implements moab::OrientedBoxTreeTool::Op.
Definition at line 1436 of file OrientedBoxTreeTool.cpp.
References moab::Interface::id_from_handle(), instance, MB_SUCCESS, outputStream, and path.
|
private |
Definition at line 1426 of file OrientedBoxTreeTool.cpp.
Referenced by visit().
|
private |
Definition at line 1427 of file OrientedBoxTreeTool.cpp.
Referenced by visit().
|
private |
Definition at line 1428 of file OrientedBoxTreeTool.cpp.
Referenced by visit().