Salome HOME
Avoid crash if there is no parent of selection attribute.
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Double.h
index 59686dfa23f97789fb916a6882db8fff7cc9b16e..f7997c904b46e3406ab1f112887beb402a64e32b 100644 (file)
@@ -28,6 +28,7 @@
 #include <string>
 //--------------------------------------------------------------------------------------
 class ModelAPI_AttributeDouble;
+class GeomDataAPI_Point;
 //--------------------------------------------------------------------------------------
 /**\class ModelHighAPI_Double
  * \ingroup CPPHighAPI
@@ -53,6 +54,13 @@ public:
   MODELHIGHAPI_EXPORT
   virtual void fillAttribute(const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
 
+  /// Sets the zero-based coordinates of a point
+  MODELHIGHAPI_EXPORT virtual void fillAttribute(
+    const std::shared_ptr<GeomDataAPI_Point> & thePoint,
+    const ModelHighAPI_Double & theX,
+    const ModelHighAPI_Double & theY,
+    const ModelHighAPI_Double & theZ) const;
+
 private:
   enum VariantType { VT_DOUBLE, VT_STRING } myVariantType;
   double myDouble;