From 2876f044f0be0a86f2de7e172739b87e18aefa97 Mon Sep 17 00:00:00 2001 From: vtn Date: Mon, 22 Apr 2013 11:50:28 +0000 Subject: [PATCH] #283: Clear curves in plot2d --- src/Plot2d/Plot2d_Curve.cxx | 2 ++ src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/Plot2d/Plot2d_Curve.cxx b/src/Plot2d/Plot2d_Curve.cxx index 0aae4b04e..243e98952 100755 --- a/src/Plot2d/Plot2d_Curve.cxx +++ b/src/Plot2d/Plot2d_Curve.cxx @@ -159,6 +159,8 @@ void Plot2d_Curve::updatePlotItem( QwtPlotItem* theItem ) } else { aCurve->clearDeviationData(); } + } else { + aCurve->setData( NULL, NULL, 0 ); } } diff --git a/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip b/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip index cde76dc33..66a6b5855 100644 --- a/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip +++ b/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip @@ -248,6 +248,9 @@ public: sipCpp->addPoint(aX, aY); } %End + void insertPoint( int, double, double ); + void deletePoint( int ); + void clearAllPoints(); }; class SalomePyQt -- 2.39.2