]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomDataAPI/GeomDataAPI_Point.h
Salome HOME
Changes for modifying of GeomData objects by GeomAPI objects
[modules/shaper.git] / src / GeomDataAPI / GeomDataAPI_Point.h
index 68f294e60fc8a9d4e967690d3fd917461e7b9828..5f08bde0264495703c61458ffacf5002b7aff05f 100644 (file)
@@ -8,6 +8,8 @@
 #include "GeomDataAPI.h"
 #include <ModelAPI_Attribute.h>
 
+class GeomAPI_Pnt;
+
 /**\class GeomDataAPI_Point
  * \ingroup DataModel
  * \brief Attribute that contains 3D point coordinates. 
@@ -18,6 +20,8 @@ class GeomDataAPI_Point : public ModelAPI_Attribute
 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;
@@ -25,6 +29,8 @@ public:
   virtual double y() const = 0;
   /// Returns the Z double value
   virtual double z() const = 0;
+  /// Returns the 3D point
+  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");}