1 // File: GeomData_Dir.h
2 // Created: 24 Apr 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef GeomData_Dir_HeaderFile
6 #define GeomData_Dir_HeaderFile
9 #include "GeomDataAPI_Dir.h"
10 #include <TDataStd_RealArray.hxx>
11 #include <TDF_Label.hxx>
13 /**\class GeomData_Dir
15 * \brief Attribute that contains direction.
17 class GeomData_Dir : public GeomDataAPI_Dir
19 Handle_TDataStd_RealArray myCoords; ///< X, Y and Z doubles as real array attribute [0; 2]
21 /// Defines the double value
22 GEOMDATA_EXPORT virtual void setValue(const double theX, const double theY, const double theZ);
24 /// Returns the X double value
25 GEOMDATA_EXPORT virtual double x() const;
26 /// Returns the Y double value
27 GEOMDATA_EXPORT virtual double y() const;
28 /// Returns the Z double value
29 GEOMDATA_EXPORT virtual double z() const;
32 /// Initializes attributes
33 GEOMDATA_EXPORT GeomData_Dir(TDF_Label& theLabel);
35 friend class Model_Data;