X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomData%2FGeomData_Dir.h;h=debd400552702b68455955f17d775b3f6f97d8ae;hb=530f5aff42069e844c4a4ef164088ea23ba0e2dd;hp=554fd04c4f1bc4659d23d43cc1448a373ce01867;hpb=1a6a9c1c0c466abb867f2c2815b20aa0620a444c;p=modules%2Fshaper.git diff --git a/src/GeomData/GeomData_Dir.h b/src/GeomData/GeomData_Dir.h index 554fd04c4..debd40055 100644 --- a/src/GeomData/GeomData_Dir.h +++ b/src/GeomData/GeomData_Dir.h @@ -1,14 +1,20 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomData_Dir.h // Created: 24 Apr 2014 // Author: Mikhail PONIKAROV -#ifndef GeomData_Dir_HeaderFile -#define GeomData_Dir_HeaderFile +#ifndef GeomData_Dir_H_ +#define GeomData_Dir_H_ #include "GeomData.h" #include "GeomDataAPI_Dir.h" #include #include +#include + +class GeomAPI_Dir; +class GeomAPI_XYZ; /**\class GeomData_Dir * \ingroup DataModel @@ -16,10 +22,12 @@ */ class GeomData_Dir : public GeomDataAPI_Dir { - Handle_TDataStd_RealArray myCoords; ///< X, Y and Z doubles as real array attribute [0; 2] -public: + Handle_TDataStd_RealArray myCoords; ///< X, Y and Z doubles as real array attribute [0; 2] + public: /// Defines the double value GEOMDATA_EXPORT virtual void setValue(const double theX, const double theY, const double theZ); + /// Defines the direction + GEOMDATA_EXPORT virtual void setValue(const std::shared_ptr& theDir); /// Returns the X double value GEOMDATA_EXPORT virtual double x() const; @@ -27,8 +35,12 @@ public: GEOMDATA_EXPORT virtual double y() const; /// Returns the Z double value 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: + protected: /// Initializes attributes GEOMDATA_EXPORT GeomData_Dir(TDF_Label& theLabel);