diff options
| author | Tanja Bast <tanja.s.bast@gmail.com> | 2018-10-19 19:00:25 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2018-10-24 20:55:51 +0000 |
| commit | 6848264f334f03d19aba07121aa820805a4f4b4b (patch) | |
| tree | f3c8db7542ccfec1cfc86d3de1bc5bc6ca4eb937 /src/live_effects/lpe-interpolate.h | |
| parent | Apply clang format (diff) | |
| download | inkscape-6848264f334f03d19aba07121aa820805a4f4b4b.tar.gz inkscape-6848264f334f03d19aba07121aa820805a4f4b4b.zip | |
Modify behavior of interpolation
Make sure that the original paths stay the start and end of the
interpolation, even after modifying their shape. This is done by
transforming the trajectory so that it starts at the bounding box
center of the first path and ends at the bounding box center of
the second path.
Diffstat (limited to 'src/live_effects/lpe-interpolate.h')
| -rw-r--r-- | src/live_effects/lpe-interpolate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/live_effects/lpe-interpolate.h b/src/live_effects/lpe-interpolate.h index 84551786e..21c6f9ac8 100644 --- a/src/live_effects/lpe-interpolate.h +++ b/src/live_effects/lpe-interpolate.h @@ -36,6 +36,8 @@ class LPEInterpolate : public Effect { ScalarParam number_of_steps; BoolParam equidistant_spacing; + Geom::Piecewise<Geom::D2<Geom::SBasis> > calculate_trajectory(Geom::OptRect bounds_A, Geom::OptRect bounds_B); + LPEInterpolate(const LPEInterpolate &) = delete; LPEInterpolate &operator=(const LPEInterpolate &) = delete; }; |
