MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Implement this and pass instance to preorder_traverse. More...
#include <OrientedBoxTreeTool.hpp>
Public Member Functions | |
virtual ErrorCode | visit (EntityHandle node, int depth, bool &descend)=0 |
Visit a node in the tree during a traversal. | |
virtual ErrorCode | leaf (EntityHandle node)=0 |
Process a leaf node during tree traversal. | |
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.
moab::OrientedBoxTreeTool::Op::~Op | ( | ) | [virtual] |
Definition at line 47 of file OrientedBoxTreeTool.cpp.
{}
virtual ErrorCode moab::OrientedBoxTreeTool::Op::leaf | ( | EntityHandle | node | ) | [pure virtual] |
Process a leaf node during tree traversal.
Implemented in moab::TreeNodePrinter, moab::TreeLayoutPrinter, moab::RayIntersectSets, moab::RayIntersector, VtkWriter, CubitWriter, LeafHexer, VtxTagger, TriTagger, TreeValidator, TriStats, and TriCounter.
Referenced by moab::OrientedBoxTreeTool::preorder_traverse().
virtual ErrorCode moab::OrientedBoxTreeTool::Op::visit | ( | EntityHandle | node, |
int | depth, | ||
bool & | descend | ||
) | [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 moab::TreeNodePrinter, moab::TreeLayoutPrinter, moab::RayIntersectSets, moab::RayIntersector, VtkWriter, CubitWriter, LeafHexer, VtxTagger, TriTagger, TreeValidator, TriStats, and TriCounter.
Referenced by moab::OrientedBoxTreeTool::preorder_traverse().