2014-01-06 22:54:07 +01:00
|
|
|
|
|
|
|
/** 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();
|
2014-01-21 01:39:16 +01:00
|
|
|
|
|
|
|
/** Sets the maximum scale at which the layer should be simplified */
|
|
|
|
void setMaximumScale( float maximumScale );
|
|
|
|
/** Gets the maximum scale at which the layer should be simplified */
|
|
|
|
float maximumScale() const;
|
2014-01-06 22:54:07 +01:00
|
|
|
};
|