|
| QgsElevationProfileCanvas (QWidget *parent=nullptr) |
| Constructor for QgsElevationProfileCanvas, with the specified parent widget. More...
|
|
| ~QgsElevationProfileCanvas () override |
|
void | cancelJobs () override |
| Cancel any rendering job, in a blocking way. More...
|
|
QgsProfilePoint | canvasPointToPlotPoint (QPointF point) const |
| Converts a canvas point to the equivalent plot point. More...
|
|
void | centerPlotOn (double x, double y) override |
| Centers the plot on the plot point corresponding to x, y in canvas units. More...
|
|
QgsCoordinateReferenceSystem | crs () const override |
| Returns the coordinate reference system (CRS) for map coordinates used by the canvas. More...
|
|
QVector< QgsProfileIdentifyResults > | identify (const QRectF &rect) |
| Identify results visible within the specified plot rect. More...
|
|
QVector< QgsProfileIdentifyResults > | identify (QPointF point) |
| Identify results visible at the specified plot point. More...
|
|
void | invalidateCurrentPlotExtent () |
| Invalidates the current plot extent, which means that the visible plot area will be recalculated and "zoom full" operation occur when the next profile generation completes. More...
|
|
QList< QgsMapLayer * > | layers () const |
| Returns the list of layers included in the profile. More...
|
|
void | mouseMoveEvent (QMouseEvent *e) override |
|
void | paintEvent (QPaintEvent *event) override |
|
void | panContentsBy (double dx, double dy) override |
| Pans the plot contents by dx, dy in canvas units. More...
|
|
const Qgs2DPlot & | plot () const |
| Returns a reference to the 2D plot used by the widget. More...
|
|
QRectF | plotArea () const |
| Returns the interior rectangle representing the surface of the plot, in canvas coordinates. More...
|
|
QgsPointXY | plotPointToCanvasPoint (const QgsProfilePoint &point) const |
| Converts a plot point to the equivalent canvas point. More...
|
|
QgsCurve * | profileCurve () const |
| Returns the profile curve. More...
|
|
void | refresh () override |
| Triggers a complete regeneration of the profile, causing the profile extraction to perform in the background. More...
|
|
void | render (QgsRenderContext &context, double width, double height, const Qgs2DPlot &plotSettings) |
| Renders a portion of the profile using the specified render context. More...
|
|
void | resizeEvent (QResizeEvent *event) override |
|
void | scalePlot (double factor) override |
| Scales the plot by a specified scale factor. More...
|
|
void | scalePlot (double xFactor, double yFactor) |
| Scales the plot axis by the given factors. More...
|
|
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
| Sets the crs associated with the canvas' map coordinates. More...
|
|
void | setLayers (const QList< QgsMapLayer * > &layers) |
| Sets the list of layers to include in the profile. More...
|
|
void | setProfileCurve (QgsCurve *curve) |
| Sets the profile curve. More...
|
|
void | setProject (QgsProject *project) |
| Sets the project associated with the profile. More...
|
|
void | setTolerance (double tolerance) |
| Sets the profile tolerance (in crs() units). More...
|
|
void | setVisiblePlotRange (double minimumDistance, double maximumDistance, double minimumElevation, double maximumElevation) |
| Sets the visible area of the plot. More...
|
|
QgsPointXY | snapToPlot (QPoint point) override |
| Snap a canvas point to the plot. More...
|
|
QgsPointXY | toCanvasCoordinates (const QgsPoint &point) const override |
| Converts a point in map coordinates to the associated canvas point. More...
|
|
double | tolerance () const |
| Returns the tolerance of the profile (in crs() units). More...
|
|
QgsPoint | toMapCoordinates (const QgsPointXY &point) const override |
| Converts a point on the canvas to the associated map coordinate. More...
|
|
QgsDoubleRange | visibleDistanceRange () const |
| Returns the distance range currently visible in the plot. More...
|
|
QgsDoubleRange | visibleElevationRange () const |
| Returns the elevation range currently visible in the plot. More...
|
|
void | wheelZoom (QWheelEvent *event) override |
| Zoom plot from a mouse wheel event. More...
|
|
void | zoomToRect (const QRectF &rect) override |
| Zooms the plot to the specified rect in canvas units. More...
|
|
| QgsPlotCanvas (QWidget *parent=nullptr) |
| Constructor for QgsPlotCanvas, with the specified parent widget. More...
|
|
| ~QgsPlotCanvas () override |
|
virtual void | cancelJobs () |
| Cancel any rendering job, in a blocking way. More...
|
|
virtual void | centerPlotOn (double x, double y) |
| Centers the plot on the plot point corresponding to x, y in canvas units. More...
|
|
virtual QgsCoordinateReferenceSystem | crs () const |
| Returns the coordinate reference system (CRS) for map coordinates used by the canvas. More...
|
|
virtual void | panContentsBy (double dx, double dy) |
| Pans the plot contents by dx, dy in canvas units. More...
|
|
virtual void | scalePlot (double factor) |
| Scales the plot by a specified scale factor. More...
|
|
void | setTool (QgsPlotTool *tool) |
| Sets the interactive tool currently being used on the canvas. More...
|
|
virtual QgsPointXY | snapToPlot (QPoint point) |
| Snap a canvas point to the plot. More...
|
|
virtual QgsPointXY | toCanvasCoordinates (const QgsPoint &point) const |
| Converts a point in map coordinates to the associated canvas point. More...
|
|
virtual QgsPoint | toMapCoordinates (const QgsPointXY &point) const |
| Converts a point on the canvas to the associated map coordinate. More...
|
|
QgsPlotTool * | tool () |
| Returns the currently active tool. More...
|
|
void | unsetTool (QgsPlotTool *tool) |
| Unset the current tool. More...
|
|
virtual void | zoomToRect (const QRectF &rect) |
| Zooms the plot to the specified rect in canvas units. More...
|
|