X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomData%2FGeomData_Dir.h;h=846dcd343f32d4089a64dd0a289d6941de701cf2;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=0080ffbc6df16c357a0c95ff11475b592b34b861;hpb=f1cd93fd02a54259f72e3191d037323a496b2bef;p=modules%2Fshaper.git diff --git a/src/GeomData/GeomData_Dir.h b/src/GeomData/GeomData_Dir.h index 0080ffbc6..846dcd343 100644 --- a/src/GeomData/GeomData_Dir.h +++ b/src/GeomData/GeomData_Dir.h @@ -14,6 +14,7 @@ #include class GeomAPI_Dir; +class GeomAPI_XYZ; /**\class GeomData_Dir * \ingroup DataModel @@ -21,6 +22,7 @@ class GeomAPI_Dir; */ class GeomData_Dir : public GeomDataAPI_Dir { + TDF_Label myLab; ///< the main label of the attribute Handle_TDataStd_RealArray myCoords; ///< X, Y and Z doubles as real array attribute [0; 2] public: /// Defines the double value @@ -36,10 +38,14 @@ class GeomData_Dir : public GeomDataAPI_Dir GEOMDATA_EXPORT virtual double z() const; /// Returns the direction of this attribute GEOMDATA_EXPORT virtual std::shared_ptr dir(); + /// Returns the coordinates of this attribute + GEOMDATA_EXPORT virtual std::shared_ptr xyz(); protected: /// Initializes attributes GEOMDATA_EXPORT GeomData_Dir(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; };