21 #ifndef QGSRASTERLAYER_H
22 #define QGSRASTERLAYER_H
200 const QString & baseName = QString::null,
201 bool loadDefaultStyleFlag =
true );
205 const QString & baseName,
206 const QString & providerKey,
207 bool loadDefaultStyleFlag =
true );
236 static bool isValidRasterFileName(
const QString & theFileNameQString, QString &retError );
237 static bool isValidRasterFileName(
const QString & theFileNameQString );
240 static QDateTime lastModified(
const QString & name );
243 void setDataProvider(
const QString & provider );
268 int bandCount()
const;
271 const QString bandName(
int theBandNoInt );
289 void draw( QPainter * theQPainter,
301 QList< QPair< QString, QColor > > legendSymbologyItems()
const;
307 QPixmap paletteAsPixmap(
int theBandNumber = 1 );
312 QString providerType()
const;
315 double rasterUnitsPerPixelX();
316 double rasterUnitsPerPixelY();
329 int theSampleSize = SAMPLE_SIZE,
330 bool theGenerateLookupTableFlag =
true );
333 void setDefaultContrastEnhancement();
336 void setDrawingStyle(
const QString & theDrawingStyleQString );
339 void showProgress(
int theValue );
345 QPixmap previewAsPixmap( QSize
size, QColor bgColor = Qt::white );
348 void triggerRepaint();
364 virtual QDateTime
timestamp()
const {
return mDataProvider->timestamp() ; }
367 void showStatusMessage(
const QString & theMessage );
370 void updateProgress(
int,
int );
373 void onProgress(
int,
double, QString );
377 void progressUpdate(
int theValue );
386 void rendererChanged();
390 bool readSymbology(
const QDomNode& node, QString& errorMessage );
393 bool readXml(
const QDomNode& layer_node );
396 bool writeSymbology( QDomNode&, QDomDocument& doc, QString& errorMessage )
const;
399 bool writeXml( QDomNode & layer_node, QDomDocument & doc );
406 void closeDataProvider();