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
|
|
|
|
2015-10-07 11:55:34 +11:00
|
|
|
void setCacheImage( const QString& layerId, const QImage& img );
|
2014-03-28 15:35:43 +01:00
|
|
|
|
2015-10-07 11:55:34 +11:00
|
|
|
QImage cacheImage( const QString& layerId );
|
2014-03-28 15:35:43 +01:00
|
|
|
|
2015-10-07 11:55:34 +11:00
|
|
|
void clearCacheImage( const QString& layerId );
|
2014-03-28 15:35:43 +01:00
|
|
|
|
|
|
|
};
|