19 #ifndef QGSMAPOVERVIEWCANVAS_H 20 #define QGSMAPOVERVIEWCANVAS_H 23 #include <QMouseEvent> 24 #include <QWheelEvent> 26 #include <QStringList> 30 class QgsPanningWidget;
52 void setBackgroundColor(
const QColor &color );
55 void setLayers(
const QList<QgsMapLayer *> &layers );
58 QList<QgsMapLayer *> layers()
const;
62 void updateFullExtent();
65 void mapRenderingFinished();
70 void layerRepaintRequested(
bool deferred =
false );
75 void drawExtentRect();
78 void destinationCrsChanged();
81 void transformContextChanged();
84 void paintEvent( QPaintEvent *pe )
override;
87 void showEvent( QShowEvent *e )
override;
90 void resizeEvent( QResizeEvent *e )
override;
93 void mouseMoveEvent( QMouseEvent *e )
override;
96 void mousePressEvent( QMouseEvent *e )
override;
99 void mouseReleaseEvent( QMouseEvent *e )
override;
102 void updatePanningWidget( QPoint pos );
105 QgsPanningWidget *mPanningWidget =
nullptr;
128 class QgsPanningWidget :
public QWidget
135 explicit QgsPanningWidget( QWidget *parent );
137 void setPolygon(
const QPolygon &p );
139 void paintEvent( QPaintEvent *pe )
override;
QPoint mPanningCursorOffset
position of cursor inside panning widget
A rectangle specified with double values.
A widget that displays an overview map.
Map canvas is a class for displaying all GIS data types on a canvas.
The QgsMapSettings class contains configuration for rendering of the map.
void enableAntiAliasing(bool flag)
QgsMapSettings mSettings
map settings used for rendering of the overview map
Enable anti-aliasing for map rendering.
QPixmap mPixmap
pixmap where the map is stored
Intermediate base class adding functionality that allows client to query the rendered image...