- 24 Sep, 2017 1 commit
-
-
Clément Fauconnier authored
-
- 17 Sep, 2017 2 commits
-
-
Craig Watson authored
-
Craig Watson authored
-
- 09 Sep, 2017 2 commits
-
-
Craig Watson authored
-> also deleted obsolete UBInterpolator classes
-
Craig Watson authored
Distance between the last drawn point and the current point is calculated to be able to discard very short stroke segments (i.e we only add to the current stroke if the input device has moved more than a certain distance since the last drawn point). This commit moves this code from the stroke to the scene, which allows to calculate distance more accurately: it is now calculated as the total, absolute distance traveled since the last point, rather than simply the length of a line between the last point and current one.
-
- 05 Mar, 2017 1 commit
-
-
Craig Watson authored
-
- 06 Nov, 2016 2 commits
-
-
Craig Watson authored
This prevents a bug where a simplified stroke (containing only one polygon) was incorrectly saved as a polyline, which meant the stroke was lost when the document was loaded.
-
Craig Watson authored
-
- 15 Oct, 2016 1 commit
-
-
Craig Watson authored
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.
-
- 13 May, 2016 1 commit
-
-
Craig Watson authored
-
- 09 May, 2016 7 commits
-
-
Craig Watson authored
Also, clarified the difference between received and drawn points in UBGraphicsStroke
-
Craig Watson authored
UBGraphicsScene::drawCurve can be used either way)
-
Craig Watson authored
-
Craig Watson authored
-
Craig Watson authored
-
Craig Watson authored
- Added a curveToPolygon function that creates a curved polygon, eliminating the need to generate lots of small ones to make a curve look smooth. - Cleaned up the rest of the code a bit
-
Craig Watson authored
- 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
-
- 14 Aug, 2013 1 commit
-
-
Claudio Valerio authored
-
- 29 Apr, 2013 1 commit
-
-
Claudio Valerio authored
-
- 27 Feb, 2013 1 commit
-
-
Claudio Valerio authored
-
- 27 Aug, 2012 1 commit
-
-
Luca Capello authored
-
- 09 Jul, 2012 1 commit
-
-
Claudio Valerio authored
-
- 23 Apr, 2012 1 commit
-
-
shibakaneki authored
-
- 10 Nov, 2011 1 commit
-
-
Anatoly Mihalchenko authored
-
- 02 Aug, 2011 1 commit
-
-
Claudio Valerio authored
-
- 22 Jun, 2011 1 commit
-
-
Anatoly Mihalchenko authored
-
- 19 Apr, 2011 1 commit
-
-
Claudio Valerio authored
-