QgsRasterViewPort struct

This class provides details of the viewable area that a raster will be rendered into.

Contents

The qgsrasterviewport class sets up a viewport / area of interest to be used by rasterlayer draw functions at the point of drawing to the screen.

Public variables

QgsPointXY mBottomRightPoint
Coordinate (in output device coordinate system) of bottom right corner of the part of the raster that is to be rendered.
QgsCoordinateReferenceSystem mDestCRS
Target coordinate system.
QgsRectangle mDrawnExtent
Intersection of current map extent and layer extent.
int mHeight
Distance in map units from bottom edge to top edge for the part of the raster that is to be rendered.
QgsCoordinateReferenceSystem mSrcCRS
Source coordinate system.
QgsPointXY mTopLeftPoint
Coordinate (in output device coordinate system) of top left corner of the part of the raster that is to be rendered.
int mWidth
Width, number of columns to be rendered.

Variable documentation

int QgsRasterViewPort::mHeight

Distance in map units from bottom edge to top edge for the part of the raster that is to be rendered.

Height, number of rows to be rendered