Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[modules/gui.git]
/
src
/
Plot2d
/
Plot2d_Curve.cxx
diff --git
a/src/Plot2d/Plot2d_Curve.cxx
b/src/Plot2d/Plot2d_Curve.cxx
index 0f9c0125cfd137314b44859cd110739323a05403..399e6be20e45da15728053fdae624efcc9bf58b1 100755
(executable)
--- a/
src/Plot2d/Plot2d_Curve.cxx
+++ b/
src/Plot2d/Plot2d_Curve.cxx
@@
-181,6
+181,15
@@
pointList Plot2d_Curve::getPointList() const
return myPoints;
}
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
*/
/*!
Gets curve's data : abscissas of points
*/