Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / GeomDataAPI / GeomDataAPI_Point.h
index c9581b2bea7fd6ff38aecada82a7cf5cbeff58a8..08ee73951847765c0baad42f1d07d06bc54ad379 100644 (file)
@@ -2,8 +2,8 @@
 // Created:     24 Apr 2014
 // Author:      Mikhail PONIKAROV
 
-#ifndef GeomDataAPI_Point_HeaderFile
-#define GeomDataAPI_Point_HeaderFile
+#ifndef GeomDataAPI_Point_H_
+#define GeomDataAPI_Point_H_
 
 #include "GeomDataAPI.h"
 #include <ModelAPI_Attribute.h>
@@ -17,9 +17,11 @@ class GeomAPI_Pnt;
 
 class GeomDataAPI_Point : public ModelAPI_Attribute
 {
-public:
+ public:
   /// Defines the double value
   virtual void setValue(const double theX, const double theY, const double theZ) = 0;
+  /// Defines the point
+  virtual void setValue(const boost::shared_ptr<GeomAPI_Pnt>& thePoint) = 0;
 
   /// Returns the X double value
   virtual double x() const = 0;
@@ -31,15 +33,22 @@ public:
   virtual boost::shared_ptr<GeomAPI_Pnt> pnt() = 0;
 
   /// Returns the type of this class of attributes
-  static inline std::string type() {return std::string("Point");}
+  static inline std::string type()
+  {
+    return std::string("Point");
+  }
 
   /// Returns the type of this class of attributes, not static method
-  virtual std::string attributeType() {return type();}
+  virtual std::string attributeType()
+  {
+    return type();
+  }
 
-protected:
+ protected:
   /// Objects are created for features automatically
   GeomDataAPI_Point()
-  {}
+  {
+  }
 };
 
 #endif