19 #ifndef QGSMAPOVERVIEWCANVAS_H 20 #define QGSMAPOVERVIEWCANVAS_H 23 #include <QMouseEvent> 24 #include <QWheelEvent> 26 #include <QStringList> 52 void setBackgroundColor(
const QColor& color );
55 void setLayerSet(
const QStringList& layerSet );
57 QStringList layerSet()
const;
61 void updateFullExtent();
67 void drawExtentRect();
70 void hasCrsTransformEnabled(
bool flag );
73 void destinationSrsChanged();
76 void mapRenderingFinished();
77 void layerRepaintRequested();
82 void paintEvent( QPaintEvent * pe )
override;
85 void resizeEvent( QResizeEvent * e )
override;
88 void mouseMoveEvent( QMouseEvent * e )
override;
91 void mousePressEvent( QMouseEvent * e )
override;
94 void mouseReleaseEvent( QMouseEvent * e )
override;
97 void updatePanningWidget(
const QPoint& pos );
QPoint mPanningCursorOffset
position of cursor inside panning widget
A rectangle specified with double values.
A widget that displays an overview map.
QgsMapCanvas * mMapCanvas
main map canvas - used to get/set extent
QgsMapRendererQImageJob * mJob
for rendering overview
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)
QgsPanningWidget * mPanningWidget
widget for panning map in overview
QgsMapSettings mSettings
map settings used for rendering of the overview map
Enable anti-aliasin for map rendering.
QPixmap mPixmap
pixmap where the map is stored
Intermediate base class adding functionality that allows client to query the rendered image...