20 #ifndef GeomAPI_ShapeExplorer_H_
21 #define GeomAPI_ShapeExplorer_H_
24 #include <GeomAPI_Shape.h>
57 void init(
const std::shared_ptr<GeomAPI_Shape>& theShape,
73 std::shared_ptr<GeomAPI_Shape>
current();
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38
This class is used to explore subshapes on shape.
Definition: GeomAPI_ShapeExplorer.h:31
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.
Definition: GeomAPI_ShapeExplorer.cpp:61
GEOMAPI_EXPORT void next()
Moves to the next Shape in the exploration or do nothing if there are no more shapes to explore.
Definition: GeomAPI_ShapeExplorer.cpp:77
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Shape > current()
Definition: GeomAPI_ShapeExplorer.cpp:86
GEOMAPI_EXPORT void clear()
Clears the content of the explorer. It will return False on more().
Definition: GeomAPI_ShapeExplorer.cpp:111
GEOMAPI_EXPORT void reinit()
Reinitialize the exploration with the original arguments.
Definition: GeomAPI_ShapeExplorer.cpp:99
GEOMAPI_EXPORT GeomAPI_ShapeExplorer()
Default constructor. Creates an empty explorer, becomes useful after Init.
Definition: GeomAPI_ShapeExplorer.cpp:28
GEOMAPI_EXPORT bool more() const
Definition: GeomAPI_ShapeExplorer.cpp:71
GEOMAPI_EXPORT int depth() const
Definition: GeomAPI_ShapeExplorer.cpp:105
ShapeType
Shape type enum.
Definition: GeomAPI_Shape.h:46