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