1 // File: GeomData_Dir.h
2 // Created: 24 Apr 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef GeomData_Dir_H_
6 #define GeomData_Dir_H_
9 #include "GeomDataAPI_Dir.h"
10 #include <TDataStd_RealArray.hxx>
11 #include <TDF_Label.hxx>
12 #include <boost/shared_ptr.hpp>
16 /**\class GeomData_Dir
18 * \brief Attribute that contains direction.
20 class GeomData_Dir : public GeomDataAPI_Dir
22 Handle_TDataStd_RealArray myCoords; ///< X, Y and Z doubles as real array attribute [0; 2]
24 /// Defines the double value
25 GEOMDATA_EXPORT virtual void setValue(const double theX, const double theY, const double theZ);
26 /// Defines the direction
27 GEOMDATA_EXPORT virtual void setValue(const boost::shared_ptr<GeomAPI_Dir>& theDir);
29 /// Returns the X double value
30 GEOMDATA_EXPORT virtual double x() const;
31 /// Returns the Y double value
32 GEOMDATA_EXPORT virtual double y() const;
33 /// Returns the Z double value
34 GEOMDATA_EXPORT virtual double z() const;
35 /// Returns the direction of this attribute
36 GEOMDATA_EXPORT virtual boost::shared_ptr<GeomAPI_Dir> dir();
39 /// Initializes attributes
40 GEOMDATA_EXPORT GeomData_Dir(TDF_Label& theLabel);
42 friend class Model_Data;