QGIS/python/core/qgsmaprenderercache.sip

26 lines
605 B
Plaintext
Raw Normal View History

class QgsMapRendererCache : QObject
{
%TypeHeaderCode
#include <qgsmaprenderercache.h>
%End
public:
QgsMapRendererCache();
void clear();
bool init( const QgsRectangle &extent, double scale );
void setCacheImage( const QString &cacheKey, const QImage &image, const QList< QgsMapLayer* > &dependentLayers = QList< QgsMapLayer* >() );
bool hasCacheImage( const QString &cacheKey ) const;
QImage cacheImage( const QString &cacheKey ) const;
QList< QgsMapLayer* > dependentLayers( const QString &cacheKey ) const;
void clearCacheImage( const QString &cacheKey );
};