2014-03-28 15:35:43 +01:00
|
|
|
class QgsMapRendererCache : QObject
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsmaprenderercache.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsMapRendererCache();
|
|
|
|
|
|
|
|
void clear();
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
bool init( const QgsRectangle &extent, double scale );
|
2014-03-28 15:35:43 +01:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setCacheImage( const QString &cacheKey, const QImage &image, const QList< QgsMapLayer* > &dependentLayers = QList< QgsMapLayer* >() );
|
2014-03-28 15:35:43 +01:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
bool hasCacheImage( const QString &cacheKey ) const;
|
2017-02-01 10:55:35 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QImage cacheImage( const QString &cacheKey ) const;
|
2014-03-28 15:35:43 +01:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QList< QgsMapLayer* > dependentLayers( const QString &cacheKey ) const;
|
2017-02-06 11:27:07 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void clearCacheImage( const QString &cacheKey );
|
2014-03-28 15:35:43 +01:00
|
|
|
|
|
|
|
};
|