1919#define QGSRASTERDRAWER_H
2020
2121// #include "qgsrasterdataprovider.h"
22- #include " qgsrasterface .h"
22+ #include " qgsrasterinterface .h"
2323
2424#include < QMap>
2525
@@ -49,13 +49,13 @@ class QgsRasterDrawer
4949 QgsRasterProjector* prj; // raster projector (or 0 if no reprojection is done)
5050 };
5151
52- QgsRasterDrawer ( QgsRasterFace * input );
52+ QgsRasterDrawer ( QgsRasterInterface * input );
5353 ~QgsRasterDrawer ();
5454
5555 void draw ( QPainter* p, QgsRasterViewPort* viewPort, const QgsMapToPixel* theQgsMapToPixel );
5656
5757 protected:
58- // inline double readValue( void *data, QgsRasterFace ::DataType type, int index );
58+ // inline double readValue( void *data, QgsRasterInterface ::DataType type, int index );
5959
6060 /* *Start reading of raster band. Raster data can then be retrieved by calling readNextRasterPart until it returns false.
6161 @param bandNumer number of raster band to read
@@ -81,15 +81,15 @@ class QgsRasterDrawer
8181 void drawImage ( QPainter* p, QgsRasterViewPort* viewPort, const QImage& img, int topLeftCol, int topLeftRow ) const ;
8282 void stopRasterRead ( int bandNumber );
8383
84- QgsRasterFace * mInput ;
84+ QgsRasterInterface * mInput ;
8585 QMap<int , RasterPartInfo> mRasterPartInfos ;
8686
8787 private:
8888 /* *Remove part into and release memory*/
8989 void removePartInfo ( int bandNumer );
9090};
9191/*
92- inline double QgsRasterDrawer::readValue( void *data, QgsRasterFace ::DataType type, int index )
92+ inline double QgsRasterDrawer::readValue( void *data, QgsRasterInterface ::DataType type, int index )
9393{
9494 if ( !mProvider )
9595 {
@@ -103,25 +103,25 @@ inline double QgsRasterDrawer::readValue( void *data, QgsRasterFace::DataType ty
103103
104104 switch ( type )
105105 {
106- case QgsRasterFace ::Byte:
106+ case QgsRasterInterface ::Byte:
107107 return ( double )(( GByte * )data )[index];
108108 break;
109- case QgsRasterFace ::UInt16:
109+ case QgsRasterInterface ::UInt16:
110110 return ( double )(( GUInt16 * )data )[index];
111111 break;
112- case QgsRasterFace ::Int16:
112+ case QgsRasterInterface ::Int16:
113113 return ( double )(( GInt16 * )data )[index];
114114 break;
115- case QgsRasterFace ::UInt32:
115+ case QgsRasterInterface ::UInt32:
116116 return ( double )(( GUInt32 * )data )[index];
117117 break;
118- case QgsRasterFace ::Int32:
118+ case QgsRasterInterface ::Int32:
119119 return ( double )(( GInt32 * )data )[index];
120120 break;
121- case QgsRasterFace ::Float32:
121+ case QgsRasterInterface ::Float32:
122122 return ( double )(( float * )data )[index];
123123 break;
124- case QgsRasterFace ::Float64:
124+ case QgsRasterInterface ::Float64:
125125 return ( double )(( double * )data )[index];
126126 break;
127127 default:
0 commit comments