diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-10-30 22:37:20 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-10-30 22:37:20 +0000 |
| commit | 2fb0d596bc5823f8d72a8a4262e147231170c9cd (patch) | |
| tree | 8bee900fb0996e66b273f598174f67bd12375407 /src/live_effects/parameter/path.cpp | |
| parent | r16896@shi: ted | 2007-10-30 12:16:06 -0700 (diff) | |
| download | inkscape-2fb0d596bc5823f8d72a8a4262e147231170c9cd.tar.gz inkscape-2fb0d596bc5823f8d72a8a4262e147231170c9cd.zip | |
LPE: implement NEW path-along-path effect, i think that old one has become obsolete and is renamed accordingly. implement straight path node editting for gears effect.
(bzr r3983)
Diffstat (limited to 'src/live_effects/parameter/path.cpp')
| -rw-r--r-- | src/live_effects/parameter/path.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 2b558d2dd..68f7be4a9 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -147,6 +147,15 @@ PathParam::param_write_to_repr(const char * svgd) } +void +PathParam::param_set_and_write_new_value (Geom::Piecewise<Geom::D2<Geom::SBasis> > newpath) +{ + const std::vector<Geom::Path> temppath = Geom::path_from_piecewise(newpath, LPE_CONVERSION_TOLERANCE); + gchar * svgd = SVGD_from_2GeomPath( temppath ); + param_write_to_repr(svgd); + g_free(svgd); +} + /* CALLBACK FUNCTIONS FOR THE BUTTONS */ void PathParam::on_edit_button_click() |
