Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
36 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
/** This class contains information how to simplify geometries fetched from a vector layer */ | ||
class QgsVectorSimplifyMethod | ||
{ | ||
%TypeHeaderCode | ||
#include "qgsvectorsimplifymethod.h" | ||
%End | ||
|
||
public: | ||
//! construct a default object | ||
QgsVectorSimplifyMethod(); | ||
//! copy constructor | ||
QgsVectorSimplifyMethod( const QgsVectorSimplifyMethod& rh ); | ||
|
||
/** Sets the simplification hints of the vector layer managed */ | ||
void setSimplifyHints( int simplifyHints ); | ||
/** Gets the simplification hints of the vector layer managed */ | ||
int simplifyHints() const; | ||
|
||
/** Sets the simplification threshold of the vector layer managed */ | ||
void setThreshold( float threshold ); | ||
/** Gets the simplification threshold of the vector layer managed */ | ||
float threshold() const; | ||
|
||
/** Sets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries */ | ||
void setForceLocalOptimization( bool localOptimization ); | ||
/** Gets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries */ | ||
bool forceLocalOptimization(); | ||
}; |