Salome HOME
*** empty log message ***
[modules/gui.git] / src / Plot2d / Plot2d_Curve.cxx
index 0f9c0125cfd137314b44859cd110739323a05403..399e6be20e45da15728053fdae624efcc9bf58b1 100755 (executable)
@@ -181,6 +181,15 @@ pointList Plot2d_Curve::getPointList() const
   return myPoints;
 }
 
+/*!
+  Sets curve's data. 
+*/
+void Plot2d_Curve::setData( const double* hData, const double* vData, long size )
+{
+  clearAllPoints();
+  for(long i = 0; i < size; i++) addPoint(hData[i], vData[i]);
+}
+
 /*!
   Gets curve's data : abscissas of points
 */