1 // File: GeomDataAPI_Dir.h
2 // Created: 24 Apr 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef GeomDataAPI_Dir_H_
6 #define GeomDataAPI_Dir_H_
8 #include "GeomDataAPI.h"
9 #include <ModelAPI_Attribute.h>
13 /**\class GeomDataAPI_Dir
15 * \brief Attribute that contains 3D direction coordinates.
18 class GeomDataAPI_Dir : public ModelAPI_Attribute
21 /// Defines the double value
22 virtual void setValue(const double theX, const double theY, const double theZ) = 0;
23 /// Defines the direction
24 virtual void setValue(const std::shared_ptr<GeomAPI_Dir>& theDir) = 0;
26 /// Returns the X double value
27 virtual double x() const = 0;
28 /// Returns the Y double value
29 virtual double y() const = 0;
30 /// Returns the Z double value
31 virtual double z() const = 0;
32 /// Returns the direction of this attribute
33 virtual std::shared_ptr<GeomAPI_Dir> dir() = 0;
35 /// Returns the type of this class of attributes
36 static inline std::string type()
38 return std::string("Dir");
41 /// Returns the type of this class of attributes, not static method
42 virtual std::string attributeType()
48 /// Objects are created for features automatically