@@ -999,25 +999,18 @@ class QgsVectorLayer : QgsMapLayer
999
999
/** @note not available in python bindings */
1000
1000
// inline QgsGeometryCache* cache();
1001
1001
1002
- /** Set the Map2pixel simplification threshold for fast rendering of features */
1003
- void setSimplifyDrawingTol( float simplifyDrawingTol );
1004
- /** Returns the Map2pixel simplification threshold for fast rendering of features */
1005
- float simplifyDrawingTol() const;
1006
-
1007
1002
/** Simplification flags for fast rendering of features */
1008
1003
enum SimplifyHint
1009
1004
{
1010
1005
NoSimplification = 0, //!< No simplification can be applied
1011
1006
GeometrySimplification = 1, //!< The geometries can be simplified using the current map2pixel context state
1012
- EnvelopeSimplification = 2, //!< The geometries can be fully simplified by its BoundingBox using the current map2pixel context state
1013
- AntialiasingSimplification = 4, //!< The geometries can be rendered with 'AntiAliasing' disabled because of it is '1-pixel size'
1014
- DefaultSimplification = 3, //!< Default simplification hints can be applied ( Geometry + Envelope )
1015
- FullSimplification = 7, //!< All simplification hints can be applied ( Geometry + Envelope + AA-disabling )
1007
+ AntialiasingSimplification = 2, //!< The geometries can be rendered with 'AntiAliasing' disabled because of it is '1-pixel size'
1008
+ FullSimplification = 3, //!< All simplification hints can be applied ( Geometry + AA-disabling )
1016
1009
};
1017
- /** Set the Map2pixel simplification hints for fast rendering of features */
1018
- void setSimplifyDrawingHints( int simplifyDrawingHints );
1019
- /** Returns the Map2pixel simplification hints for fast rendering of features */
1020
- int simplifyDrawingHints () const;
1010
+ /** Set the simplification settings for fast rendering of features */
1011
+ void setSimplifyMethod( const QgsVectorSimplifyMethod& simplifyMethod );
1012
+ /** Returns the simplification settings for fast rendering of features */
1013
+ const QgsVectorSimplifyMethod& simplifyMethod () const;
1021
1014
1022
1015
/** Returns whether the VectorLayer can apply the specified simplification hint */
1023
1016
bool simplifyDrawingCanbeApplied( int simplifyHint ) const;
0 commit comments