X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomDataAPI%2FGeomDataAPI_Point2D.h;h=3c67bec90d85c9e7a39cd68156b76c2db745c349;hb=6f77dfcd9833cdba0c583e6218350f1f7043eb8b;hp=83acc0b57e05bb510735a3dd5991ce272d07b2bc;hpb=7bf19255421b34594c7b0a76d0ce28166d0ce895;p=modules%2Fshaper.git diff --git a/src/GeomDataAPI/GeomDataAPI_Point2D.h b/src/GeomDataAPI/GeomDataAPI_Point2D.h index 83acc0b57..3c67bec90 100644 --- a/src/GeomDataAPI/GeomDataAPI_Point2D.h +++ b/src/GeomDataAPI/GeomDataAPI_Point2D.h @@ -7,7 +7,7 @@ #ifndef GeomDataAPI_Point2D_H_ #define GeomDataAPI_Point2D_H_ -#include "GeomDataAPI.h" +#include #include class GeomAPI_Pnt2d; @@ -33,29 +33,21 @@ class GeomDataAPI_Point2D : public ModelAPI_Attribute virtual std::shared_ptr pnt() = 0; /// Appends the delta values to point - void move(const double theDeltaX, const double theDeltaY) - { - setValue(x() + theDeltaX, y() + theDeltaY); - } - + GEOMDATAAPI_EXPORT void move(const double theDeltaX, const double theDeltaY); /// Returns the type of this class of attributes - static inline std::string type() + static std::string typeId() { return std::string("Point2D"); } /// Returns the type of this class of attributes, not static method - virtual std::string attributeType() - { - return type(); - } + GEOMDATAAPI_EXPORT virtual std::string attributeType(); protected: /// Objects are created for features automatically - GeomDataAPI_Point2D() - { - } + GEOMDATAAPI_EXPORT GeomDataAPI_Point2D(); + GEOMDATAAPI_EXPORT virtual ~GeomDataAPI_Point2D(); }; #endif