]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
#283: Clear curves in plot2d BR_PPGP_BETA1
authorvtn <vtn@opencascade.com>
Mon, 22 Apr 2013 11:50:28 +0000 (11:50 +0000)
committervtn <vtn@opencascade.com>
Mon, 22 Apr 2013 11:50:28 +0000 (11:50 +0000)
src/Plot2d/Plot2d_Curve.cxx
src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip

index 0aae4b04e1a9a7b18e1ed85aef381f99ec488762..243e989527dab089c781d6c7f873977de5d7f189 100755 (executable)
@@ -159,6 +159,8 @@ void Plot2d_Curve::updatePlotItem( QwtPlotItem* theItem )
     } else {
       aCurve->clearDeviationData();
     }
+  } else {
+    aCurve->setData( NULL, NULL, 0 );
   }
 }
 
index cde76dc3377d003cc8f28d9d76afc50b1667757e..66a6b58553516e2826b1fec47cf0032d11b634cd 100644 (file)
@@ -248,6 +248,9 @@ public:
     sipCpp->addPoint(aX, aY);
   }
 %End
+  void insertPoint( int, double, double );
+  void deletePoint( int );
+  void clearAllPoints();
 };
 
 class SalomePyQt