X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_BodyBuilder.h;h=0941d38b2aaf990b7709af4fb8442a5264808b3c;hb=530f5aff42069e844c4a4ef164088ea23ba0e2dd;hp=85032d4f81d5282f3a93f60f6324e6f81d563625;hpb=4748bf45f55c8185533d460302d3dbefc948b56e;p=modules%2Fshaper.git diff --git a/src/Model/Model_BodyBuilder.h b/src/Model/Model_BodyBuilder.h index 85032d4f8..0941d38b2 100755 --- a/src/Model/Model_BodyBuilder.h +++ b/src/Model/Model_BodyBuilder.h @@ -27,7 +27,8 @@ class Model_BodyBuilder : public ModelAPI_BodyBuilder std::vector myBuilders; public: /// Stores the shape (called by the execution method). - MODEL_EXPORT virtual void store(const std::shared_ptr& theShape); + MODEL_EXPORT virtual void store(const std::shared_ptr& theShape, + const bool theIsStoreSameShapes = true); /// Stores the generated shape (called by the execution method). MODEL_EXPORT virtual void storeGenerated(const std::shared_ptr& theFromShape, @@ -83,7 +84,8 @@ public: const int theKindOfShape, const int theTag, const std::string& theName, - GeomAPI_DataMapOfShapeShape& theSubShapes); + GeomAPI_DataMapOfShapeShape& theSubShapes, + const bool theIsStoreSeparate = false); /// load and orient generated shapes MODEL_EXPORT virtual void loadAndOrientGeneratedShapes ( GeomAlgoAPI_MakeShape* theMS, @@ -109,6 +111,10 @@ public: /// (theFlag = true) and back (theFlag = false) MODEL_EXPORT virtual void evolutionToSelection(const bool theFlag); + /// 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& theShape); + protected: /// Default constructor accessible only by Model_Objects Model_BodyBuilder(ModelAPI_Object* theOwner);