1 // File: GeomDataAPI_Dir.h
2 // Created: 24 Apr 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef GeomDataAPI_Dir_HeaderFile
6 #define GeomDataAPI_Dir_HeaderFile
8 #include "GeomDataAPI.h"
9 #include <ModelAPI_Attribute.h>
11 /**\class GeomDataAPI_Dir
13 * \brief Attribute that contains 3D direction coordinates.
16 class GeomDataAPI_Dir : public ModelAPI_Attribute
19 /// Defines the double value
20 virtual void setValue(const double theX, const double theY, const double theZ) = 0;
22 /// Returns the X double value
23 virtual double x() const = 0;
24 /// Returns the Y double value
25 virtual double y() const = 0;
26 /// Returns the Z double value
27 virtual double z() const = 0;
29 /// Returns the type of this class of attributes
30 static inline std::string type() {return std::string("Point");}
32 /// Returns the type of this class of attributes, not static method
33 virtual std::string attributeType() {return type();}
36 /// Objects are created for features automatically