- /// Adds result to the sketch and to its document
- virtual std::shared_ptr<ModelAPI_ResultBody> addResult(std::string theID);
+ /// 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);
+
+ /// Stores the generated shape. Creates sub-results for compsolid.
+ MODEL_EXPORT virtual void storeGenerated(const std::shared_ptr<GeomAPI_Shape>& theFromShape,
+ const std::shared_ptr<GeomAPI_Shape>& theToShape);
+
+ /// Stores the modified shape. Creates sub-results for compsolid.
+ MODEL_EXPORT virtual void storeModified(const std::shared_ptr<GeomAPI_Shape>& theOldShape,
+ const std::shared_ptr<GeomAPI_Shape>& theNewShape, const int theDecomposeSolidsTag = 0);