19#ifndef QGSMAPOVERVIEWCANVAS_H
20#define QGSMAPOVERVIEWCANVAS_H
27class QgsPanningWidget;
49 void setBackgroundColor(
const QColor &color );
52 void setLayers(
const QList<QgsMapLayer *> &layers );
55 QList<QgsMapLayer *> layers()
const;
63 void updateFullExtent();
66 void mapRenderingFinished();
71 void layerRepaintRequested(
bool deferred =
false );
76 void drawExtentRect();
79 void destinationCrsChanged();
82 void transformContextChanged();
85 void paintEvent( QPaintEvent *pe )
override;
88 void showEvent( QShowEvent *e )
override;
91 void resizeEvent( QResizeEvent *e )
override;
94 void mouseMoveEvent( QMouseEvent *e )
override;
97 void mousePressEvent( QMouseEvent *e )
override;
100 void mouseReleaseEvent( QMouseEvent *e )
override;
103 void wheelEvent( QWheelEvent *e )
override;
106 void updatePanningWidget( QPoint pos );
109 QgsPanningWidget *mPanningWidget =
nullptr;
132class QgsPanningWidget :
public QWidget
139 explicit QgsPanningWidget( QWidget *parent );
141 void setPolygon(
const QPolygon &p );
143 void paintEvent( QPaintEvent *pe )
override;
@ Antialiasing
Enable anti-aliasing for map rendering.
@ HighQualityImageTransforms
Enable high quality image transformations, which results in better appearance of scaled or rotated ra...
Map canvas is a class for displaying all GIS data types on a canvas.
A widget that displays an overview map.
QPoint mPanningCursorOffset
position of cursor inside panning widget
QPixmap mPixmap
pixmap where the map is stored
void enableAntiAliasing(bool flag)
QgsMapSettings mSettings
map settings used for rendering of the overview map
Intermediate base class adding functionality that allows client to query the rendered image.
The QgsMapSettings class contains configuration for rendering of the map.
A rectangle specified with double values.