Implement this and pass instance to preorder_traverse. More...
#include <OrientedBoxTreeTool.hpp>
Inheritance diagram for moab::OrientedBoxTreeTool::Op:Public Member Functions | |
| virtual ErrorCode | visit (EntityHandle node, int depth, bool &descend)=0 |
| Visit a node in the tree during a traversal. More... | |
| virtual ErrorCode | leaf (EntityHandle node)=0 |
| Process a leaf node during tree traversal. More... | |
| virtual | ~Op () |
Implement this and pass instance to preorder_traverse.
This interface may be implemented and an instance passed to preorder_traverse to define some operation to do when traversing the tree.
Definition at line 492 of file OrientedBoxTreeTool.hpp.
|
virtual |
Definition at line 47 of file OrientedBoxTreeTool.cpp.
|
pure virtual |
Process a leaf node during tree traversal.
Implemented in moab::TreeNodePrinter, TriStats, TriCounter, moab::TreeLayoutPrinter, moab::RayIntersectSets, and moab::RayIntersector.
Referenced by moab::OrientedBoxTreeTool::preorder_traverse().
|
pure 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. |
Implemented in TriStats, TriCounter, moab::TreeNodePrinter, moab::TreeLayoutPrinter, moab::RayIntersectSets, and moab::RayIntersector.
Referenced by moab::OrientedBoxTreeTool::preorder_traverse().