X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlot2d%2FPlot2d_Curve.cxx;h=399e6be20e45da15728053fdae624efcc9bf58b1;hb=0d0a1a9c883f6f446034f8cee2941c3d482a58b8;hp=0f9c0125cfd137314b44859cd110739323a05403;hpb=2e750f9ded92337bc3c44e9d7388180974cc4a43;p=modules%2Fgui.git diff --git a/src/Plot2d/Plot2d_Curve.cxx b/src/Plot2d/Plot2d_Curve.cxx index 0f9c0125c..399e6be20 100755 --- a/src/Plot2d/Plot2d_Curve.cxx +++ b/src/Plot2d/Plot2d_Curve.cxx @@ -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 */