QGIS API Documentation
2.0.1-Dufour
|
The drawing pipe for raster layers. More...
#include <qgsrasterdrawer.h>
Public Member Functions | |
QgsRasterDrawer (QgsRasterIterator *iterator) | |
~QgsRasterDrawer () | |
void | draw (QPainter *p, QgsRasterViewPort *viewPort, const QgsMapToPixel *theQgsMapToPixel) |
Protected Member Functions | |
void | drawImage (QPainter *p, QgsRasterViewPort *viewPort, const QImage &img, int topLeftCol, int topLeftRow) const |
Draws raster part. |
Private Attributes | |
QgsRasterIterator * | mIterator |
The drawing pipe for raster layers.
Definition at line 33 of file qgsrasterdrawer.h.
QgsRasterDrawer::QgsRasterDrawer | ( | QgsRasterIterator * | iterator | ) |
Definition at line 26 of file qgsrasterdrawer.cpp.
QgsRasterDrawer::~QgsRasterDrawer | ( | ) |
Definition at line 30 of file qgsrasterdrawer.cpp.
void QgsRasterDrawer::draw | ( | QPainter * | p, |
QgsRasterViewPort * | viewPort, | ||
const QgsMapToPixel * | theQgsMapToPixel | ||
) |
Definition at line 34 of file qgsrasterdrawer.cpp.
References drawImage(), QgsRasterBlock::image(), QgsRasterViewPort::mDrawnExtent, QgsRasterViewPort::mHeight, mIterator, QgsRasterViewPort::mWidth, QgsDebugMsg, QgsRasterIterator::readNextRasterPart(), and QgsRasterIterator::startRasterRead().
|
protected |
Draws raster part.
p | the painter to draw to |
viewPort | view port to draw to |
img | image to draw |
topLeftCol | Left position relative to left border of viewport |
topLeftRow | Top position relative to top border of viewport |
Definition at line 75 of file qgsrasterdrawer.cpp.
References QgsRasterViewPort::mTopLeftPoint, QgsPoint::x(), and QgsPoint::y().
Referenced by draw().
|
private |
Definition at line 51 of file qgsrasterdrawer.h.
Referenced by draw().