moab
moab::OrientedBoxTreeTool::Op Class Reference

Implement this and pass instance to preorder_traverse. More...

#include <OrientedBoxTreeTool.hpp>

Inheritance diagram for moab::OrientedBoxTreeTool::Op:
moab::RayIntersector moab::RayIntersectSets moab::TreeLayoutPrinter moab::TreeNodePrinter TriCounter TriStats

List of all members.

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 ()

Detailed Description

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 403 of file OrientedBoxTreeTool.hpp.


Constructor & Destructor Documentation

Definition at line 185 of file OrientedBoxTreeTool.cpp.

{}

Member Function Documentation

Process a leaf node during tree traversal.

Implemented in moab::TreeNodePrinter, moab::TreeLayoutPrinter, moab::RayIntersectSets, moab::RayIntersector, TriStats, and TriCounter.

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.

Parameters:
nodeThe EntityHandle for the entity set for the tree node.
depthThe current depth in the tree.
descendOutput: 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, TriStats, and TriCounter.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines