25 , mElevationCanvas( canvas )
41 QRectF plotArea = mElevationCanvas->
plotArea();
42 return QPointF( scenePoint.x(), plotArea.top() );
48 const QRectF plotArea = mElevationCanvas->
plotArea();
53 const double calculatedElevationRange = plotArea.height() / plotArea.width() * selectedDistanceRange;
59 return QPointF( scenePoint.x(), plotArea.bottom() );
65 const QRectF plotArea = mElevationCanvas->
plotArea();
75 return QRectF( sceneBounds.left(), plotArea.top(), sceneBounds.width(), plotArea.height() );
82 const QRectF plotArea = mElevationCanvas->
plotArea();
90 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.