62 if ( qobject_cast<QgsPlotToolPan *>( sipCpp ) !=
nullptr )
63 sipType = sipType_QgsPlotToolPan;
64 else if ( qobject_cast<QgsPlotToolZoom *>( sipCpp ) !=
nullptr )
65 sipType = sipType_QgsPlotToolZoom;
66 else if ( qobject_cast<QgsPlotTool *>( sipCpp ) !=
nullptr )
67 sipType = sipType_QgsPlotTool;
131 virtual void wheelEvent( QWheelEvent *event );
140 virtual void keyPressEvent( QKeyEvent *event );
149 virtual void keyReleaseEvent( QKeyEvent *event );
156 virtual bool gestureEvent( QGestureEvent *event );
163 virtual bool canvasToolTipEvent( QHelpEvent *event );
168 bool isActive()
const;
173 virtual void activate();
178 virtual void deactivate();
193 void setAction( QAction *action );
205 void setCursor(
const QCursor &cursor );
223 virtual bool populateContextMenuWithEvent( QMenu *menu,
QgsPlotMouseEvent *event );
257 bool isClickAndDrag( QPoint startViewPoint, QPoint endViewPoint )
const;
QFlags< PlotToolFlag > PlotToolFlags
Plot canvas is a class for displaying interactive 2d charts and plots.
A mouse event which is the result of a user interaction with a QgsPlotCanvas.
Point geometry type, with support for z-dimension and m-values.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)