X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomData%2FGeomData_Point2D.h;h=3bb62e8a02cd1b7a1d47d38cd2978e99d8be41d7;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=0384409ee91ced4458980ebcfb19f343c1572e5c;hpb=f8c36784f4699f0e3d04f4e8e067c7bd317b4a1c;p=modules%2Fshaper.git diff --git a/src/GeomData/GeomData_Point2D.h b/src/GeomData/GeomData_Point2D.h index 0384409ee..3bb62e8a0 100644 --- a/src/GeomData/GeomData_Point2D.h +++ b/src/GeomData/GeomData_Point2D.h @@ -12,7 +12,7 @@ #include -class ModelAPI_Expression; +class ModelAPI_ExpressionDouble; /**\class GeomData_Point2D * \ingroup DataModel @@ -22,7 +22,7 @@ class ModelAPI_Expression; class GeomData_Point2D : public GeomDataAPI_Point2D { enum { NUM_COMPONENTS = 2 }; - std::shared_ptr myExpression[NUM_COMPONENTS]; ///< Expressions for X, Y + std::shared_ptr myExpression[NUM_COMPONENTS]; ///< Expressions for X, Y public: /// Defines the double value GEOMDATA_EXPORT virtual void setValue(const double theX, const double theY); @@ -60,7 +60,7 @@ class GeomData_Point2D : public GeomDataAPI_Point2D GEOMDATA_EXPORT virtual std::string expressionError(int theComponent); /// Defines the used parameters - GEOMDATA_EXPORT virtual void setUsedParameters(int theComponent, + GEOMDATA_EXPORT virtual void setUsedParameters(int theComponent, const std::set& theUsedParameters); /// Returns the used parameters @@ -68,7 +68,12 @@ class GeomData_Point2D : public GeomDataAPI_Point2D protected: /// Initializes attributes - GEOMDATA_EXPORT GeomData_Point2D(TDF_Label& theLabel); + GEOMDATA_EXPORT GeomData_Point2D(); + /// Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc) + virtual void reinit(); + + /// Resets attribute to deafult state. + virtual void reset(); friend class Model_Data; };