Plot canvas is a class for displaying interactive 2d charts and plots.
More...
#include <qgsplotcanvas.h>
Plot canvas is a class for displaying interactive 2d charts and plots.
- Since
- QGIS 3.26
Definition at line 53 of file qgsplotcanvas.h.
◆ QgsPlotCanvas()
QgsPlotCanvas::QgsPlotCanvas |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~QgsPlotCanvas()
QgsPlotCanvas::~QgsPlotCanvas |
( |
| ) |
|
|
override |
◆ cancelJobs()
void QgsPlotCanvas::cancelJobs |
( |
| ) |
|
|
virtual |
◆ centerPlotOn()
void QgsPlotCanvas::centerPlotOn |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
virtual |
◆ contextMenuAboutToShow
void QgsPlotCanvas::contextMenuAboutToShow |
( |
QMenu * |
menu, |
|
|
QgsPlotMouseEvent * |
event |
|
) |
| |
|
signal |
Emitted before the canvas context menu will be shown.
Can be used to extend the context menu.
◆ crs()
Returns the coordinate reference system (CRS) for map coordinates used by the canvas.
May return an invalid CRS if no CRS is associated with the canvas.
Reimplemented in QgsElevationProfileCanvas.
Definition at line 262 of file qgsplotcanvas.cpp.
◆ event()
bool QgsPlotCanvas::event |
( |
QEvent * |
e | ) |
|
|
overrideprotected |
◆ keyPressEvent()
void QgsPlotCanvas::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
overrideprotected |
◆ keyReleaseEvent()
void QgsPlotCanvas::keyReleaseEvent |
( |
QKeyEvent * |
e | ) |
|
|
overrideprotected |
◆ mouseDoubleClickEvent()
void QgsPlotCanvas::mouseDoubleClickEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
void QgsPlotCanvas::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ mousePressEvent()
void QgsPlotCanvas::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
void QgsPlotCanvas::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ panContentsBy()
void QgsPlotCanvas::panContentsBy |
( |
double |
dx, |
|
|
double |
dy |
|
) |
| |
|
virtual |
◆ plotAreaChanged
void QgsPlotCanvas::plotAreaChanged |
( |
| ) |
|
|
signal |
Emitted whenever the visible area of the plot is changed.
◆ refresh
void QgsPlotCanvas::refresh |
( |
| ) |
|
|
virtualslot |
◆ resizeEvent()
void QgsPlotCanvas::resizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
overrideprotected |
◆ scalePlot()
void QgsPlotCanvas::scalePlot |
( |
double |
factor | ) |
|
|
virtual |
◆ setTool()
Sets the interactive tool currently being used on the canvas.
Definition at line 229 of file qgsplotcanvas.cpp.
◆ snapToPlot()
QgsPointXY QgsPlotCanvas::snapToPlot |
( |
QPoint |
point | ) |
|
|
virtual |
◆ toCanvasCoordinates()
Converts a point in map coordinates to the associated canvas point.
May return an empty point if the map point cannot be converted to a canvas point.
Reimplemented in QgsElevationProfileCanvas.
Definition at line 272 of file qgsplotcanvas.cpp.
◆ toMapCoordinates()
Converts a point on the canvas to the associated map coordinate.
May return an empty point if the canvas point cannot be converted to a map point.
Reimplemented in QgsElevationProfileCanvas.
Definition at line 267 of file qgsplotcanvas.cpp.
◆ tool()
◆ toolChanged
void QgsPlotCanvas::toolChanged |
( |
QgsPlotTool * |
newTool | ) |
|
|
signal |
Emitted when the plot tool is changed.
◆ unsetTool()
Unset the current tool.
This is called from destructor of plot tools to make sure that this map tool won't be used any more.
You don't have to call it manually, QgsPlotTool takes care of it.
Definition at line 247 of file qgsplotcanvas.cpp.
◆ viewportEvent()
bool QgsPlotCanvas::viewportEvent |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
◆ wheelEvent()
void QgsPlotCanvas::wheelEvent |
( |
QWheelEvent * |
e | ) |
|
|
overrideprotected |
◆ wheelZoom()
void QgsPlotCanvas::wheelZoom |
( |
QWheelEvent * |
event | ) |
|
|
protectedvirtual |
◆ willBeDeleted
void QgsPlotCanvas::willBeDeleted |
( |
| ) |
|
|
signal |
Emitted in the destructor when the canvas is about to be deleted, but is still in a perfectly valid state.
◆ zoomToRect()
void QgsPlotCanvas::zoomToRect |
( |
const QRectF & |
rect | ) |
|
|
virtual |
The documentation for this class was generated from the following files: