X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomData%2FGeomData_Dir.h;h=62b229c611a678ab405a144980458cde3a1a9d77;hb=b73fb7468bea81901dbeed8e229d742f788ec282;hp=a11316a4be9a46731e2d99fc5acff7bd026b61c5;hpb=4783f146b71a48c651523fcf0e12367bcf3d1fa8;p=modules%2Fshaper.git diff --git a/src/GeomData/GeomData_Dir.h b/src/GeomData/GeomData_Dir.h index a11316a4b..62b229c61 100644 --- a/src/GeomData/GeomData_Dir.h +++ b/src/GeomData/GeomData_Dir.h @@ -1,6 +1,22 @@ -// File: GeomData_Dir.h -// Created: 24 Apr 2014 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #ifndef GeomData_Dir_H_ #define GeomData_Dir_H_ @@ -12,6 +28,7 @@ #include class GeomAPI_Dir; +class GeomAPI_XYZ; /**\class GeomData_Dir * \ingroup DataModel @@ -19,6 +36,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 @@ -34,10 +52,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; };