QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | List of all members
QgsGeometryCache Class Reference

#include <qgsgeometrycache.h>

Public Member Functions

 QgsGeometryCache ()
 
 ~QgsGeometryCache ()
 
QgsGeometryMapcachedGeometries ()
 
bool geometry (QgsFeatureId fid, QgsGeometry &geometry)
 fetch geometry from cache, return true if successful More...
 
void cacheGeometry (QgsFeatureId fid, const QgsGeometry &geom)
 store a geometry in the cache More...
 
void removeGeometry (QgsFeatureId fid)
 get rid of the cached geometry More...
 
void deleteCachedGeometries ()
 Deletes the geometries in mCachedGeometries. More...
 
void setCachedGeometriesRect (const QgsRectangle &extent)
 
const QgsRectanglecachedGeometriesRect ()
 

Protected Attributes

QgsGeometryMap mCachedGeometries
 cache of the committed geometries retrieved for the current display More...
 
QgsRectangle mCachedGeometriesRect
 extent for which there are cached geometries More...
 

Constructor & Destructor Documentation

QgsGeometryCache::QgsGeometryCache ( )
QgsGeometryCache::~QgsGeometryCache ( )

Member Function Documentation

QgsGeometryMap& QgsGeometryCache::cachedGeometries ( )
inline
const QgsRectangle& QgsGeometryCache::cachedGeometriesRect ( )
inline
void QgsGeometryCache::cacheGeometry ( QgsFeatureId  fid,
const QgsGeometry geom 
)

store a geometry in the cache

void QgsGeometryCache::deleteCachedGeometries ( )

Deletes the geometries in mCachedGeometries.

bool QgsGeometryCache::geometry ( QgsFeatureId  fid,
QgsGeometry geometry 
)

fetch geometry from cache, return true if successful

void QgsGeometryCache::removeGeometry ( QgsFeatureId  fid)
inline

get rid of the cached geometry

void QgsGeometryCache::setCachedGeometriesRect ( const QgsRectangle extent)
inline

Member Data Documentation

QgsGeometryMap QgsGeometryCache::mCachedGeometries
protected

cache of the committed geometries retrieved for the current display

QgsRectangle QgsGeometryCache::mCachedGeometriesRect
protected

extent for which there are cached geometries


The documentation for this class was generated from the following files: