19#ifndef QGSMAPOVERVIEWCANVAS_H
20#define QGSMAPOVERVIEWCANVAS_H
27class QgsPanningWidget;
55 QList<QgsMapLayer *>
layers()
const;
63 void updateFullExtent();
66 void mapRenderingFinished();
71 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 wheelEvent( QWheelEvent *e )
override;
105 void updatePanningWidget( QPoint pos );
131class QgsPanningWidget :
public QWidget
138 explicit QgsPanningWidget( QWidget *parent );
140 void setPolygon(
const QPolygon &p );
142 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.
QPoint mPanningCursorOffset
position of cursor inside panning widget
void setLayers(const QList< QgsMapLayer * > &layers)
updates layer set for overview
void refresh()
renders overview and updates panning widget
void setBackgroundColor(const QColor &color)
changes background color
QgsMapOverviewCanvas(QWidget *parent=nullptr, QgsMapCanvas *mapCanvas=nullptr)
QgsMapRendererQImageJob * mJob
for rendering overview
QPixmap mPixmap
pixmap where the map is stored
QgsPanningWidget * mPanningWidget
widget for panning map in overview
void enableAntiAliasing(bool flag)
QgsMapSettings mSettings
map settings used for rendering of the overview map
QList< QgsMapLayer * > layers() const
Returns list of layers visible in the overview.
QgsMapCanvas * mMapCanvas
main map canvas - used to get/set extent
Intermediate base class adding functionality that allows a client to query the rendered image.
Contains configuration for rendering maps.
A rectangle specified with double values.