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. 
 
QgsMapLayer * mapLayer(const QString &theLayerId) const
Retrieve a pointer to a registered layer by layer ID. 
 
const_iterator constBegin() const
 
void clearCacheImage(const QString &layerId)
remove layer from the cache 
 
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool qgsDoubleNear(double a, double b, double epsilon=4 *DBL_EPSILON)
Compare two doubles (but allow some difference) 
 
void setCacheImage(const QString &layerId, const QImage &img)
set cached image for the specified layer ID 
 
QString id() const
Get this layer's unique ID, this ID is used to access this layer from map layer registry. 
 
bool init(const QgsRectangle &extent, double scale)
initialize cache: set new parameters and erase cache if parameters have changed 
 
const_iterator constEnd() const
 
void clear()
invalidate the cache contents 
 
const Key key(const T &value) const
 
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
 
QImage cacheImage(const QString &layerId)
get cached image for the specified layer ID. Returns null image if it is not cached. 
 
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
void layerRequestedRepaint()
remove layer (that emitted the signal) from the cache 
 
const T value(const Key &key) const
 
int remove(const Key &key)