QGIS/python/core/geometry/qgssurfacev2.sip
Nyall Dawson 50f01a2ac8 Optimise storage/calculation of geometry bounding boxes
- removes storage of bounding box from QgsPointV2 (gives significant
decrease in size of object)
- more efficient calculation of bounding box for linestrings

Additionally, this commit moves the bounding box invalidation to a
virtual QgsAbstractGeometryV2::clearCache() method, so that other
non-bounding box caches can also be cleared when the geometry
is modified.
2016-02-21 16:26:45 +11:00

18 lines
269 B
Plaintext

class QgsSurfaceV2: public QgsAbstractGeometryV2
{
%TypeHeaderCode
#include <qgssurfacev2.h>
%End
public:
virtual QgsPolygonV2* surfaceToPolygon() const = 0;
virtual QgsRectangle boundingBox() const;
protected:
virtual void clearCache() const;
};