QGIS API Documentation
2.8.2-Wien
|
A widget that displays an overview map. More...
#include <qgsmapoverviewcanvas.h>
Public Slots | |
void | destinationSrsChanged () |
void | drawExtentRect () |
used for overview canvas to reflect changed extent in main map canvas | |
void | hasCrsTransformEnabled (bool flag) |
Public Member Functions | |
QgsMapOverviewCanvas (QWidget *parent=0, QgsMapCanvas *mapCanvas=NULL) | |
~QgsMapOverviewCanvas () | |
void | enableAntiAliasing (bool flag) |
QStringList | layerSet () const |
void | refresh () |
renders overview and updates panning widget | |
void | setBackgroundColor (const QColor &color) |
changes background color | |
void | setLayerSet (const QStringList &layerSet) |
updates layer set for overview | |
void | updateFullExtent () |
Protected Slots | |
void | layerRepaintRequested () |
void | mapRenderingFinished () |
Protected Member Functions | |
void | mouseMoveEvent (QMouseEvent *e) override |
Overridden mouse move event. | |
void | mousePressEvent (QMouseEvent *e) override |
Overridden mouse press event. | |
void | mouseReleaseEvent (QMouseEvent *e) override |
Overridden mouse release event. | |
void | paintEvent (QPaintEvent *pe) override |
Overridden paint event. | |
void | resizeEvent (QResizeEvent *e) override |
Overridden resize event. | |
void | updatePanningWidget (const QPoint &pos) |
called when panning to reflect mouse movement |
Protected Attributes | |
QgsMapRendererQImageJob * | mJob |
for rendering overview | |
QgsMapCanvas * | mMapCanvas |
main map canvas - used to get/set extent | |
QPoint | mPanningCursorOffset |
position of cursor inside panning widget | |
QgsPanningWidget * | mPanningWidget |
widget for panning map in overview | |
QPixmap | mPixmap |
pixmap where the map is stored | |
QgsMapSettings | mSettings |
map settings used for rendering of the overview map |
A widget that displays an overview map.
Definition at line 39 of file qgsmapoverviewcanvas.h.
QgsMapOverviewCanvas::QgsMapOverviewCanvas | ( | QWidget * | parent = 0 , |
QgsMapCanvas * | mapCanvas = NULL |
||
) |
Definition at line 72 of file qgsmapoverviewcanvas.cpp.
QgsMapOverviewCanvas::~QgsMapOverviewCanvas | ( | ) |
Definition at line 85 of file qgsmapoverviewcanvas.cpp.
|
slot |
Definition at line 297 of file qgsmapoverviewcanvas.cpp.
|
slot |
used for overview canvas to reflect changed extent in main map canvas
Definition at line 112 of file qgsmapoverviewcanvas.cpp.
|
inline |
Definition at line 59 of file qgsmapoverviewcanvas.h.
|
slot |
Definition at line 292 of file qgsmapoverviewcanvas.cpp.
|
protectedslot |
Definition at line 240 of file qgsmapoverviewcanvas.cpp.
QStringList QgsMapOverviewCanvas::layerSet | ( | ) | const |
Definition at line 302 of file qgsmapoverviewcanvas.cpp.
|
protectedslot |
Definition at line 228 of file qgsmapoverviewcanvas.cpp.
|
overrideprotected |
Overridden mouse move event.
Definition at line 176 of file qgsmapoverviewcanvas.cpp.
|
overrideprotected |
Overridden mouse press event.
Definition at line 137 of file qgsmapoverviewcanvas.cpp.
|
overrideprotected |
Overridden mouse release event.
Definition at line 158 of file qgsmapoverviewcanvas.cpp.
|
overrideprotected |
Overridden paint event.
Definition at line 102 of file qgsmapoverviewcanvas.cpp.
void QgsMapOverviewCanvas::refresh | ( | ) |
renders overview and updates panning widget
Definition at line 193 of file qgsmapoverviewcanvas.cpp.
|
overrideprotected |
Overridden resize event.
Definition at line 89 of file qgsmapoverviewcanvas.cpp.
void QgsMapOverviewCanvas::setBackgroundColor | ( | const QColor & | color | ) |
changes background color
Definition at line 246 of file qgsmapoverviewcanvas.cpp.
void QgsMapOverviewCanvas::setLayerSet | ( | const QStringList & | layerSet | ) |
updates layer set for overview
Definition at line 256 of file qgsmapoverviewcanvas.cpp.
void QgsMapOverviewCanvas::updateFullExtent | ( | ) |
Definition at line 277 of file qgsmapoverviewcanvas.cpp.
|
protected |
called when panning to reflect mouse movement
Definition at line 186 of file qgsmapoverviewcanvas.cpp.
|
protected |
for rendering overview
Definition at line 115 of file qgsmapoverviewcanvas.h.
|
protected |
main map canvas - used to get/set extent
Definition at line 106 of file qgsmapoverviewcanvas.h.
|
protected |
position of cursor inside panning widget
Definition at line 103 of file qgsmapoverviewcanvas.h.
|
protected |
widget for panning map in overview
Definition at line 100 of file qgsmapoverviewcanvas.h.
|
protected |
pixmap where the map is stored
Definition at line 109 of file qgsmapoverviewcanvas.h.
|
protected |
map settings used for rendering of the overview map
Definition at line 112 of file qgsmapoverviewcanvas.h.