Public Member Functions | |
TreeNodePrinter (std::ostream &stream, bool list_contents, bool list_box, const char *id_tag_name, OrientedBoxTreeTool *tool_ptr) | |
virtual ErrorCode | visit (EntityHandle node, int depth, bool &descend) |
Visit a node in the tree during a traversal. More... | |
virtual ErrorCode | leaf (EntityHandle) |
Process a leaf node during tree traversal. More... | |
Public Member Functions inherited from moab::OrientedBoxTreeTool::Op | |
virtual | ~Op () |
Private Member Functions | |
ErrorCode | print_geometry (EntityHandle node) |
ErrorCode | print_contents (EntityHandle node) |
ErrorCode | print_counts (EntityHandle node) |
Private Attributes | |
bool | printContents |
bool | printGeometry |
bool | haveTag |
Tag | tag |
Tag | gidTag |
Tag | geomTag |
Interface * | instance |
OrientedBoxTreeTool * | tool |
std::ostream & | outputStream |
Definition at line 1474 of file OrientedBoxTreeTool.cpp.
moab::TreeNodePrinter::TreeNodePrinter | ( | std::ostream & | stream, |
bool | list_contents, | ||
bool | list_box, | ||
const char * | id_tag_name, | ||
OrientedBoxTreeTool * | tool_ptr | ||
) |
Definition at line 1504 of file OrientedBoxTreeTool.cpp.
References ErrorCode, GEOM_DIMENSION_TAG_NAME, geomTag, gidTag, moab::Interface::globalId_tag(), haveTag, instance, MB_SUCCESS, MB_TYPE_INTEGER, tag, and moab::Interface::tag_get_handle().
|
inlinevirtual |
Process a leaf node during tree traversal.
Implements moab::OrientedBoxTreeTool::Op.
Definition at line 1485 of file OrientedBoxTreeTool.cpp.
References MB_SUCCESS.
|
private |
Definition at line 1597 of file OrientedBoxTreeTool.cpp.
References moab::Range::begin(), moab::Range::empty(), moab::Range::end(), moab::CN::EntityTypeName(), ErrorCode, moab::Interface::get_entities_by_type(), haveTag, moab::Interface::id_from_handle(), instance, MB_SUCCESS, MBMAXTYPE, MBVERTEX, outputStream, moab::Range::size(), tag, and moab::Interface::tag_get_data().
Referenced by visit().
|
private |
Definition at line 1585 of file OrientedBoxTreeTool.cpp.
References moab::CN::EntityTypeName(), ErrorCode, moab::Interface::get_number_entities_by_type(), instance, MB_SUCCESS, MBMAXTYPE, MBVERTEX, and outputStream.
Referenced by visit().
|
private |
Definition at line 1570 of file OrientedBoxTreeTool.cpp.
References moab::OrientedBox::axis(), moab::OrientedBoxTreeTool::box(), moab::OrientedBox::center, moab::OrientedBox::dimensions(), ErrorCode, moab::OrientedBox::inner_radius(), length(), MB_SUCCESS, moab::OrientedBox::outer_radius(), outputStream, and tool.
Referenced by visit().
|
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 1533 of file OrientedBoxTreeTool.cpp.
References moab::Range::begin(), ErrorCode, geomTag, moab::Interface::get_entities_by_type_and_tag(), gidTag, moab::Interface::id_from_handle(), instance, MB_SUCCESS, MBENTITYSET, outputStream, print_contents(), print_counts(), print_geometry(), printContents, printGeometry, moab::Range::size(), and moab::Interface::tag_get_data().
|
private |
Definition at line 1498 of file OrientedBoxTreeTool.cpp.
Referenced by TreeNodePrinter(), and visit().
|
private |
Definition at line 1498 of file OrientedBoxTreeTool.cpp.
Referenced by TreeNodePrinter(), and visit().
|
private |
Definition at line 1497 of file OrientedBoxTreeTool.cpp.
Referenced by print_contents(), and TreeNodePrinter().
|
private |
Definition at line 1499 of file OrientedBoxTreeTool.cpp.
Referenced by print_contents(), print_counts(), TreeNodePrinter(), and visit().
|
private |
Definition at line 1501 of file OrientedBoxTreeTool.cpp.
Referenced by print_contents(), print_counts(), print_geometry(), and visit().
|
private |
Definition at line 1495 of file OrientedBoxTreeTool.cpp.
Referenced by visit().
|
private |
Definition at line 1496 of file OrientedBoxTreeTool.cpp.
Referenced by visit().
|
private |
Definition at line 1498 of file OrientedBoxTreeTool.cpp.
Referenced by print_contents(), and TreeNodePrinter().
|
private |
Definition at line 1500 of file OrientedBoxTreeTool.cpp.
Referenced by print_geometry().