setZoomBase() method is added in Plot2d. It update initial zoomer structure. This method is called from onViewFitArea() slots to reinitialize zoomer in accordance with current plot 2d state
myPlot->canvas()->setCursor( QCursor( Qt::PointingHandCursor ) );
myOperation = FitAreaId;
myPlot->setPickerMousePattern( Qt::LeftButton );
+ myPlot->setZoomBase();
}
/*!
View operations : Global panning
return aPlotCurve ? aPlotCurve->nbMarkers() : 0;
}
+/*!
+ Update initial zoomer structure. This method is called from onViewFitArea()
+ slots to reinitialize zoomer in accordance with current plot 2d state
+*/
+void Plot2d_Plot2d::setZoomBase( const bool doReplot )
+{
+ if ( myPlotZoomer )
+ myPlotZoomer->setZoomBase( doReplot );
+}
+
/*!
Checks if marker belongs to any enitity
*/
bool setCurveNbMarkers( Plot2d_Curve* curve, const int nb );
int curveNbMarkers( Plot2d_Curve* curve ) const;
+ void setZoomBase( const bool doReplot = true );
+
public slots:
virtual void polish();