This class contains information how to simplify geometries fetched from a vector layer.
More...
#include <qgsvectorsimplifymethod.h>
This class contains information how to simplify geometries fetched from a vector layer.
- Since
- QGIS 2.2
Definition at line 29 of file qgsvectorsimplifymethod.h.
◆ SimplifyAlgorithm
Types of local simplification algorithms that can be used.
Enumerator |
---|
Distance | The simplification uses the distance between points to remove duplicate points.
|
SnapToGrid | The simplification uses a grid (similar to ST_SnapToGrid) to remove duplicate points.
|
Visvalingam | The simplification gives each point in a line an importance weighting, so that least important points are removed first.
|
SnappedToGridGlobal | Snap to a global grid based on the tolerance. Good for consistent results for incoming vertices, regardless of their feature.
|
Definition at line 54 of file qgsvectorsimplifymethod.h.
◆ SimplifyHint
Simplification flags for fast rendering of features.
Enumerator |
---|
NoSimplification | No simplification can be applied.
|
GeometrySimplification | The geometries can be simplified using the current map2pixel context state.
|
AntialiasingSimplification | The geometries can be rendered with 'AntiAliasing' disabled because of it is '1-pixel size'.
|
FullSimplification | All simplification hints can be applied ( Geometry + AA-disabling )
|
Definition at line 37 of file qgsvectorsimplifymethod.h.
◆ QgsVectorSimplifyMethod()
QgsVectorSimplifyMethod::QgsVectorSimplifyMethod |
( |
| ) |
|
◆ forceLocalOptimization()
bool QgsVectorSimplifyMethod::forceLocalOptimization |
( |
| ) |
const |
|
inline |
Gets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries.
Definition at line 81 of file qgsvectorsimplifymethod.h.
◆ maximumScale()
float QgsVectorSimplifyMethod::maximumScale |
( |
| ) |
const |
|
inline |
◆ setForceLocalOptimization()
void QgsVectorSimplifyMethod::setForceLocalOptimization |
( |
bool |
localOptimization | ) |
|
|
inline |
Sets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries.
Definition at line 79 of file qgsvectorsimplifymethod.h.
◆ setMaximumScale()
void QgsVectorSimplifyMethod::setMaximumScale |
( |
float |
maximumScale | ) |
|
|
inline |
◆ setSimplifyAlgorithm()
void QgsVectorSimplifyMethod::setSimplifyAlgorithm |
( |
SimplifyAlgorithm |
simplifyAlgorithm | ) |
|
|
inline |
◆ setSimplifyHints()
void QgsVectorSimplifyMethod::setSimplifyHints |
( |
SimplifyHints |
simplifyHints | ) |
|
|
inline |
◆ setThreshold()
void QgsVectorSimplifyMethod::setThreshold |
( |
float |
threshold | ) |
|
|
inline |
◆ setTolerance()
void QgsVectorSimplifyMethod::setTolerance |
( |
double |
tolerance | ) |
|
|
inline |
Sets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal.
Definition at line 69 of file qgsvectorsimplifymethod.h.
◆ simplifyAlgorithm()
◆ simplifyHints()
SimplifyHints QgsVectorSimplifyMethod::simplifyHints |
( |
| ) |
const |
|
inline |
◆ threshold()
float QgsVectorSimplifyMethod::threshold |
( |
| ) |
const |
|
inline |
◆ tolerance()
double QgsVectorSimplifyMethod::tolerance |
( |
| ) |
const |
|
inline |
Gets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal.
Definition at line 71 of file qgsvectorsimplifymethod.h.
The documentation for this class was generated from the following files: