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 );
274 int bandCount()
const;
277 const QString bandName(
int theBandNoInt );
295 void draw( QPainter * theQPainter,
307 QList< QPair< QString, QColor > > legendSymbologyItems()
const;
313 QPixmap paletteAsPixmap(
int theBandNumber = 1 );
318 QString providerType()
const;
321 double rasterUnitsPerPixelX();
322 double rasterUnitsPerPixelY();
335 int theSampleSize = SAMPLE_SIZE,
336 bool theGenerateLookupTableFlag =
true );
339 void setDefaultContrastEnhancement();
342 void setDrawingStyle(
const QString & theDrawingStyleQString );
345 void showProgress(
int theValue );
351 QPixmap previewAsPixmap( QSize
size, QColor bgColor = Qt::white );
354 void triggerRepaint();
370 virtual QDateTime
timestamp()
const {
return mDataProvider->timestamp() ; }
373 void showStatusMessage(
const QString & theMessage );
376 void updateProgress(
int,
int );
379 void onProgress(
int,
double, QString );
383 void progressUpdate(
int theValue );
393 bool readSymbology(
const QDomNode& node, QString& errorMessage );
396 bool readXml(
const QDomNode& layer_node );
399 bool writeSymbology( QDomNode&, QDomDocument& doc, QString& errorMessage )
const;
402 bool writeXml( QDomNode & layer_node, QDomDocument & doc );
409 void closeDataProvider();