Inheritance diagram for TriCounter:
Collaboration diagram for TriCounter:Public Member Functions | |
| TriCounter (Interface *mbi_p, OrientedBoxTreeTool *tool_p, const CartVect &p) | |
| virtual ErrorCode | visit (EntityHandle node, int, 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 () |
Public Attributes | |
| int | count |
| Interface * | mbi |
| OrientedBoxTreeTool * | tool |
| const CartVect & | pt |
Definition at line 16 of file obb_analysis.cpp.
|
inline |
Definition at line 25 of file obb_analysis.cpp.
|
inlinevirtual |
Process a leaf node during tree traversal.
Implements moab::OrientedBoxTreeTool::Op.
Definition at line 40 of file obb_analysis.cpp.
References ErrorCode, moab::OrientedBoxTreeTool::get_moab_instance(), moab::Interface::get_number_entities_by_type(), and MBTRI.
|
inlinevirtual |
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 30 of file obb_analysis.cpp.
References moab::OrientedBoxTreeTool::box(), moab::OrientedBox::contained(), and ErrorCode.
| int TriCounter::count |
Definition at line 20 of file obb_analysis.cpp.
Referenced by obbvis_create().
| Interface* TriCounter::mbi |
Definition at line 21 of file obb_analysis.cpp.
| const CartVect& TriCounter::pt |
Definition at line 23 of file obb_analysis.cpp.
| OrientedBoxTreeTool* TriCounter::tool |
Definition at line 22 of file obb_analysis.cpp.