16 #ifndef QGSMAPRENDERERCACHE_H    17 #define QGSMAPRENDERERCACHE_H    19 #include "qgis_core.h"    70     void setCacheImage( 
const QString &cacheKey, 
const QImage &image, 
const QList< QgsMapLayer * > &dependentLayers = QList< QgsMapLayer * >() );
    77     bool hasCacheImage( 
const QString &cacheKey ) 
const;
    86     QImage cacheImage( 
const QString &cacheKey ) 
const;
    92     QList< QgsMapLayer * > dependentLayers( 
const QString &cacheKey ) 
const;
    98     void clearCacheImage( 
const QString &cacheKey );
   102     void layerRequestedRepaint();
   106     struct CacheParameters
   113     void clearInternal();
   116     void dropUnusedConnections();
   118     QSet< QgsWeakMapLayerPointer > dependentLayers() 
const;
   120     mutable QMutex mMutex;
   125     QMap<QString, CacheParameters> mCachedImages;
   127     QSet< QgsWeakMapLayerPointer > mConnectedLayers;
   131 #endif // QGSMAPRENDERERCACHE_H A rectangle specified with double values. 
 
QList< QgsWeakMapLayerPointer > QgsWeakMapLayerPointerList
A list of weak pointers to QgsMapLayers. 
 
This class is responsible for keeping cache of rendered images resulting from a map rendering job...