]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_ResultBody.h
Salome HOME
Result CompSolid should inherits ResultBody. All model realization concerned Naming...
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultBody.h
index 05aeab91c11d215496399b3b091cdc4558faadf6..8c5c9e6b9794186865e254f948606ba551301d1e 100644 (file)
@@ -9,11 +9,13 @@
 
 #include "ModelAPI_Result.h"
 #include <GeomAPI_Shape.h>
-#include <GeomAlgoAPI_MakeShape.h>
-#include <GeomAPI_DataMapOfShapeShape.h>
-#include <memory>
+//#include <GeomAlgoAPI_MakeShape.h>
+//#include <GeomAPI_DataMapOfShapeShape.h>
+//#include <memory>
 #include <string>
 
+class ModelAPI_BodyBuilder;
+
 /**\class ModelAPI_ResultBody
 * \ingroup DataModel
 * \brief The body (shape) result of a feature.
@@ -43,8 +45,11 @@ public:
     return RESULT_BODY_COLOR;
   }
 
+  /// Returns the builder, which processes the shapes
+  ModelAPI_BodyBuilder* getBodyBuilder() { return myBuilder; }
+
   /// Stores the shape (called by the execution method).
-  virtual void store(const std::shared_ptr<GeomAPI_Shape>& theShape) = 0;
+  /*virtual void store(const std::shared_ptr<GeomAPI_Shape>& theShape) = 0;
 
   /// Stores the generated shape (called by the execution method).
   virtual void storeGenerated(const std::shared_ptr<GeomAPI_Shape>& theFromShape,
@@ -106,8 +111,12 @@ public:
 
   /// load disconnected vetexes
   virtual void loadDisconnectedVertexes(std::shared_ptr<GeomAPI_Shape> theShape, const std::string& theName,int&  theTag) = 0;
+  */
+protected:
+  MODELAPI_EXPORT ModelAPI_ResultBody();
 
 protected:
+  ModelAPI_BodyBuilder* myBuilder; /// provide the body processing in naming shape
 };
 
 //! Pointer on feature object