QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
QgsMapOverviewCanvas Class Reference

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

QgsMapRendererQImageJobmJob
 for rendering overview
QgsMapCanvasmMapCanvas
 main map canvas - used to get/set extent
QPoint mPanningCursorOffset
 position of cursor inside panning widget
QgsPanningWidgetmPanningWidget
 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

Detailed Description

A widget that displays an overview map.

Definition at line 39 of file qgsmapoverviewcanvas.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void QgsMapOverviewCanvas::destinationSrsChanged ( )
slot

Definition at line 297 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::drawExtentRect ( )
slot

used for overview canvas to reflect changed extent in main map canvas

Definition at line 112 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::enableAntiAliasing ( bool  flag)
inline

Definition at line 59 of file qgsmapoverviewcanvas.h.

void QgsMapOverviewCanvas::hasCrsTransformEnabled ( bool  flag)
slot

Definition at line 292 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::layerRepaintRequested ( )
protectedslot

Definition at line 240 of file qgsmapoverviewcanvas.cpp.

QStringList QgsMapOverviewCanvas::layerSet ( ) const

Definition at line 302 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::mapRenderingFinished ( )
protectedslot

Definition at line 228 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

Overridden mouse move event.

Definition at line 176 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::mousePressEvent ( QMouseEvent *  e)
overrideprotected

Overridden mouse press event.

Definition at line 137 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

Overridden mouse release event.

Definition at line 158 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::paintEvent ( QPaintEvent *  pe)
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.

void QgsMapOverviewCanvas::resizeEvent ( QResizeEvent *  e)
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.

void QgsMapOverviewCanvas::updatePanningWidget ( const QPoint &  pos)
protected

called when panning to reflect mouse movement

Definition at line 186 of file qgsmapoverviewcanvas.cpp.

Member Data Documentation

QgsMapRendererQImageJob* QgsMapOverviewCanvas::mJob
protected

for rendering overview

Definition at line 115 of file qgsmapoverviewcanvas.h.

QgsMapCanvas* QgsMapOverviewCanvas::mMapCanvas
protected

main map canvas - used to get/set extent

Definition at line 106 of file qgsmapoverviewcanvas.h.

QPoint QgsMapOverviewCanvas::mPanningCursorOffset
protected

position of cursor inside panning widget

Definition at line 103 of file qgsmapoverviewcanvas.h.

QgsPanningWidget* QgsMapOverviewCanvas::mPanningWidget
protected

widget for panning map in overview

Definition at line 100 of file qgsmapoverviewcanvas.h.

QPixmap QgsMapOverviewCanvas::mPixmap
protected

pixmap where the map is stored

Definition at line 109 of file qgsmapoverviewcanvas.h.

QgsMapSettings QgsMapOverviewCanvas::mSettings
protected

map settings used for rendering of the overview map

Definition at line 112 of file qgsmapoverviewcanvas.h.


The documentation for this class was generated from the following files: