18 #ifndef QGSPLOTCANVAS_H
19 #define QGSPLOTCANVAS_H
21 #include "qgsconfig.h"
25 #include <QGraphicsView>
58 if ( qobject_cast<QgsElevationProfileCanvas *>( sipCpp ) !=
nullptr )
59 sipType = sipType_QgsElevationProfileCanvas;
60 else if ( qobject_cast<QgsPlotCanvas *>( sipCpp ) !=
nullptr )
61 sipType = sipType_QgsPlotCanvas;
130 virtual void panContentsBy(
double dx,
double dy );
137 virtual void centerPlotOn(
double x,
double y );
144 virtual void scalePlot(
double factor );
151 virtual void zoomToRect(
const QRectF &rect );
160 virtual QgsPointXY snapToPlot( QPoint point );
167 virtual void refresh();
179 void plotAreaChanged();
191 void willBeDeleted();
195 bool event( QEvent *e )
override;
196 void keyPressEvent( QKeyEvent *e )
override;
197 void keyReleaseEvent( QKeyEvent *e )
override;
198 void mouseDoubleClickEvent( QMouseEvent *e )
override;
199 void mouseMoveEvent( QMouseEvent *e )
override;
200 void mousePressEvent( QMouseEvent *e )
override;
201 void mouseReleaseEvent( QMouseEvent *e )
override;
202 void wheelEvent( QWheelEvent *e )
override;
203 void resizeEvent( QResizeEvent *e )
override;
204 bool viewportEvent( QEvent *event )
override;
211 virtual void wheelZoom( QWheelEvent *event );
216 QGraphicsScene *mScene =
nullptr;
219 QPointer< QgsPlotTool > mTool;
229 #endif // QGSPLOTCANVAS_H