Public Member Functions | |
TriStats (Interface *mbi_p, OrientedBoxTreeTool *tool_p, EntityHandle root) | |
virtual ErrorCode | visit (EntityHandle, 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... | |
std::string | commafy (int num) |
void | write_results (std::ostream &out) |
Public Member Functions inherited from moab::OrientedBoxTreeTool::Op | |
virtual | ~Op () |
Public Attributes | |
unsigned | min |
unsigned | max |
unsigned | sum |
unsigned | leaves |
double | sqr |
unsigned | ten_buckets [ten_buckets_max] |
double | ten_buckets_vol [ten_buckets_max] |
Interface * | mbi |
OrientedBoxTreeTool * | tool |
double | tot_vol |
Static Public Attributes | |
static const unsigned | ten_buckets_max = 5 |
Definition at line 222 of file obb_analysis.cpp.
|
inline |
Definition at line 238 of file obb_analysis.cpp.
References moab::OrientedBoxTreeTool::box(), CHECKERR, ErrorCode, and moab::OrientedBox::volume().
|
inline |
Definition at line 292 of file obb_analysis.cpp.
|
inlinevirtual |
Process a leaf node during tree traversal.
Implements moab::OrientedBoxTreeTool::Op.
Definition at line 263 of file obb_analysis.cpp.
References moab::OrientedBoxTreeTool::box(), CHECKERR, ErrorCode, moab::Interface::get_entities_by_type(), moab::OrientedBoxTreeTool::get_moab_instance(), MBTRI, moab::Range::size(), moab::sum(), and moab::OrientedBox::volume().
|
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 256 of file obb_analysis.cpp.
References MB_SUCCESS.
|
inline |
Definition at line 308 of file obb_analysis.cpp.
References moab::std_dev(), and moab::sum().
Referenced by obbstat_write().
unsigned TriStats::leaves |
Definition at line 226 of file obb_analysis.cpp.
unsigned TriStats::max |
Definition at line 226 of file obb_analysis.cpp.
Interface* TriStats::mbi |
Definition at line 233 of file obb_analysis.cpp.
unsigned TriStats::min |
Definition at line 226 of file obb_analysis.cpp.
double TriStats::sqr |
Definition at line 227 of file obb_analysis.cpp.
unsigned TriStats::sum |
Definition at line 226 of file obb_analysis.cpp.
unsigned TriStats::ten_buckets[ten_buckets_max] |
Definition at line 230 of file obb_analysis.cpp.
|
static |
Definition at line 229 of file obb_analysis.cpp.
double TriStats::ten_buckets_vol[ten_buckets_max] |
Definition at line 231 of file obb_analysis.cpp.
OrientedBoxTreeTool* TriStats::tool |
Definition at line 234 of file obb_analysis.cpp.
double TriStats::tot_vol |
Definition at line 236 of file obb_analysis.cpp.