|
SHAPER
9.15.0
|
This class is used to explore subshapes on shape. More...

Public Member Functions | |
| GEOMAPI_EXPORT | GeomAPI_ShapeExplorer () |
| Default constructor. Creates an empty explorer, becomes useful after Init. More... | |
| GEOMAPI_EXPORT | GeomAPI_ShapeExplorer (const std::shared_ptr< GeomAPI_Shape > &theShape, const GeomAPI_Shape::ShapeType toFind, const GeomAPI_Shape::ShapeType toAvoid=GeomAPI_Shape::SHAPE) |
| Constructs an explorer to search on theShape, for shapes of type toFind, that are not part of a shape toAvoid. More... | |
| GEOMAPI_EXPORT void | init (const std::shared_ptr< GeomAPI_Shape > &theShape, const GeomAPI_Shape::ShapeType toFind, const GeomAPI_Shape::ShapeType toAvoid=GeomAPI_Shape::SHAPE) |
| Resets this explorer. More... | |
| GEOMAPI_EXPORT bool | more () const |
| GEOMAPI_EXPORT void | next () |
| Moves to the next Shape in the exploration or do nothing if there are no more shapes to explore. More... | |
| GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Shape > | current () |
| GEOMAPI_EXPORT void | reinit () |
| Reinitialize the exploration with the original arguments. More... | |
| GEOMAPI_EXPORT int | depth () const |
| GEOMAPI_EXPORT void | clear () |
| Clears the content of the explorer. It will return False on more(). More... | |
| template<class T > | |
| T * | implPtr () |
| Returns the pointer to the impl. More... | |
| template<class T > | |
| const T * | implPtr () const |
| Returns the pointer to the impl. More... | |
| template<class T > | |
| const T & | impl () const |
| Returns the reference object of the impl. More... | |
| template<class T > | |
| void | setImpl (T *theImpl) |
| Updates the impl (deletes the old one) More... | |
| GEOMAPI_EXPORT bool | empty () const |
| Returns true if the impl is empty. More... | |
This class is used to explore subshapes on shape.
| GeomAPI_ShapeExplorer::GeomAPI_ShapeExplorer | ( | ) |
Default constructor. Creates an empty explorer, becomes useful after Init.
| GeomAPI_ShapeExplorer::GeomAPI_ShapeExplorer | ( | const std::shared_ptr< GeomAPI_Shape > & | theShape, |
| const GeomAPI_Shape::ShapeType | toFind, | ||
| const GeomAPI_Shape::ShapeType | toAvoid = GeomAPI_Shape::SHAPE |
||
| ) |
Constructs an explorer to search on theShape, for shapes of type toFind, that are not part of a shape toAvoid.
If the shape toAvoid is equal to GeomAPI_SHape::SHAPE, or if it is the same as, or less complex than the shape toFind it has no effect on the search.
| [in] | theShape | shape to explore. |
| [in] | toFind | shape type to find. |
| [in] | toAvoid | shape type to avoid. |
| void GeomAPI_ShapeExplorer::init | ( | const std::shared_ptr< GeomAPI_Shape > & | theShape, |
| const GeomAPI_Shape::ShapeType | toFind, | ||
| const GeomAPI_Shape::ShapeType | toAvoid = GeomAPI_Shape::SHAPE |
||
| ) |
Resets this explorer.
It is initialized to search on theShape, for shapes of type toFind, that are not part of a shape toAvoid. If the shape toAvoid is equal to GeomAPI_SHape::SHAPE, or if it is the same as, or less complex than the shape toFind it has no effect on the search.
| [in] | theShape | shape to explore. |
| [in] | toFind | shape type to find. |
| [in] | toAvoid | shape type to avoid. |
| bool GeomAPI_ShapeExplorer::more | ( | ) | const |
| void GeomAPI_ShapeExplorer::next | ( | ) |
Moves to the next Shape in the exploration or do nothing if there are no more shapes to explore.
| std::shared_ptr< GeomAPI_Shape > GeomAPI_ShapeExplorer::current | ( | ) |
| void GeomAPI_ShapeExplorer::reinit | ( | ) |
Reinitialize the exploration with the original arguments.
| int GeomAPI_ShapeExplorer::depth | ( | ) | const |
| void GeomAPI_ShapeExplorer::clear | ( | ) |
Clears the content of the explorer. It will return False on more().
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the reference object of the impl.
|
inlineinherited |
Updates the impl (deletes the old one)
|
inherited |
Returns true if the impl is empty.