Skip to content

Commit 6b11258

Browse files
committed
#8725: Refactoring to simplifier classes
1 parent ecc5e14 commit 6b11258

19 files changed

+998
-658
lines changed

src/core/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ SET(QGIS_CORE_SRCS
7474
qgsgeometry.cpp
7575
qgsgeometrycache.cpp
7676
qgsgeometryvalidator.cpp
77+
qgsgeometrysimplifier.cpp
7778
qgsgml.cpp
7879
qgsgmlschema.cpp
7980
qgshttptransaction.cpp
@@ -85,6 +86,7 @@ SET(QGIS_CORE_SRCS
8586
qgsmaplayerregistry.cpp
8687
qgsmaprenderer.cpp
8788
qgsmaptopixel.cpp
89+
qgsmaptopixelgeometrysimplifier.cpp
8890
qgsmessageoutput.cpp
8991
qgsmimedatautils.cpp
9092
qgsmessagelog.cpp

src/core/qgis.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ const CORE_EXPORT QString GEO_NONE = "NONE";
7373

7474
const double QGis::DEFAULT_IDENTIFY_RADIUS = 0.5;
7575

76+
//! Default threshold between map coordinates and device coordinates for map2pixel simplification
77+
const float QGis::DEFAULT_MAPTOPIXEL_THRESHOLD = 1.0f;
78+
7679
// description strings for units
7780
// Order must match enum indices
7881
const char* QGis::qgisUnitTypes[] =

src/core/qgis.h

+3
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ class CORE_EXPORT QGis
263263

264264
static const double DEFAULT_IDENTIFY_RADIUS;
265265

266+
//! Default threshold between map coordinates and device coordinates for map2pixel simplification
267+
static const float DEFAULT_MAPTOPIXEL_THRESHOLD;
268+
266269
private:
267270
// String representation of unit types (set in qgis.cpp)
268271
static const char *qgisUnitTypes[];

0 commit comments

Comments
 (0)