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 );
 
   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 );
 
  108    QgsPanningWidget *mPanningWidget = 
nullptr;
 
 
  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.
 
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 a client to query the rendered image.
 
Contains configuration for rendering maps.
 
A rectangle specified with double values.