mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-30 00:04:58 -05:00
93 lines
2.7 KiB
Plaintext
93 lines
2.7 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/plot/qgsdistancevselevationplotcanvas.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsDistanceVsElevationPlotCanvas : QgsPlotCanvas
|
|
{
|
|
%Docstring(signature="appended")
|
|
A canvas for display of distance vs elevation plots.
|
|
|
|
.. versionadded:: 3.26
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsdistancevselevationplotcanvas.h"
|
|
%End
|
|
%ConvertToSubClassCode
|
|
if ( qobject_cast<QgsDistanceVsElevationPlotCanvas *>( sipCpp ) != nullptr )
|
|
sipType = sipType_QgsDistanceVsElevationPlotCanvas;
|
|
else
|
|
sipType = nullptr;
|
|
%End
|
|
public:
|
|
|
|
QgsDistanceVsElevationPlotCanvas( QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsDistanceVsElevationPlotCanvas, with the specified ``parent`` widget.
|
|
%End
|
|
|
|
~QgsDistanceVsElevationPlotCanvas();
|
|
virtual QgsCoordinateReferenceSystem crs() const;
|
|
|
|
virtual QgsPoint toMapCoordinates( const QgsPointXY &point ) const;
|
|
|
|
virtual QgsPointXY toCanvasCoordinates( const QgsPoint &point ) const;
|
|
|
|
virtual void resizeEvent( QResizeEvent *event );
|
|
|
|
|
|
void setCrs( const QgsCoordinateReferenceSystem &crs );
|
|
%Docstring
|
|
Sets the ``crs`` associated with the canvas' map coordinates.
|
|
|
|
.. seealso:: :py:func:`crs`
|
|
%End
|
|
|
|
void setProfileCurve( QgsCurve *curve /Transfer/ );
|
|
%Docstring
|
|
Sets the profile ``curve``.
|
|
|
|
The CRS associated with ``curve`` is set via :py:func:`~QgsDistanceVsElevationPlotCanvas.setCrs`.
|
|
|
|
Ownership is transferred to the plot canvas.
|
|
|
|
.. seealso:: :py:func:`profileCurve`
|
|
%End
|
|
|
|
QgsCurve *profileCurve() const;
|
|
%Docstring
|
|
Returns the profile curve.
|
|
|
|
The CRS associated with the curve is retrieved via :py:func:`~QgsDistanceVsElevationPlotCanvas.crs`.
|
|
|
|
.. seealso:: :py:func:`setProfileCurve`
|
|
%End
|
|
|
|
protected:
|
|
|
|
|
|
double zToCanvasY( double z ) const;
|
|
%Docstring
|
|
Converts a map z value to a canvas y coordinate.
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/plot/qgsdistancevselevationplotcanvas.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|