46 QgsDebugMsg( QString(
"resizing to %1x%2" ).arg( size.width() ).arg( size.height() ) );
47 prepareGeometryChange();
51 mImage = QImage( size, QImage::Format_RGB32 );
77 paint.setClipRect(
mImage.rect() );
81 paint.setRenderHint( QPainter::Antialiasing );
96 paint.setClipRect(
mPixmap.rect() );
100 paint.setRenderHint( QPainter::Antialiasing );
bool mUseQImageToRender
Whether to use a QPixmap or a QImage for the rendering.
void render(QPainter *painter, double *forceWidthScale=0)
starts rendering @ param forceWidthScale Force a specific scale factor for line widths and marker siz...
void paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *)
QRectF boundingRect() const
void resize(QSize size)
resize canvas item and pixmap
void updateContents()
Update contents - can be called while drawing to show the status.
Map canvas is a class for displaying all GIS data types on a canvas.
void render()
renders map using QgsMapRenderer to mPixmap
QPaintDevice & paintDevice()
void setOutputSize(QSize size, int dpi)
bool mAntiAliasing
indicates whether antialiasing will be used for rendering
QgsMapRenderer * mapRenderer()
void setPanningOffset(const QPoint &point)
QgsMapCanvasMap(QgsMapCanvas *canvas)
constructor