MOAB: Mesh Oriented datABase
(version 5.5.0)
|
Public Member Functions | |
TreeValidator (Interface *instance_ptr, OrientedBoxTreeTool *tool_ptr, bool print_errors, std::ostream &str, double tol, bool surfs, OrientedBoxTreeTool::Settings s) | |
bool | is_valid () const |
virtual ErrorCode | visit (EntityHandle node, int depth, bool &descend) |
Visit a node in the tree during a traversal. More... | |
virtual ErrorCode | leaf (EntityHandle) |
Process a leaf node during tree traversal. More... | |
Public Member Functions inherited from moab::OrientedBoxTreeTool::Op | |
virtual | ~Op () |
Public Attributes | |
unsigned | entity_count |
unsigned | loose_box_count |
unsigned | child_outside_count |
unsigned | entity_outside_count |
unsigned | num_entities_outside |
unsigned | non_ortho_count |
unsigned | error_count |
unsigned | empty_leaf_count |
unsigned | non_empty_non_leaf_count |
unsigned | entity_invalid_count |
unsigned | unsorted_axis_count |
unsigned | non_unit_count |
unsigned | duplicate_entity_count |
unsigned | bad_outer_radius_count |
unsigned | missing_surface_count |
unsigned | multiple_surface_count |
std::set< EntityHandle > | seen |
int | surface_depth |
EntityHandle | surface_handle |
Private Member Functions | |
void | print (EntityHandle handle, const char *string) |
ErrorCode | error (EntityHandle handle, const char *string) |
Private Attributes | |
Interface *const | instance |
OrientedBoxTreeTool *const | tool |
const bool | printing |
const double | epsilon |
bool | surfaces |
std::ostream & | stream |
OrientedBoxTreeTool::Settings | settings |
Definition at line 314 of file obb_test.cpp.
|
inline |
Definition at line 359 of file obb_test.cpp.
|
inlineprivate |
Definition at line 330 of file obb_test.cpp.
References error_count, and MB_SUCCESS.
|
inline |
Definition at line 375 of file obb_test.cpp.
References error_count.
Referenced by do_file().
|
inlinevirtual |
Process a leaf node during tree traversal.
Implements moab::OrientedBoxTreeTool::Op.
Definition at line 385 of file obb_test.cpp.
References MB_SUCCESS.
|
inlineprivate |
|
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. |
Implements moab::OrientedBoxTreeTool::Op.
Definition at line 391 of file obb_test.cpp.
References moab::OrientedBox::area(), moab::Range::begin(), box(), children, dim, moab::CN::Dimension(), moab::Range::empty(), moab::Range::end(), moab::Range::erase(), moab::error(), error_count, ErrorCode, length(), moab::Range::lower_bound(), moab::OrientedBoxTreeTool::Settings::max_depth, moab::OrientedBoxTreeTool::Settings::max_leaf_entities, MB_SUCCESS, MBENTITYSET, settings, moab::Range::size(), moab::tolerance, and moab::OrientedBox::volume().
unsigned TreeValidator::bad_outer_radius_count |
Definition at line 352 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::child_outside_count |
Definition at line 341 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::duplicate_entity_count |
Definition at line 351 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::empty_leaf_count |
Definition at line 346 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::entity_count |
Definition at line 338 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::entity_invalid_count |
Definition at line 348 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::entity_outside_count |
Definition at line 342 of file obb_test.cpp.
Referenced by do_file().
|
private |
Definition at line 320 of file obb_test.cpp.
unsigned TreeValidator::error_count |
Definition at line 345 of file obb_test.cpp.
Referenced by do_file().
|
private |
Definition at line 317 of file obb_test.cpp.
unsigned TreeValidator::loose_box_count |
Definition at line 340 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::missing_surface_count |
Definition at line 353 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::multiple_surface_count |
Definition at line 354 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::non_empty_non_leaf_count |
Definition at line 347 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::non_ortho_count |
Definition at line 344 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::non_unit_count |
Definition at line 350 of file obb_test.cpp.
Referenced by do_file().
unsigned TreeValidator::num_entities_outside |
Definition at line 343 of file obb_test.cpp.
Referenced by do_file().
|
private |
Definition at line 319 of file obb_test.cpp.
std::set< EntityHandle > TreeValidator::seen |
Definition at line 355 of file obb_test.cpp.
|
private |
Definition at line 323 of file obb_test.cpp.
|
private |
Definition at line 322 of file obb_test.cpp.
int TreeValidator::surface_depth |
Definition at line 356 of file obb_test.cpp.
EntityHandle TreeValidator::surface_handle |
Definition at line 357 of file obb_test.cpp.
|
private |
Definition at line 321 of file obb_test.cpp.
|
private |
Definition at line 318 of file obb_test.cpp.
unsigned TreeValidator::unsorted_axis_count |
Definition at line 349 of file obb_test.cpp.
Referenced by do_file().