Provides an interface to perform various checks to BRep shape. More...
Classes | |
class | Options |
Holds options for checker tools. More... | |
struct | Tool |
Tools flags. More... | |
Public Types | |
typedef Options | OptionsType |
typedef cadex::internal::cadex_vector< std::shared_ptr< ModelCheck_BaseProblem > >::type | ProblemsContainerType |
Type of container for problems. | |
typedef cadex::internal::cadex_vector< TopoDS_Shape >::type | ShapesContainerType |
Type of container for shapes. | |
typedef std::pair< TopoDS_Shape, std::shared_ptr< ModelCheck_BaseProblem > > | ShapeWithProblemType |
Type of pair: shape and it's problem. | |
typedef cadex::internal::cadex_multimap< ModelCheck_ProblemType, ShapeWithProblemType >::type | ProbTypeShapesMapType |
Type of map, where key is a type of problem and value is a list of all shapes with such problem. | |
typedef std::shared_ptr< internal::ModelCheck_BRepCheckerImpl > | ImplType |
Public Member Functions | |
ModelCheck_BRepChecker () | |
Constructor. | |
ModelCheck_BRepChecker (const OptionsType &theOptions) | |
Constructor. | |
OptionsType & | SetOptions () |
Returns an internal Options object. | |
void | SetOptions (const OptionsType &theOptions) |
Sets an Options object. | |
const OptionsType & | Options () const |
Returns an internal Options object. | |
bool | Check (const TopoDS_Shape &theShape) |
Performs check on the given shape. More... | |
bool | HasProblems () const |
Returns true if last checked shape has problems and false otherwise. | |
ShapesContainerType | ProblematicShapes () const |
Returns all subshapes which has problems. | |
const ProblemsContainerType & | Problems (const TopoDS_Shape &theShape) const |
Returns problems of the given subshape. | |
const ProbTypeShapesMapType & | Problems (ModelCheck_ErrorLevel theLevel) const |
Returns problems of the given level. More... | |
size_t | NumberOfProblems (const TopoDS_Shape &theShape) const |
Returns number of problems for the given subshape. | |
size_t | NumberOfProblems (ModelCheck_ErrorLevel theLevel) const |
Returns number of problems for the given level. | |
const TopoDS_Shape & | Shape () const |
Returns the last checked shape. | |
size_t | FindID (const TopoDS_Shape &theShape) const |
Returns the ID of subshape. | |
const TopoDS_Shape & | FindShape (size_t theID) const |
Returns the shape with given ID. | |
const Base_ProgressStatus & | ProgressStatus () const |
Returns progress status. | |
Base_ProgressStatus & | ProgressStatus () |
Returns progress status. | |
const ImplType & | Impl () const |
Protected Attributes | |
ImplType | myImpl |
Provides an interface to perform various checks to BRep shape.
Usage example:
bool cadex::ModelCheck_BRepChecker::Check | ( | const TopoDS_Shape & | theShape | ) |
Performs check on the given shape.
One checker can be safely applied to a set of shapes (e.g. in loop). The options will remain same and all internal data will be reinitialized to work with new shape.
const ModelCheck_BRepChecker::ProbTypeShapesMapType & cadex::ModelCheck_BRepChecker::Problems | ( | ModelCheck_ErrorLevel | theLevel | ) | const |
Returns problems of the given level.
This is an another approach to get all collected problems from checker. A simple example on how to use this method: