19#include "moc_qgsplottoolxaxiszoom.cpp"
26 , mElevationCanvas( canvas )
42 QRectF plotArea = mElevationCanvas->
plotArea();
43 return QPointF( scenePoint.x(), plotArea.top() );
49 const QRectF plotArea = mElevationCanvas->
plotArea();
54 const double calculatedElevationRange = plotArea.height() / plotArea.width() * selectedDistanceRange;
60 return QPointF( scenePoint.x(), plotArea.bottom() );
66 const QRectF plotArea = mElevationCanvas->
plotArea();
76 return QRectF( sceneBounds.left(), plotArea.top(), sceneBounds.width(), plotArea.height() );
83 const QRectF plotArea = mElevationCanvas->
plotArea();
91 const QRectF plotArea = mElevationCanvas->
plotArea();
A canvas for elevation profiles.
void scalePlot(double factor) override
Scales the plot by a specified scale factor.
bool lockAxisScales() const
Returns true if the distance and elevation scales are locked to each other.
QRectF plotArea() const
Returns the interior rectangle representing the surface of the plot, in canvas coordinates.
virtual void centerPlotOn(double x, double y)
Centers the plot on the plot point corresponding to x, y in canvas units.