Salome HOME
Geom attribute: Point
[modules/shaper.git] / src / GeomDataAPI / GeomDataAPI_Point.h
1 // File:        GeomData_AttributeDouble.h
2 // Created:     2 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef GeomData_AttributeDouble_HeaderFile
6 #define GeomData_AttributeDouble_HeaderFile
7
8 #include "GeomDataAPI.h"
9 #include <ModelAPI_Attribute.h>
10
11 /**\class GeomData_AttributeDouble
12  * \ingroup DataModel
13  * \brief Attribute that contains real value with double precision.
14  */
15
16 class GeomDataAPI_Point : public ModelAPI_Attribute
17 {
18 public:
19   /// Defines the double value
20   virtual void setValue(const double theX, const double theY, const double theZ) = 0;
21
22   /// Returns the X double value
23   virtual double x() = 0;
24   /// Returns the Y double value
25   virtual double y() = 0;
26   /// Returns the Z double value
27   virtual double z() = 0;
28
29   /// Returns the type of this class of attributes
30   static inline std::string type() {return std::string("Point");}
31
32   /// Returns the type of this class of attributes, not static method
33   virtual std::string attributeType() {return type();}
34
35 protected:
36   /// Objects are created for features automatically
37   GeomDataAPI_Point()
38   {}
39 };
40
41 #endif