Salome HOME
Compsolids: initial implementation of sub-results of results on the data model level.
[modules/shaper.git] / src / Model / Model_BodyBuilder.h
index 7548439b1e396051447e4cfbffba6bb0d7628f37..5097fc17ddab71867a196925fe4db492b88da40c 100755 (executable)
@@ -41,6 +41,10 @@ public:
   MODEL_EXPORT virtual void storeModified(const std::shared_ptr<GeomAPI_Shape>& theOldShape,
                                                const std::shared_ptr<GeomAPI_Shape>& theNewShape,
                                           const int theDecomposeSolidsTag = 0);
+
+  /// Returns the shape-result produced by this feature
+  MODEL_EXPORT virtual std::shared_ptr<GeomAPI_Shape> shape();
+
   /// Records the subshape newShape which was generated during a topological construction.
   /// As an example, consider the case of a face generated in construction of a box.
   MODEL_EXPORT virtual void generated(const std::shared_ptr<GeomAPI_Shape>& theNewShape, 
@@ -97,6 +101,10 @@ public:
   /// Removes the stored builders
   MODEL_EXPORT virtual ~Model_BodyBuilder();
 
+  /// Converts evolution of sub-shapes stored in naming structure to selection 
+  /// (theFlag = true) and back (theFlag = false)
+  MODEL_EXPORT virtual void evolutionToSelection(const bool theFlag);
+
 protected:
   Model_BodyBuilder(ModelAPI_Object* theOwner);