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

#include <qgsgeometrycache.h>

Public Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 10 of file qgsgeometrycache.h.

Constructor & Destructor Documentation

QgsGeometryCache::QgsGeometryCache ( )

Definition at line 5 of file qgsgeometrycache.cpp.

QgsGeometryCache::~QgsGeometryCache ( )

Definition at line 9 of file qgsgeometrycache.cpp.

Member Function Documentation

QgsGeometryMap& QgsGeometryCache::cachedGeometries ( )
inline

Definition at line 16 of file qgsgeometrycache.h.

const QgsRectangle& QgsGeometryCache::cachedGeometriesRect ( )
inline

Definition at line 32 of file qgsgeometrycache.h.

void QgsGeometryCache::cacheGeometry ( QgsFeatureId  fid,
const QgsGeometry geom 
)

store a geometry in the cache

Definition at line 27 of file qgsgeometrycache.cpp.

void QgsGeometryCache::deleteCachedGeometries ( )

Deletes the geometries in mCachedGeometries.

Definition at line 33 of file qgsgeometrycache.cpp.

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

fetch geometry from cache, return true if successful

Definition at line 15 of file qgsgeometrycache.cpp.

void QgsGeometryCache::removeGeometry ( QgsFeatureId  fid)
inline

get rid of the cached geometry

Definition at line 25 of file qgsgeometrycache.h.

void QgsGeometryCache::setCachedGeometriesRect ( const QgsRectangle extent)
inline

Definition at line 31 of file qgsgeometrycache.h.

Member Data Documentation

QgsGeometryMap QgsGeometryCache::mCachedGeometries
protected

cache of the committed geometries retrieved for the current display

Definition at line 37 of file qgsgeometrycache.h.

QgsRectangle QgsGeometryCache::mCachedGeometriesRect
protected

extent for which there are cached geometries

Definition at line 40 of file qgsgeometrycache.h.


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