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
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QList< Key > keys() const
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 connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
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
const T value(const Key &key) const
int remove(const Key &key)