Salome HOME
Make import XAO with groups
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_MakeShape.h
index acbc9c84fbf5247c7820ee6dad889bf833986089..0131da44660d4a454a108377a63d6c352e15c66d 100644 (file)
@@ -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<class T> 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<GeomAPI_Shape> theShape);
 
+protected:
+  std::shared_ptr<GeomAPI_DataMapOfShapeShape> 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<GeomAPI_Shape> myShape; ///< Resulting shape.
-  std::shared_ptr<GeomAPI_DataMapOfShapeShape> myMap; ///< Data map to keep correct orientation of sub-shapes.
 };
 
 typedef std::list<std::shared_ptr<GeomAlgoAPI_MakeShape> > ListOfMakeShape;