X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_MakeShape.h;h=0131da44660d4a454a108377a63d6c352e15c66d;hb=081612e9534dedf1c51b7c22f2fe2b467e5a112f;hp=acbc9c84fbf5247c7820ee6dad889bf833986089;hpb=2a232230cb243c76c34315623d6e6689f57e83f4;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h index acbc9c84f..0131da446 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h @@ -20,9 +20,9 @@ class GeomAlgoAPI_MakeShape : public GeomAPI_Interface public: /// Builder type enum enum BuilderType { + Unknown, OCCT_BRepBuilderAPI_MakeShape, - OCCT_BOPAlgo_Builder, - UNKNOWN + OCCT_BOPAlgo_Builder }; public: @@ -45,7 +45,7 @@ public: template void initialize(T* theBuilder, const BuilderType theBuilderType = OCCT_BRepBuilderAPI_MakeShape) { setImpl(theBuilder); - myBuilderType = theBuilder; + myBuilderType = theBuilderType; initialize(); } @@ -93,6 +93,9 @@ protected: /// \param[in] theShape new shape. void setShape(const std::shared_ptr theShape); +protected: + std::shared_ptr myMap; ///< Data map to keep correct orientation of sub-shapes. + private: /// \brief Initializes internals. void initialize(); @@ -101,7 +104,6 @@ private: GeomAlgoAPI_MakeShape::BuilderType myBuilderType; ///< Type of make shape builder. bool myDone; ///< Builder status. std::shared_ptr myShape; ///< Resulting shape. - std::shared_ptr myMap; ///< Data map to keep correct orientation of sub-shapes. }; typedef std::list > ListOfMakeShape;