QGIS/python/core/qgsgeometrycache.sip
Nyall Dawson 24d9c65494 Fix more classes which violate the rule-of-three
Also remove some empty destructors
2016-01-26 14:24:45 +11:00

28 lines
677 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();
};