1 // File: GeomDataAPI_Point.h
2 // Created: 24 Apr 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef GeomDataAPI_Point_HeaderFile
6 #define GeomDataAPI_Point_HeaderFile
8 #include "GeomDataAPI.h"
9 #include <ModelAPI_Attribute.h>
13 /**\class GeomDataAPI_Point
15 * \brief Attribute that contains 3D point coordinates.
18 class GeomDataAPI_Point : public ModelAPI_Attribute
21 /// Defines the double value
22 virtual void setValue(const double theX, const double theY, const double theZ) = 0;
24 /// Returns the X double value
25 virtual double x() const = 0;
26 /// Returns the Y double value
27 virtual double y() const = 0;
28 /// Returns the Z double value
29 virtual double z() const = 0;
30 /// Returns the 3D point
31 virtual boost::shared_ptr<GeomAPI_Pnt> pnt() = 0;
33 /// Returns the type of this class of attributes
34 static inline std::string type() {return std::string("Point");}
36 /// Returns the type of this class of attributes, not static method
37 virtual std::string attributeType() {return type();}
40 /// Objects are created for features automatically