19 #ifndef QGSMAPOVERVIEWCANVAS_H
20 #define QGSMAPOVERVIEWCANVAS_H
23 #include <QMouseEvent>
24 #include <QWheelEvent>
26 #include <QStringList>
47 void drawExtentRect();
53 void setBackgroundColor(
const QColor& color );
56 void setLayerSet(
const QStringList& layerSet );
58 QStringList& layerSet();
62 void updateFullExtent();
66 void hasCrsTransformEnabled(
bool flag );
68 void destinationSrsChanged();
73 void paintEvent( QPaintEvent * pe );
76 void resizeEvent( QResizeEvent * e );
79 void mouseMoveEvent( QMouseEvent * e );
82 void mousePressEvent( QMouseEvent * e );
85 void mouseReleaseEvent( QMouseEvent * e );
88 void updatePanningWidget(
const QPoint& pos );
QSize mNewSize
resized canvas size
QPoint mPanningCursorOffset
position of cursor inside panning widget
A rectangle specified with double values.
A widget that displays an overview map.
bool mAntiAliasing
indicates whether antialiasing will be used for rendering
QgsMapCanvas * mMapCanvas
main map canvas - used to get/set extent
QColor mBgColor
background color
A non GUI class for rendering a map layer set onto a QPainter.
Map canvas is a class for displaying all GIS data types on a canvas.
void enableAntiAliasing(bool flag)
QgsPanningWidget * mPanningWidget
widget for panning map in overview
QPixmap mPixmap
pixmap where the map is stored
QgsMapRenderer * mMapRenderer
for rendering overview