/*************************************************************************** qgsmaptoolselectpolygon.h - map tool for selecting features by polygon --------------------- begin : May 2010 copyright : (C) 2010 by Jeremy Palmer email : jpalmer at linz dot govt dot nz *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef QGSMAPTOOLSELECTPOLYGON_H #define QGSMAPTOOLSELECTPOLYGON_H #include "qgsmaptool.h" #include "qgis_app.h" class QgsMapCanvas; class QgsRubberBand; class APP_EXPORT QgsMapToolSelectPolygon : public QgsMapTool { Q_OBJECT public: QgsMapToolSelectPolygon( QgsMapCanvas *canvas ); ~QgsMapToolSelectPolygon() override; //! Overridden mouse move event void canvasMoveEvent( QgsMapMouseEvent *e ) override; //! Overridden mouse press event void canvasPressEvent( QgsMapMouseEvent *e ) override; private: //! used for storing all of the maps point for the polygon QgsRubberBand *mRubberBand = nullptr; QColor mFillColor; QColor mStrokeColor; }; #endif