26 , mRasterViewPort( 0 )
53 QgsDebugMsg(
"coordinateTransform set -> project extents." );
77 myProjectedViewExtent = rendererContext.
extent();
78 myProjectedLayerExtent = layer->
extent();
104 mRasterViewPort->mDrawnExtent = myRasterExtent;
107 mRasterViewPort->mSrcCRS = layer->
crs();
116 mRasterViewPort->mSrcDatumTransform = -1;
117 mRasterViewPort->mDestDatumTransform = -1;
130 mRasterViewPort->mTopLeftPoint.
setX( floor( mRasterViewPort->mTopLeftPoint.x() ) );
131 mRasterViewPort->mTopLeftPoint.setY( floor( mRasterViewPort->mTopLeftPoint.y() ) );
132 mRasterViewPort->mBottomRightPoint.setX( ceil( mRasterViewPort->mBottomRightPoint.x() ) );
133 mRasterViewPort->mBottomRightPoint.setY( ceil( mRasterViewPort->mBottomRightPoint.y() ) );
137 mRasterViewPort->mBottomRightPoint.y() ),
139 mRasterViewPort->mTopLeftPoint.y() )
143 mRasterViewPort->mWidth =
static_cast<int>( mRasterViewPort->mBottomRightPoint.x() - mRasterViewPort->mTopLeftPoint.x() );
144 mRasterViewPort->mHeight =
static_cast<int>( mRasterViewPort->mBottomRightPoint.y() - mRasterViewPort->mTopLeftPoint.y() );
158 QgsDebugMsgLevel( QString(
"mTopLeftPoint.x() = %1" ).arg( mRasterViewPort->mTopLeftPoint.x() ), 3 );
159 QgsDebugMsgLevel( QString(
"mBottomRightPoint.x() = %1" ).arg( mRasterViewPort->mBottomRightPoint.x() ), 3 );
160 QgsDebugMsgLevel( QString(
"mTopLeftPoint.y() = %1" ).arg( mRasterViewPort->mTopLeftPoint.y() ), 3 );
161 QgsDebugMsgLevel( QString(
"mBottomRightPoint.y() = %1" ).arg( mRasterViewPort->mBottomRightPoint.y() ), 3 );
163 QgsDebugMsgLevel( QString(
"mWidth = %1" ).arg( mRasterViewPort->mWidth ), 3 );
164 QgsDebugMsgLevel( QString(
"mHeight = %1" ).arg( mRasterViewPort->mHeight ), 3 );
214 QgsDebugMsg( QString(
"total raster draw time (ms): %1" ).arg( time.elapsed(), 5 ) );