summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e7c268)
raw | patch | inline | side by side (parent: 1e7c268)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 7 Dec 2007 10:35:14 +0000 (10:35 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 7 Dec 2007 10:35:14 +0000 (10:35 +0000) |
src/live_effects/lpe-pathalongpath.cpp | patch | blob | history | |
src/live_effects/lpe-pathalongpath.h | patch | blob | history |
index 100d0428dcd220a4eb6d5f0295b020503b89c4b8..4837317bfb903d1f7caf2cffd523e21cc89e8048 100644 (file)
@@ -63,16 +63,20 @@ static const Util::EnumDataConverter<PAPCopyType> PAPCopyTypeConverter(PAPCopyTy
LPEPathAlongPath::LPEPathAlongPath(LivePathEffectObject *lpeobject) :\r
Effect(lpeobject),\r
bend_path(_("Bend path"), _("Path along which to bend the original path"), "bendpath", &wr, this, "M0,0 L1,0"),\r
+/* Delayed until 0.47\r
width_path(_("Width path"), _("..."), "widthpath", &wr, this, "M0,0 L1,0"),\r
width_path_range(_("Width path range"), _("Range of widthpath parameter"), "widthpath_range", &wr, this, 1),\r
+*/\r
copytype(_("Path copies"), _("How many copies to place along the skeleton path"), "copytype", PAPCopyTypeConverter, &wr, this, PAPCT_SINGLE_STRETCHED),\r
prop_scale(_("Width"), _("Width of the path"), "prop_scale", &wr, this, 1),\r
scale_y_rel(_("Width in units of length"), _("Scale the width of the path in units of its length"), "scale_y_rel", &wr, this, false),\r
vertical_pattern(_("Original path is vertical"), "", "vertical", &wr, this, false)\r
{\r
registerParameter( dynamic_cast<Parameter *>(&bend_path) );\r
+/* Delayed until 0.47\r
registerParameter( dynamic_cast<Parameter *>(&width_path) );\r
registerParameter( dynamic_cast<Parameter *>(&width_path_range) );\r
+*/\r
registerParameter( dynamic_cast<Parameter *>(©type) );\r
registerParameter( dynamic_cast<Parameter *>(&prop_scale) );\r
registerParameter( dynamic_cast<Parameter *>(&scale_y_rel) );\r
@@ -148,15 +152,16 @@ LPEPathAlongPath::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > & pwd2
if (prop_scale != 1.0) y *= prop_scale;\r
}\r
\r
+/* Delayed until 0.47\r
Piecewise<D2<SBasis> > widthpwd2 = arc_length_parametrization(Piecewise<D2<SBasis> >(width_path),2,.1);\r
D2<Piecewise<SBasis> > widthd2pw = make_cuts_independant(widthpwd2);\r
Piecewise<SBasis> width = (Piecewise<SBasis>(widthd2pw[Y]) - uskeletonbounds[Y].middle()) / width_path_range;\r
-\r
+*/\r
\r
double offs = 0;\r
Piecewise<D2<SBasis> > output;\r
for (int i=0; i<nbCopies; i++){\r
- output.concat(compose(uskeleton,x+offs) + y*compose(width,x+offs)*compose(n,x+offs));\r
+ output.concat(compose(uskeleton,x+offs) + y*/*compose(width,x+offs)**/compose(n,x+offs));\r
offs+=pattWidth;\r
}\r
\r
path.appendNew<Geom::LineSegment>( end );\r
bend_path.param_set_and_write_new_value( path.toPwSb() );\r
\r
+/* Delayed until 0.47\r
Point startw(bndsX.min(), bndsY.max());\r
Point endw(bndsX.max(), bndsY.max());\r
Geom::Path pathw;\r
pathw.start( startw );\r
pathw.appendNew<Geom::LineSegment>( endw );\r
width_path.param_set_and_write_new_value( pathw.toPwSb() );\r
- \r
width_path_range.param_set_value(startw[Y]-start[Y]);\r
+*/\r
}\r
\r
} // namespace LivePathEffect\r
index 915cad8b0aa8613a35c148d2a9790ccf447d8053..be064dd044b3d79d3783b646a8572b4a1da360a4 100644 (file)
\r
private:\r
PathParam bend_path;\r
- PathParam width_path;\r
- ScalarParam width_path_range;\r
+ //PathParam width_path;\r
+ //ScalarParam width_path_range;\r
EnumParam<PAPCopyType> copytype;\r
ScalarParam prop_scale;\r
BoolParam scale_y_rel;\r