QGIS API Documentation
2.6.0-Brighton
|
A rectangular graphics item representing the map on the canvas. More...
#include <qgsmapcanvasmap.h>
Public Member Functions | |
QgsMapCanvasMap (QgsMapCanvas *canvas) | |
constructor | |
~QgsMapCanvasMap () | |
void | setContent (const QImage &image, const QgsRectangle &rect) |
QImage | contentImage () const |
virtual void | paint (QPainter *painter) |
function to be implemented by derived classes | |
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 | |
virtual QRectF | boundingRect () const |
default implementation for canvas items | |
QgsRectangle | rect () const |
returns canvas item rectangle | |
void | setRect (const QgsRectangle &r) |
sets canvas item rectangle | |
QgsPoint | toMapCoordinates (const QPoint &point) |
transformation from screen coordinates to map coordinates | |
QPointF | toCanvasCoordinates (const QgsPoint &point) |
transformation from map coordinates to screen coordinates |
Additional Inherited Members | |
Protected Member Functions inherited from QgsMapCanvasItem | |
QgsMapCanvasItem (QgsMapCanvas *mapCanvas) | |
protected constructor: cannot be constructed directly | |
virtual | ~QgsMapCanvasItem () |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
paint function called by map canvas | |
void | updateCanvas () |
schedules map canvas for repaint | |
bool | setRenderContextVariables (QPainter *p, QgsRenderContext &context) const |
Sets render context parameters. | |
Protected Attributes inherited from QgsMapCanvasItem | |
QgsMapCanvas * | mMapCanvas |
pointer to map canvas | |
QgsRectangle | mRect |
canvas item rectangle (in map coordinates) | |
QPoint | mPanningOffset |
offset from normal position due current panning operation, used when converting map coordinates to move map canvas items | |
QSizeF | mItemSize |
cached size of the item (to return in boundingRect()) |
A rectangular graphics item representing the map on the canvas.
QgsMapCanvasMap::QgsMapCanvasMap | ( | QgsMapCanvas * | canvas | ) |
constructor
QgsMapCanvasMap::~QgsMapCanvasMap | ( | ) |
|
inline |
|
inline |
|
virtual |
function to be implemented by derived classes
Implements QgsMapCanvasItem.
QPaintDevice & QgsMapCanvasMap::paintDevice | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
void QgsMapCanvasMap::setContent | ( | const QImage & | image, |
const QgsRectangle & | rect | ||
) |
|
inline |
Reimplemented from QgsMapCanvasItem.
|
inline |