mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
27 lines
676 B
Plaintext
27 lines
676 B
Plaintext
class QgsGeometryCache
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsgeometrycache.h>
|
|
%End
|
|
public:
|
|
QgsGeometryCache();
|
|
|
|
QgsGeometryMap &cachedGeometries();
|
|
|
|
//! fetch geometry from cache, return true if successful
|
|
bool geometry( QgsFeatureId fid, QgsGeometry &geometry );
|
|
|
|
//! store a geometry in the cache
|
|
void cacheGeometry( QgsFeatureId fid, const QgsGeometry &geom );
|
|
|
|
//! get rid of the cached geometry
|
|
void removeGeometry( QgsFeatureId fid );
|
|
|
|
/** Deletes the geometries in mCachedGeometries */
|
|
void deleteCachedGeometries();
|
|
|
|
void setCachedGeometriesRect( const QgsRectangle &extent );
|
|
const QgsRectangle &cachedGeometriesRect();
|
|
|
|
};
|