QGIS API Documentation  2.6.0-Brighton
 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 drawExtentRect ()
 used for overview canvas to reflect changed extent in main map canvas
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
void setBackgroundColor (const QColor &color)
 changes background color
void setLayerSet (const QStringList &layerSet)
 updates layer set for overview
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.
void resizeEvent (QResizeEvent *e)
 Overridden resize event.
void mouseMoveEvent (QMouseEvent *e)
 Overridden mouse move event.
void mousePressEvent (QMouseEvent *e)
 Overridden mouse press event.
void mouseReleaseEvent (QMouseEvent *e)
 Overridden mouse release event.
void updatePanningWidget (const QPoint &pos)
 called when panning to reflect mouse movement

Protected Attributes

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

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: