QGIS API Documentation  2.5.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 drawExtentRect ()
 used for overview canvas to reflect changed extent in main map canvas More...
 
void hasCrsTransformEnabled (bool flag)
 
void destinationSrsChanged ()
 

Public Member Functions

 QgsMapOverviewCanvas (QWidget *parent=0, QgsMapCanvas *mapCanvas=NULL)
 
 ~QgsMapOverviewCanvas ()
 
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...
 
QStringList layerSet () const
 
void enableAntiAliasing (bool flag)
 
void updateFullExtent ()
 

Protected Slots

void mapRenderingFinished ()
 
void layerRepaintRequested ()
 

Protected Member Functions

void paintEvent (QPaintEvent *pe)
 Overridden paint event. More...
 
void resizeEvent (QResizeEvent *e)
 Overridden resize event. More...
 
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 updatePanningWidget (const QPoint &pos)
 called when panning to reflect mouse movement More...
 

Protected Attributes

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

Detailed Description

A widget that displays an overview map.

Constructor & Destructor Documentation

QgsMapOverviewCanvas::QgsMapOverviewCanvas ( QWidget *  parent = 0,
QgsMapCanvas mapCanvas = NULL 
)
QgsMapOverviewCanvas::~QgsMapOverviewCanvas ( )

Member Function Documentation

void QgsMapOverviewCanvas::destinationSrsChanged ( )
slot
void QgsMapOverviewCanvas::drawExtentRect ( )
slot

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

void QgsMapOverviewCanvas::enableAntiAliasing ( bool  flag)
inline
void QgsMapOverviewCanvas::hasCrsTransformEnabled ( bool  flag)
slot
void QgsMapOverviewCanvas::layerRepaintRequested ( )
protectedslot
QStringList QgsMapOverviewCanvas::layerSet ( ) const
void QgsMapOverviewCanvas::mapRenderingFinished ( )
protectedslot
void QgsMapOverviewCanvas::mouseMoveEvent ( QMouseEvent *  e)
protected

Overridden mouse move event.

void QgsMapOverviewCanvas::mousePressEvent ( QMouseEvent *  e)
protected

Overridden mouse press event.

void QgsMapOverviewCanvas::mouseReleaseEvent ( QMouseEvent *  e)
protected

Overridden mouse release event.

void QgsMapOverviewCanvas::paintEvent ( QPaintEvent *  pe)
protected

Overridden paint event.

void QgsMapOverviewCanvas::refresh ( )

renders overview and updates panning widget

void QgsMapOverviewCanvas::resizeEvent ( QResizeEvent *  e)
protected

Overridden resize event.

void QgsMapOverviewCanvas::setBackgroundColor ( const QColor &  color)

changes background color

void QgsMapOverviewCanvas::setLayerSet ( const QStringList &  layerSet)

updates layer set for overview

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

called when panning to reflect mouse movement

Member Data Documentation

QgsMapRendererQImageJob* QgsMapOverviewCanvas::mJob
protected

for rendering overview

QgsMapCanvas* QgsMapOverviewCanvas::mMapCanvas
protected

main map canvas - used to get/set extent

QPoint QgsMapOverviewCanvas::mPanningCursorOffset
protected

position of cursor inside panning widget

QgsPanningWidget* QgsMapOverviewCanvas::mPanningWidget
protected

widget for panning map in overview

QPixmap QgsMapOverviewCanvas::mPixmap
protected

pixmap where the map is stored

QgsMapSettings QgsMapOverviewCanvas::mSettings
protected

map settings used for rendering of the overview map


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