mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-09 00:35:20 -05:00
- 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.
18 lines
269 B
Plaintext
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;
|
|
|
|
};
|