16 #ifndef QGSVECTORSIMPLIFYMETHOD_H
17 #define QGSVECTORSIMPLIFYMETHOD_H
22 #include "qgis_core.h"
40 GeometrySimplification = 1,
41 AntialiasingSimplification = 2,
42 FullSimplification = 3,
46 Q_FLAG( SimplifyHints )
49 void setSimplifyHints( SimplifyHints simplifyHints ) { mSimplifyHints = simplifyHints; }
51 inline SimplifyHints simplifyHints()
const {
return mSimplifyHints; }
59 SnappedToGridGlobal = 3,
61 Q_ENUM( SimplifyAlgorithm )
64 void setSimplifyAlgorithm(
SimplifyAlgorithm simplifyAlgorithm ) { mSimplifyAlgorithm = simplifyAlgorithm; }
66 inline SimplifyAlgorithm simplifyAlgorithm()
const {
return mSimplifyAlgorithm; }
69 void setTolerance(
double tolerance ) { mTolerance = tolerance; }
71 inline double tolerance()
const {
return mTolerance; }
74 void setThreshold(
float threshold ) { mThreshold = threshold; }
76 inline float threshold()
const {
return mThreshold; }
79 void setForceLocalOptimization(
bool localOptimization ) { mLocalOptimization = localOptimization; }
81 inline bool forceLocalOptimization()
const {
return mLocalOptimization; }
84 void setMaximumScale(
float maximumScale ) { mMaximumScale = maximumScale; }
86 inline float maximumScale()
const {
return mMaximumScale; }
90 SimplifyHints mSimplifyHints;
94 double mTolerance = 1;
98 bool mLocalOptimization =
true;
100 float mMaximumScale = 1;
103 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsVectorSimplifyMethod::SimplifyHints )
105 #endif // QGSVECTORSIMPLIFYMETHOD_H