If enabled in the preferences menu, pen and marker strokes will be
replaced by a simplified stroke after they are drawn.
The algorithm is very basic (for now): if three points are almost lined
up (the threshold angle can be specified in the config file), then the
middle one is removed. This is repeated over the whole stroke; new
polygons are then generated based on the simplified stroke points.
This typically cuts down on number of points and polygons by a factor of
about 10, while having minimal visual impact.
- UBGraphicsScene calls UBGraphicsStroke::addPoint, which returns a list
of points that can be drawn. It may be none (e.g we discard very small
segments), one (if we do no interpolation) or several.
- Added a UBInterpolator base, abstract class. Various interpolation
methods can be added easily.
- Current methods: Basic spline (custom), Catmull-Rom spline (based on
alglib), and Bézier
- Added a setting to toggle interpolation. Added this to the UI as well
The OpenSSL license is taken from the Debian openssl_1.0.1c-4 package,
file /usr/share/doc/openssl/copyright. The zlib license from the
zlib1g_1.2.7.dfsg-13 package, file /usr/share/doc/zlib1g/copyright.
The Xpdf license from the Debian xpdf_3.03-10 package, file
/usr/share/doc/xpdf/copyright, with the full GPL-2 version from the
Debian base-files_6.12 package, file /usr/share/common-licenses/GPL-2,
used for the QuaZIP license as well. The Open-Sankore license is the
COPYING file from commit 4b8d3b7443.