X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeDouble.h;h=883b9b545c81c5d298cdb13c2e3c6c8223f86f73;hb=3a5afc79fc52a9ab688f830ab0d173e492b0ec7e;hp=390cc66bc7bfcbe0824bb75ad9212d9c9850a48a;hpb=f8c36784f4699f0e3d04f4e8e067c7bd317b4a1c;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeDouble.h b/src/Model/Model_AttributeDouble.h index 390cc66bc..883b9b545 100644 --- a/src/Model/Model_AttributeDouble.h +++ b/src/Model/Model_AttributeDouble.h @@ -12,7 +12,7 @@ #include -class ModelAPI_Expression; +class ModelAPI_ExpressionDouble; /**\class Model_AttributeDouble * \ingroup DataModel @@ -21,7 +21,7 @@ class ModelAPI_Expression; class Model_AttributeDouble : public ModelAPI_AttributeDouble { - std::shared_ptr myExpression; + std::shared_ptr myExpression; public: /// Defines the double value @@ -60,6 +60,8 @@ class Model_AttributeDouble : public ModelAPI_AttributeDouble protected: /// Initializes attributes Model_AttributeDouble(TDF_Label& theLabel); + /// Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc) + virtual void reinit(); friend class Model_Data; };