QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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>

Inheritance diagram for QgsMapOverviewCanvas:
Inheritance graph
[legend]

Public Slots

void destinationSrsChanged ()
 
void drawExtentRect ()
 used for overview canvas to reflect changed extent in main map canvas More...
 
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 More...
 
void setBackgroundColor (const QColor &color)
 changes background color More...
 
void setLayerSet (const QStringList &layerSet)
 updates layer set for overview More...
 
void updateFullExtent ()
 

Protected Slots

void layerRepaintRequested ()
 
void mapRenderingFinished ()
 

Protected Member Functions

void mouseMoveEvent (QMouseEvent *e)
 Overridden mouse move event. More...
 
void mousePressEvent (QMouseEvent *e)
 Overridden mouse press event. More...
 
void mouseReleaseEvent (QMouseEvent *e)
 Overridden mouse release event. More...
 
void paintEvent (QPaintEvent *pe)
 Overridden paint event. More...
 
void resizeEvent (QResizeEvent *e)
 Overridden resize event. More...
 
void updatePanningWidget (const QPoint &pos)
 called when panning to reflect mouse movement More...
 

Protected Attributes

QgsMapRendererQImageJobmJob
 for rendering overview More...
 
QgsMapCanvasmMapCanvas
 main map canvas - used to get/set extent More...
 
QPoint mPanningCursorOffset
 position of cursor inside panning widget More...
 
QgsPanningWidgetmPanningWidget
 widget for panning map in overview More...
 
QPixmap mPixmap
 pixmap where the map is stored More...
 
QgsMapSettings mSettings
 map settings used for rendering of the overview map More...
 

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 362 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 357 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::layerRepaintRequested ( )
protectedslot

Definition at line 305 of file qgsmapoverviewcanvas.cpp.

QStringList QgsMapOverviewCanvas::layerSet ( ) const

Definition at line 367 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::mapRenderingFinished ( )
protectedslot

Definition at line 293 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::mouseMoveEvent ( QMouseEvent *  e)
protected

Overridden mouse move event.

Definition at line 241 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::mousePressEvent ( QMouseEvent *  e)
protected

Overridden mouse press event.

Definition at line 193 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::mouseReleaseEvent ( QMouseEvent *  e)
protected

Overridden mouse release event.

Definition at line 214 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::paintEvent ( QPaintEvent *  pe)
protected

Overridden paint event.

Definition at line 102 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::refresh ( )

renders overview and updates panning widget

Definition at line 258 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::resizeEvent ( QResizeEvent *  e)
protected

Overridden resize event.

Definition at line 89 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::setBackgroundColor ( const QColor &  color)

changes background color

Definition at line 311 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::setLayerSet ( const QStringList &  layerSet)

updates layer set for overview

Definition at line 321 of file qgsmapoverviewcanvas.cpp.

void QgsMapOverviewCanvas::updateFullExtent ( )

Definition at line 342 of file qgsmapoverviewcanvas.cpp.

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

called when panning to reflect mouse movement

Definition at line 251 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: