19 #ifndef QGSMAPOVERVIEWCANVAS_H
20 #define QGSMAPOVERVIEWCANVAS_H
27 class QgsPanningWidget;
49 void setBackgroundColor(
const QColor &color );
52 void setLayers(
const QList<QgsMapLayer *> &layers );
55 QList<QgsMapLayer *> layers()
const;
59 void updateFullExtent();
62 void mapRenderingFinished();
67 void layerRepaintRequested(
bool deferred =
false );
72 void drawExtentRect();
75 void destinationCrsChanged();
78 void transformContextChanged();
81 void paintEvent( QPaintEvent *pe )
override;
84 void showEvent( QShowEvent *e )
override;
87 void resizeEvent( QResizeEvent *e )
override;
90 void mouseMoveEvent( QMouseEvent *e )
override;
93 void mousePressEvent( QMouseEvent *e )
override;
96 void mouseReleaseEvent( QMouseEvent *e )
override;
99 void wheelEvent( QWheelEvent *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;
@ Antialiasing
Enable anti-aliasing for map rendering.
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.