QGIS API Documentation
2.2.0-Valmiera
|
#include <qgsgeometrycache.h>
Public Member Functions | |
QgsGeometryCache (QgsVectorLayer *layer) | |
~QgsGeometryCache () | |
QgsGeometryMap & | cachedGeometries () |
bool | geometry (QgsFeatureId fid, QgsGeometry &geometry) |
fetch geometry from cache, return true if successful | |
void | cacheGeometry (QgsFeatureId fid, const QgsGeometry &geom) |
store a geometry in the cache | |
void | removeGeometry (QgsFeatureId fid) |
get rid of the cached geometry | |
void | deleteCachedGeometries () |
Deletes the geometries in mCachedGeometries. | |
void | setCachedGeometriesRect (const QgsRectangle &extent) |
const QgsRectangle & | cachedGeometriesRect () |
Protected Member Functions | |
QgsVectorLayerEditBuffer * | editBuffer () |
Protected Attributes | |
QgsVectorLayer * | L |
QgsGeometryMap | mCachedGeometries |
cache of the committed geometries retrieved for the current display | |
QgsRectangle | mCachedGeometriesRect |
extent for which there are cached geometries |
Definition at line 8 of file qgsgeometrycache.h.
QgsGeometryCache::QgsGeometryCache | ( | QgsVectorLayer * | layer | ) |
Definition at line 5 of file qgsgeometrycache.cpp.
QgsGeometryCache::~QgsGeometryCache | ( | ) |
Definition at line 10 of file qgsgeometrycache.cpp.
References deleteCachedGeometries().
|
inline |
Definition at line 14 of file qgsgeometrycache.h.
Referenced by QgsVectorLayer::snapWithContext().
|
inline |
Definition at line 30 of file qgsgeometrycache.h.
Referenced by QgsVectorLayer::snapWithContext().
void QgsGeometryCache::cacheGeometry | ( | QgsFeatureId | fid, |
const QgsGeometry & | geom | ||
) |
store a geometry in the cache
Definition at line 28 of file qgsgeometrycache.cpp.
References mCachedGeometries.
Referenced by QgsVectorLayer::drawRendererV2(), QgsVectorLayer::drawRendererV2Levels(), QgsVectorLayerUndoCommandAddFeature::redo(), QgsVectorLayerUndoCommandChangeGeometry::redo(), and QgsVectorLayerUndoCommandChangeGeometry::undo().
void QgsGeometryCache::deleteCachedGeometries | ( | ) |
Deletes the geometries in mCachedGeometries.
Definition at line 34 of file qgsgeometrycache.cpp.
References mCachedGeometries, and mCachedGeometriesRect.
Referenced by QgsVectorLayer::commitChanges(), QgsVectorLayer::draw(), QgsVectorLayer::rollBack(), and ~QgsGeometryCache().
|
inlineprotected |
Definition at line 34 of file qgsgeometrycache.h.
bool QgsGeometryCache::geometry | ( | QgsFeatureId | fid, |
QgsGeometry & | geometry | ||
) |
fetch geometry from cache, return true if successful
Definition at line 16 of file qgsgeometrycache.cpp.
References mCachedGeometries.
Referenced by QgsVectorLayerEditUtils::addPart(), QgsVectorLayerEditUtils::deleteVertex(), QgsVectorLayerEditUtils::insertVertex(), QgsVectorLayerEditUtils::moveVertex(), QgsVectorLayerUndoCommandChangeGeometry::QgsVectorLayerUndoCommandChangeGeometry(), and QgsVectorLayerEditUtils::translateFeature().
|
inline |
get rid of the cached geometry
Definition at line 23 of file qgsgeometrycache.h.
Referenced by QgsVectorLayerUndoCommandAddFeature::undo().
|
inline |
Definition at line 29 of file qgsgeometrycache.h.
Referenced by QgsVectorLayer::draw().
|
protected |
Definition at line 36 of file qgsgeometrycache.h.
Referenced by QgsVectorLayerUndoCommand::cache().
|
protected |
cache of the committed geometries retrieved for the current display
Definition at line 39 of file qgsgeometrycache.h.
Referenced by cacheGeometry(), deleteCachedGeometries(), and geometry().
|
protected |
extent for which there are cached geometries
Definition at line 42 of file qgsgeometrycache.h.
Referenced by deleteCachedGeometries().