1 // File: GeomAlgoAPI_DFLoader.h
2 // Created: 23 October 2014
3 // Author: Sergey Zaritchny
5 #ifndef GeomAlgoAPI_DFLoader_H_
6 #define GeomAlgoAPI_DFLoader_H_
7 #include <GeomAlgoAPI.h>
8 //#include <boost/shared_ptr.hpp>
9 #include <BRepBuilderAPI_MakeShape.hxx>
10 #include <TopoDS_Shape.hxx>
11 #include <TNaming_Builder.hxx>
12 #include <TopAbs_ShapeEnum.hxx>
13 #include <TopTools_DataMapOfShapeShape.hxx>
15 /**\class GeomAlgoAPI_DFLoader
17 * \brief Defines several static methods useful for Data Framework filling
19 class GEOMALGOAPI_EXPORT GeomAlgoAPI_DFLoader
23 /// Loads to DF deleted shapes
24 static void loadDeletedShapes (BRepBuilderAPI_MakeShape& theMS, const TopoDS_Shape& theShapeIn,
25 const TopAbs_ShapeEnum KindOfShape, TNaming_Builder& theBuilder);
27 /// Loads to DF generated shapes
28 static void loadAndOrientGeneratedShapes (BRepBuilderAPI_MakeShape& theMS,
29 const TopoDS_Shape& theShapeIn,
30 const TopAbs_ShapeEnum theKindOfShape,
31 TNaming_Builder& theBuilder,
32 const TopTools_DataMapOfShapeShape& theSubShapes);
33 /// Loads to DF modified shapes
34 static void loadAndOrientModifiedShapes (BRepBuilderAPI_MakeShape& theMS,
35 const TopoDS_Shape& theShapeIn,
36 const TopAbs_ShapeEnum theKindOfShape,
37 TNaming_Builder& theBuilder,
38 const TopTools_DataMapOfShapeShape& theSubShapes);
41 static const TopoDS_Shape refineResult(const TopoDS_Shape& theShape);