mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
More efficient clipping parameter (same as in threading branch)
git-svn-id: http://svn.osgeo.org/qgis/trunk@14185 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
fe9b709668
commit
dc1c85fa38
@ -25,9 +25,13 @@
|
||||
|
||||
// But the static members must be initialised outside the class! (or GCC 4 dies)
|
||||
|
||||
const double QgsClipper::MAX_X = 30000;
|
||||
const double QgsClipper::MIN_X = -30000;
|
||||
const double QgsClipper::MAX_Y = 30000;
|
||||
const double QgsClipper::MIN_Y = -30000;
|
||||
// Qt also does clipping when the coordinates go over +/- 32767
|
||||
// moreover from Qt 4.6, Qt clips also when the width/height of a painter path
|
||||
// is more than 32767. Since we want to avoid clipping by Qt (because it is slow)
|
||||
// we set coordinate limit to less than 32767 / 2
|
||||
const double QgsClipper::MAX_X = 16000;
|
||||
const double QgsClipper::MIN_X = -16000;
|
||||
const double QgsClipper::MAX_Y = 16000;
|
||||
const double QgsClipper::MIN_Y = -16000;
|
||||
|
||||
const double QgsClipper::SMALL_NUM = 1e-12;
|
||||
|
Loading…
x
Reference in New Issue
Block a user