28 QMutexLocker lock( &
mMutex );
51 QMutexLocker lock( &
mMutex );
69 QMutexLocker lock( &
mMutex );
82 QMutexLocker lock( &
mMutex );
95 QMutexLocker lock( &
mMutex );
A rectangle specified with double values.
Base class for all map layer types.
void setMinimal()
Set a rectangle so that min corner is at max and max corner is at min.
void setCacheImage(QString layerId, const QImage &img)
set cached image for the specified layer ID
void clearCacheImage(QString layerId)
remove layer from the cache
QImage cacheImage(QString layerId)
get cached image for the specified layer ID. Returns null image if it is not cached.
QString id() const
Get this layer's unique ID, this ID is used to access this layer from map layer registry.
void clear()
invalidate the cache contents
void clearInternal()
invalidate cache contents (without locking)
static QgsMapLayerRegistry * instance()
Returns the instance pointer, creating the object on the first call.
QMap< QString, QImage > mCachedImages
QgsMapLayer * mapLayer(QString theLayerId)
Retrieve a pointer to a loaded layer by id.
bool init(QgsRectangle extent, double scale)
initialize cache: set new parameters and erase cache if parameters have changed
void layerRequestedRepaint()
remove layer (that emitted the signal) from the cache