From e13bcd147d5c9b5712254ba74718d29b7f13d32a Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Mon, 15 Aug 2011 21:48:07 +0200 Subject: Filters. Global filters file cleanup and Point Engraving CPF improvements. (bzr r10544) --- share/filters/filters.svg | 36 ----------------------------------- src/extension/internal/filter/paint.h | 31 ++++++++++++++++++++++-------- 2 files changed, 23 insertions(+), 44 deletions(-) diff --git a/share/filters/filters.svg b/share/filters/filters.svg index e5b594b4c..3a7695f3d 100644 --- a/share/filters/filters.svg +++ b/share/filters/filters.svg @@ -2355,42 +2355,6 @@ sodipodi:docname="filters.svg"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/extension/internal/filter/paint.h b/src/extension/internal/filter/paint.h index 7fc241623..5d79b6c3b 100644 --- a/src/extension/internal/filter/paint.h +++ b/src/extension/internal/filter/paint.h @@ -719,11 +719,13 @@ public: "0\n" "0.5\n" "\n" - "\n" + "\n" "1229269247\n" + "false\n" "\n" - "\n" + "\n" "-16843009\n" + "false\n" "\n" "\n" "\n" @@ -764,7 +766,9 @@ PointEngraving::get_filter_text (Inkscape::Extension::Extension * ext) std::ostringstream bg; std::ostringstream bb; std::ostringstream ba; - + std::ostringstream iof; + std::ostringstream iop; + type << ext->get_param_enum("type"); hfreq << ext->get_param_float("hfreq") / 100; vfreq << ext->get_param_float("vfreq") / 100; @@ -789,6 +793,16 @@ PointEngraving::get_filter_text (Inkscape::Extension::Extension * ext) bb << ((bgcolor >> 8) & 0xff); ba << (bgcolor & 0xff) / 255.0F; + if (ext->get_param_bool("iof")) + iof << "SourceGraphic"; + else + iof << "flood1"; + + if (ext->get_param_bool("iop")) + iop << "SourceGraphic"; + else + iop << "flood2"; + _filter = g_strdup_printf( "\n" "\n" @@ -799,16 +813,17 @@ PointEngraving::get_filter_text (Inkscape::Extension::Extension * ext) "\n" "\n" "\n" - "\n" + "\n" "\n" - "\n" - "\n" + "\n" + "\n" "\n" "\n", reduction.str().c_str(), blend.str().c_str(), type.str().c_str(), hfreq.str().c_str(), vfreq.str().c_str(), complexity.str().c_str(), variation.str().c_str(), lightness.str().c_str(), grain.str().c_str(), erase.str().c_str(), blur.str().c_str(), - r.str().c_str(), g.str().c_str(), b.str().c_str(), a.str().c_str(), - br.str().c_str(), bg.str().c_str(), bb.str().c_str(), ba.str().c_str() ); + r.str().c_str(), g.str().c_str(), b.str().c_str(), a.str().c_str(), iof.str().c_str(), + br.str().c_str(), bg.str().c_str(), bb.str().c_str(), ba.str().c_str(), iop.str().c_str(), + ba.str().c_str(), a.str().c_str() ); return _filter; }; /* Point engraving filter */ -- cgit v1.2.3