2005-12-30 04:56:31 +00:00
|
|
|
|
|
|
|
struct QgsRasterViewPort
|
|
|
|
{
|
2007-01-09 02:39:15 +00:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsrasterviewport.h>
|
|
|
|
%End
|
|
|
|
|
2005-12-30 04:56:31 +00:00
|
|
|
/** \brief The offset from the left hand edge of the raster for the rectangle that will be drawn to screen.
|
|
|
|
* TODO Check this explanation is correc!*/
|
2011-03-08 19:15:31 +00:00
|
|
|
//int rectXOffset;
|
|
|
|
//float rectXOffsetFloat;
|
2005-12-30 04:56:31 +00:00
|
|
|
/** \brief The offset from the bottom edge of the raster for the rectangle that will be drawn to screen.
|
|
|
|
* TODO Check this explanation is correc!*/
|
2011-03-08 19:15:31 +00:00
|
|
|
//int rectYOffset;
|
|
|
|
//float rectYOffsetFloat;
|
2005-12-30 04:56:31 +00:00
|
|
|
/** \brief Lower left X dimension of clipped raster image in raster pixel space.
|
|
|
|
* RasterIO will do the scaling for us, so for example, if the user is zoomed in a long way, there may only
|
|
|
|
* be e.g. 5x5 pixels retrieved from the raw raster data, but rasterio will seamlessly scale the up to
|
|
|
|
* whatever the screen coordinates are (e.g. a 600x800 display window) */
|
2011-03-08 19:15:31 +00:00
|
|
|
//double clippedXMin;
|
2005-12-30 04:56:31 +00:00
|
|
|
/** \brief Top Right X dimension of clipped raster image in raster pixel space.
|
|
|
|
* RasterIO will do the scaling for us, so for example, if the user is zoomed in a long way, there may only
|
|
|
|
* be e.g. 5x5 pixels retrieved from the raw raster data, but rasterio will seamlessly scale the up to
|
|
|
|
* whatever the screen coordinates are (e.g. a 600x800 display window) */
|
2011-03-08 19:15:31 +00:00
|
|
|
//double clippedXMax;
|
2005-12-30 04:56:31 +00:00
|
|
|
/** \brief Lower left Y dimension of clipped raster image in raster pixel space.
|
|
|
|
* RasterIO will do the scaling for us, so for example, if the user is zoomed in a long way, there may only
|
|
|
|
* be e.g. 5x5 pixels retrieved from the raw raster data, but rasterio will seamlessly scale the up to
|
|
|
|
* whatever the screen coordinates are (e.g. a 600x800 display window) */
|
2011-03-08 19:15:31 +00:00
|
|
|
//double clippedYMin;
|
2005-12-30 04:56:31 +00:00
|
|
|
/** \brief Top Right X dimension of clipped raster image in raster pixel space.
|
|
|
|
* RasterIO will do the scaling for us, so for example, if the user is zoomed in a long way, there may only
|
|
|
|
* be e.g. 5x5 pixels retrieved from the raw raster data, but rasterio will seamlessly scale the up to
|
|
|
|
* whatever the screen coordinates are (e.g. a 600x800 display window) */
|
2011-03-08 19:15:31 +00:00
|
|
|
//double clippedYMax;
|
2008-01-11 06:38:10 +00:00
|
|
|
/** \brief Distance in pixels from clippedXMin to clippedXMax. */
|
2011-03-08 19:15:31 +00:00
|
|
|
//int clippedWidth;
|
2008-01-11 06:38:10 +00:00
|
|
|
/** \brief Distance in pixels from clippedYMin to clippedYMax */
|
2011-03-08 19:15:31 +00:00
|
|
|
//int clippedHeight;
|
2005-12-30 04:56:31 +00:00
|
|
|
/** \brief Coordinate (in geographic coordinate system) of top left corner of the part of the raster that
|
|
|
|
* is to be rendered.*/
|
|
|
|
QgsPoint topLeftPoint;
|
|
|
|
/** \brief Coordinate (in geographic coordinate system) of bottom right corner of the part of the raster that
|
|
|
|
* is to be rendered.*/
|
|
|
|
QgsPoint bottomRightPoint;
|
|
|
|
/** \brief Distance in map units from left edge to right edge for the part of the raster that
|
|
|
|
* is to be rendered.*/
|
2008-01-11 06:38:10 +00:00
|
|
|
int drawableAreaXDim;
|
2005-12-30 04:56:31 +00:00
|
|
|
/** \brief Distance in map units from bottom edge to top edge for the part of the raster that
|
|
|
|
* is to be rendered.*/
|
2008-01-11 06:38:10 +00:00
|
|
|
int drawableAreaYDim;
|
2011-03-08 19:15:31 +00:00
|
|
|
|
|
|
|
// intersection of current map extent and layer extent
|
|
|
|
QgsRectangle mDrawnExtent;
|
|
|
|
|
|
|
|
// Source coordinate system
|
|
|
|
QgsCoordinateReferenceSystem mSrcCRS;
|
|
|
|
|
|
|
|
// Target coordinate system
|
|
|
|
QgsCoordinateReferenceSystem mDestCRS;
|
2005-12-30 04:56:31 +00:00
|
|
|
};
|
|
|
|
|