From 578375ad725527fe83666fdf8af499c2e722b5a8 Mon Sep 17 00:00:00 2001 From: ageay Date: Mon, 15 Oct 2012 08:39:58 +0000 Subject: [PATCH] Some simplifications --- src/Plot2d/Plot2d_ViewFrame.cxx | 17 +---------------- src/Plot2d/Plot2d_ViewFrame.h | 3 --- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 3e65e51fe..7d476dc54 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -298,22 +298,7 @@ void Plot2d_ViewFrame::EraseAll() } myIntermittentSegmentList.clear(); } - - // 2)- Erase all curves points markers - - int nbMark = myMarkerList.size(); - if (nbMark > 0) - { - for (int imar=0; imar < nbMark; imar++) - { - QwtPlotMarker *marker = myMarkerList[imar]; - - marker->detach(); // erase in QwtPlot window - delete marker; - } - myMarkerList.clear(); - } - + // The graphic view's picker Plot2d_QwtPlotPicker *picker = myPlot->getPicker(); diff --git a/src/Plot2d/Plot2d_ViewFrame.h b/src/Plot2d/Plot2d_ViewFrame.h index a517e96a2..8125635a6 100755 --- a/src/Plot2d/Plot2d_ViewFrame.h +++ b/src/Plot2d/Plot2d_ViewFrame.h @@ -319,9 +319,6 @@ protected: // List of intermittent segments to connect curves QList myIntermittentSegmentList; - // List of markers associated with curves points - QList myMarkerList; - // List of curves Plot2d_Curve QList myPlot2dCurveList; }; -- 2.39.2