20 #ifndef GeomAlgoAPI_MapShapesAndAncestors_H_
21 #define GeomAlgoAPI_MapShapesAndAncestors_H_
23 #include <GeomAlgoAPI.h>
25 #include <GeomAPI_Shape.h>
30 typedef std::set<GeomShapePtr, GeomAPI_Shape::ComparatorWithOri> SetOfShapes;
31 typedef std::map<GeomShapePtr, SetOfShapes, GeomAPI_Shape::Comparator> MapShapeToShapes;
46 void perform(
const std::shared_ptr<GeomAPI_Shape> theShape,
51 const MapShapeToShapes&
map()
const {
return myMap; }
54 MapShapeToShapes myMap;
ShapeType
Shape type enum.
Definition: GeomAPI_Shape.h:46
Perform mapping specified types of sub-shapes of given shape.
Definition: GeomAlgoAPI_MapShapesAndAncestors.h:37
GEOMALGOAPI_EXPORT GeomAlgoAPI_MapShapesAndAncestors(const std::shared_ptr< GeomAPI_Shape > theShape, const GeomAPI_Shape::ShapeType theShapeType, const GeomAPI_Shape::ShapeType theAncestorType)
Perform mapping.
Definition: GeomAlgoAPI_MapShapesAndAncestors.cpp:24
const MapShapeToShapes & map() const
Definition: GeomAlgoAPI_MapShapesAndAncestors.h:51
GEOMALGOAPI_EXPORT void perform(const std::shared_ptr< GeomAPI_Shape > theShape, const GeomAPI_Shape::ShapeType theShapeType, const GeomAPI_Shape::ShapeType theAncestorType)
Perform mapping.
Definition: GeomAlgoAPI_MapShapesAndAncestors.cpp:32