/usr/include/qgis/qgsrasterviewport.h is in libqgis-dev 1.7.4+1.7.5~20120320-1.1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | /***************************************************************************
qgsrasterviewport.h - description
-------------------
begin : Fri Jun 28 2002
copyright : (C) 2005 by T.Sutton
email : tim@linfiniti.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id: qgsrasterlayer.h 4380 2005-12-26 23:37:50Z timlinux $ */
#ifndef QGSRASTERVIEWPORT_H
#define QGSRASTERVIEWPORT_H
#include <qgspoint.h>
#include "qgscoordinatetransform.h"
/** \ingroup core
* This class provides details of the viewable area that a raster will
* be rendered into.
*
* 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.
*/
struct QgsRasterViewPort
{
// NOT IN MAP SPACE BUT DEVICE SPACE
/** \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.*/
int drawableAreaXDim;
/** \brief Distance in map units from bottom edge to top edge for the part of the raster that
* is to be rendered.*/
int drawableAreaYDim;
// intersection of current map extent and layer extent
QgsRectangle mDrawnExtent;
// Source coordinate system
QgsCoordinateReferenceSystem mSrcCRS;
// Target coordinate system
QgsCoordinateReferenceSystem mDestCRS;
};
#endif //QGSRASTERVIEWPORT_H
|