Salome HOME
Issue #2052 : really remove results if during the feature execution number of results...
[modules/shaper.git] / src / Model / Model_ResultCompSolid.h
index 21fb163b9769a7ef3ca15542319b63b7b2999764..b7db1b82e236c71ac0f0a78bbbd8bcd55eff5383 100755 (executable)
@@ -31,11 +31,9 @@ public:
   /// Removes the stored builders
   MODEL_EXPORT virtual ~Model_ResultCompSolid();
 
-  /// Request for initialization of data model of the object: adding all attributes
-  MODEL_EXPORT virtual void initAttributes();
-
   /// Stores the shape (called by the execution method). Creates sub-results for compsolid.
-  MODEL_EXPORT virtual void store(const std::shared_ptr<GeomAPI_Shape>& theShape);
+  MODEL_EXPORT virtual void store(const std::shared_ptr<GeomAPI_Shape>& theShape,
+                                  const bool theIsStoreSameShapes = true);
 
   /// Stores the generated shape.  Creates sub-results for compsolid.
   MODEL_EXPORT virtual void storeGenerated(const std::shared_ptr<GeomAPI_Shape>& theFromShape,
@@ -70,6 +68,10 @@ public:
   /// Sets all subs as concealed in the data tree (referenced by other objects)
   MODEL_EXPORT virtual void setIsConcealed(const bool theValue);
 
+  /// Returns true if the latest modification of this body in the naming history
+  // is equal to the given shape
+  MODEL_EXPORT virtual bool isLatestEqual(const std::shared_ptr<GeomAPI_Shape>& theShape);
+
 protected:
   /// Makes a body on the given feature
   Model_ResultCompSolid();