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 updatePanningWidget( QPoint pos );
   102     QgsPanningWidget *mPanningWidget = 
nullptr;
   125 class QgsPanningWidget : 
public QWidget
   132     explicit QgsPanningWidget( QWidget *parent );
   134     void setPolygon( 
const QPolygon &p );
   136     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...