QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | Static Public Member Functions | List of all members
QgsAbstractGeometrySimplifier Class Referenceabstract

Abstract base class for simplify geometries using a specific algorithm. More...

#include <qgsgeometrysimplifier.h>

Inheritance diagram for QgsAbstractGeometrySimplifier:
Inheritance graph
[legend]

Public Member Functions

virtual ~QgsAbstractGeometrySimplifier ()=default
 
virtual QgsGeometry simplify (const QgsGeometry &geometry) const =0
 Returns a simplified version the specified geometry. More...
 

Static Public Member Functions

static bool isGeneralizableByDeviceBoundingBox (const QgsRectangle &envelope, float mapToPixelTol=1.0f)
 Returns whether the device-envelope can be replaced by its BBOX when is applied the specified tolerance. More...
 
static bool isGeneralizableByDeviceBoundingBox (const QVector< QPointF > &points, float mapToPixelTol=1.0f)
 Returns whether the device-geometry can be replaced by its BBOX when is applied the specified tolerance. More...
 

Detailed Description

Abstract base class for simplify geometries using a specific algorithm.

Definition at line 32 of file qgsgeometrysimplifier.h.

Constructor & Destructor Documentation

virtual QgsAbstractGeometrySimplifier::~QgsAbstractGeometrySimplifier ( )
virtualdefault

Member Function Documentation

bool QgsAbstractGeometrySimplifier::isGeneralizableByDeviceBoundingBox ( const QgsRectangle envelope,
float  mapToPixelTol = 1.0f 
)
static

Returns whether the device-envelope can be replaced by its BBOX when is applied the specified tolerance.

Definition at line 22 of file qgsgeometrysimplifier.cpp.

bool QgsAbstractGeometrySimplifier::isGeneralizableByDeviceBoundingBox ( const QVector< QPointF > &  points,
float  mapToPixelTol = 1.0f 
)
static

Returns whether the device-geometry can be replaced by its BBOX when is applied the specified tolerance.

Definition at line 27 of file qgsgeometrysimplifier.cpp.

virtual QgsGeometry QgsAbstractGeometrySimplifier::simplify ( const QgsGeometry geometry) const
pure virtual

Returns a simplified version the specified geometry.

Implemented in QgsMapToPixelSimplifier, and QgsTopologyPreservingSimplifier.


The documentation for this class was generated from the following files: