QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Protected Attributes | List of all members
QgsGeometryCache Class Reference

#include <qgsgeometrycache.h>

Public Member Functions

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

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...
 

Detailed Description

Definition at line 27 of file qgsgeometrycache.h.

Constructor & Destructor Documentation

◆ QgsGeometryCache()

QgsGeometryCache::QgsGeometryCache ( )

Definition at line 19 of file qgsgeometrycache.cpp.

Member Function Documentation

◆ cachedGeometries()

QgsGeometryMap& QgsGeometryCache::cachedGeometries ( )
inline

Definition at line 32 of file qgsgeometrycache.h.

◆ cachedGeometriesRect()

const QgsRectangle& QgsGeometryCache::cachedGeometriesRect ( )
inline

Definition at line 47 of file qgsgeometrycache.h.

◆ cacheGeometry()

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

store a geometry in the cache

Definition at line 35 of file qgsgeometrycache.cpp.

◆ deleteCachedGeometries()

void QgsGeometryCache::deleteCachedGeometries ( )

Deletes the geometries in mCachedGeometries.

Definition at line 41 of file qgsgeometrycache.cpp.

◆ geometry()

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

fetch geometry from cache, return true if successful

Definition at line 23 of file qgsgeometrycache.cpp.

◆ removeGeometry()

void QgsGeometryCache::removeGeometry ( QgsFeatureId  fid)
inline

get rid of the cached geometry

Definition at line 41 of file qgsgeometrycache.h.

◆ setCachedGeometriesRect()

void QgsGeometryCache::setCachedGeometriesRect ( const QgsRectangle extent)
inline

Definition at line 46 of file qgsgeometrycache.h.

Member Data Documentation

◆ mCachedGeometries

QgsGeometryMap QgsGeometryCache::mCachedGeometries
protected

Cache of the committed geometries retrieved for the current display

Definition at line 52 of file qgsgeometrycache.h.

◆ mCachedGeometriesRect

QgsRectangle QgsGeometryCache::mCachedGeometriesRect
protected

Extent for which there are cached geometries.

Definition at line 55 of file qgsgeometrycache.h.


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