~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to python/core/qgsrasterviewport.sip

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
struct QgsRasterViewPort
 
3
{
 
4
%TypeHeaderCode
 
5
#include <qgsrasterviewport.h>
 
6
%End
 
7
 
 
8
  /** \brief  The offset from the left hand edge of the raster for the rectangle that will be drawn to screen.
 
9
   * TODO Check this explanation is correc!*/
 
10
  int   rectXOffset;
 
11
  float rectXOffsetFloat;
 
12
  /** \brief  The offset from the bottom edge of the raster for the rectangle that will be drawn to screen.
 
13
   * TODO Check this explanation is correc!*/
 
14
  int   rectYOffset;
 
15
  float rectYOffsetFloat;
 
16
  /** \brief Lower left X dimension of clipped raster image in raster pixel space.
 
17
   *  RasterIO will do the scaling for us, so for example, if the user is zoomed in a long way, there may only 
 
18
   *  be e.g. 5x5 pixels retrieved from the raw raster data, but rasterio will seamlessly scale the up to 
 
19
   *  whatever the screen coordinates are (e.g. a 600x800 display window) */
 
20
  double clippedXMin;
 
21
  /** \brief Top Right X dimension of clipped raster image in raster pixel space.
 
22
   *  RasterIO will do the scaling for us, so for example, if the user is zoomed in a long way, there may only 
 
23
   *  be e.g. 5x5 pixels retrieved from the raw raster data, but rasterio will seamlessly scale the up to 
 
24
   *  whatever the screen coordinates are (e.g. a 600x800 display window) */
 
25
  double clippedXMax;
 
26
  /** \brief Lower left Y dimension of clipped raster image in raster pixel space.
 
27
   *  RasterIO will do the scaling for us, so for example, if the user is zoomed in a long way, there may only 
 
28
   *  be e.g. 5x5 pixels retrieved from the raw raster data, but rasterio will seamlessly scale the up to 
 
29
   *  whatever the screen coordinates are (e.g. a 600x800 display window) */
 
30
  double clippedYMin;
 
31
  /** \brief Top Right X dimension of clipped raster image in raster pixel space.
 
32
   *  RasterIO will do the scaling for us, so for example, if the user is zoomed in a long way, there may only 
 
33
   *  be e.g. 5x5 pixels retrieved from the raw raster data, but rasterio will seamlessly scale the up to 
 
34
   *  whatever the screen coordinates are (e.g. a 600x800 display window) */
 
35
  double clippedYMax;
 
36
  /** \brief  Distance in pixels from clippedXMin to clippedXMax. */
 
37
  int clippedWidth;
 
38
  /** \brief Distance in pixels from clippedYMin to clippedYMax  */
 
39
  int clippedHeight;
 
40
  /** \brief Coordinate (in geographic coordinate system) of top left corner of the part of the raster that 
 
41
   * is to be rendered.*/
 
42
  QgsPoint topLeftPoint;
 
43
  /** \brief Coordinate (in geographic coordinate system) of bottom right corner of the part of the raster that 
 
44
   * is to be rendered.*/
 
45
  QgsPoint bottomRightPoint;
 
46
  /** \brief Distance in map units from left edge to right edge for the part of the raster that 
 
47
   * is to be rendered.*/
 
48
  int drawableAreaXDim;
 
49
  /** \brief Distance in map units from bottom edge to top edge for the part of the raster that 
 
50
   * is to be rendered.*/
 
51
  int drawableAreaYDim;
 
52
};
 
53