|
QGIS API Documentation
2.4.0-Chugiak
|
A rectangular graphics item representing the map on the canvas. More...
#include <qgsmapcanvasmap.h>


Public Member Functions | |
| QgsMapCanvasMap (QgsMapCanvas *canvas) | |
| constructor More... | |
| ~QgsMapCanvasMap () | |
| void | setContent (const QImage &image, const QgsRectangle &rect) |
| QImage | contentImage () const |
| virtual void | paint (QPainter *painter) |
| function to be implemented by derived classes More... | |
| Q_DECL_DEPRECATED void | refresh () |
| Q_DECL_DEPRECATED void | resize (QSize size) |
| Q_DECL_DEPRECATED void | enableAntiAliasing (bool flag) |
| Q_DECL_DEPRECATED void | render () |
| Q_DECL_DEPRECATED void | setBackgroundColor (const QColor &color) |
| Q_DECL_DEPRECATED void | setPanningOffset (const QPoint &point) |
| Q_DECL_DEPRECATED QPaintDevice & | paintDevice () |
| Q_DECL_DEPRECATED void | updateContents () |
Public Member Functions inherited from QgsMapCanvasItem | |
| virtual void | updatePosition () |
| called on changed extent or resize event to update position of the item More... | |
| virtual QRectF | boundingRect () const |
| default implementation for canvas items More... | |
| Q_DECL_DEPRECATED void | setPanningOffset (const QPoint &point) |
| sets current offset, to be called from QgsMapCanvas More... | |
| QgsRectangle | rect () const |
| returns canvas item rectangle More... | |
| void | setRect (const QgsRectangle &r) |
| sets canvas item rectangle More... | |
| QgsPoint | toMapCoordinates (const QPoint &point) |
| transformation from screen coordinates to map coordinates More... | |
| QPointF | toCanvasCoordinates (const QgsPoint &point) |
| transformation from map coordinates to screen coordinates More... | |
Private Attributes | |
| QImage | mImage |
Additional Inherited Members | |
Protected Member Functions inherited from QgsMapCanvasItem | |
| QgsMapCanvasItem (QgsMapCanvas *mapCanvas) | |
| protected constructor: cannot be constructed directly More... | |
| virtual | ~QgsMapCanvasItem () |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| paint function called by map canvas More... | |
| void | updateCanvas () |
| schedules map canvas for repaint More... | |
| bool | setRenderContextVariables (QPainter *p, QgsRenderContext &context) const |
| Sets render context parameters. More... | |
Protected Attributes inherited from QgsMapCanvasItem | |
| QgsMapCanvas * | mMapCanvas |
| pointer to map canvas More... | |
| QgsRectangle | mRect |
| canvas item rectangle (in map coordinates) More... | |
| QPoint | mPanningOffset |
| offset from normal position due current panning operation, used when converting map coordinates to move map canvas items More... | |
| QSizeF | mItemSize |
| cached size of the item (to return in boundingRect()) More... | |
A rectangular graphics item representing the map on the canvas.
Definition at line 34 of file qgsmapcanvasmap.h.
| QgsMapCanvasMap::QgsMapCanvasMap | ( | QgsMapCanvas * | canvas | ) |
constructor
Definition at line 25 of file qgsmapcanvasmap.cpp.
| QgsMapCanvasMap::~QgsMapCanvasMap | ( | ) |
Definition at line 31 of file qgsmapcanvasmap.cpp.
|
inline |
Definition at line 47 of file qgsmapcanvasmap.h.
Referenced by QgsMapCanvas::saveAsImage().
|
inline |
Definition at line 58 of file qgsmapcanvasmap.h.
|
virtual |
function to be implemented by derived classes
Implements QgsMapCanvasItem.
Definition at line 41 of file qgsmapcanvasmap.cpp.
References QgsMapCanvasItem::boundingRect(), mImage, and QgsDebugMsg.
| QPaintDevice & QgsMapCanvasMap::paintDevice | ( | ) |
Definition at line 51 of file qgsmapcanvasmap.cpp.
References mImage.
Referenced by QgsMapCanvas::canvasPaintDevice().
|
inline |
Definition at line 52 of file qgsmapcanvasmap.h.
|
inline |
Definition at line 61 of file qgsmapcanvasmap.h.
|
inline |
Definition at line 55 of file qgsmapcanvasmap.h.
|
inline |
Definition at line 64 of file qgsmapcanvasmap.h.
| void QgsMapCanvasMap::setContent | ( | const QImage & | image, |
| const QgsRectangle & | rect | ||
| ) |
Definition at line 35 of file qgsmapcanvasmap.cpp.
References mImage, and QgsMapCanvasItem::setRect().
Referenced by QgsMapCanvas::mapUpdateTimeout(), and QgsMapCanvas::rendererJobFinished().
|
inline |
Definition at line 67 of file qgsmapcanvasmap.h.
|
inline |
Definition at line 73 of file qgsmapcanvasmap.h.
|
private |
Definition at line 77 of file qgsmapcanvasmap.h.
Referenced by paint(), paintDevice(), and setContent().
1.8.7