QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QgsRasterDrawer Class Reference

The drawing pipe for raster layers. More...

#include <qgsrasterdrawer.h>

Collaboration diagram for QgsRasterDrawer:
Collaboration graph

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


Detailed Description

The drawing pipe for raster layers.

Definition at line 33 of file qgsrasterdrawer.h.

Constructor & Destructor Documentation

QgsRasterDrawer::QgsRasterDrawer ( QgsRasterIterator iterator)

Definition at line 26 of file qgsrasterdrawer.cpp.

QgsRasterDrawer::~QgsRasterDrawer ( )

Definition at line 30 of file qgsrasterdrawer.cpp.

Member Function Documentation

void QgsRasterDrawer::draw ( QPainter *  p,
QgsRasterViewPort viewPort,
const QgsMapToPixel theQgsMapToPixel 
void QgsRasterDrawer::drawImage ( QPainter *  p,
QgsRasterViewPort viewPort,
const QImage &  img,
int  topLeftCol,
int  topLeftRow 
) const

Draws raster part.

pthe painter to draw to
viewPortview port to draw to
imgimage to draw
topLeftColLeft position relative to left border of viewport
topLeftRowTop 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().

Member Data Documentation

QgsRasterIterator* QgsRasterDrawer::mIterator

Definition at line 51 of file qgsrasterdrawer.h.

Referenced by draw().

The documentation for this class was generated from the following files: