diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-05-09 14:07:12 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-05-09 14:07:12 +0000 |
| commit | 8b4ad809b306a360d39470ea2a487ebc0326b92d (patch) | |
| tree | c67237c1a4cb8f0caf0b1cd5e66f6385c9a920c3 /src/live_effects/lpe-slant.cpp | |
| parent | utf8-to-roff: work around what's arguably a bug in perl 5.10 (diff) | |
| download | inkscape-8b4ad809b306a360d39470ea2a487ebc0326b92d.tar.gz inkscape-8b4ad809b306a360d39470ea2a487ebc0326b92d.zip | |
Remove LPESlant.
- it causes data hiding problems (appears to be the *only* place outside SPCurve that directly writes to SPCurve's bpath !)
- *when someone really wants this effect, let me know and I'll recode it*
(bzr r5638)
Diffstat (limited to 'src/live_effects/lpe-slant.cpp')
| -rw-r--r-- | src/live_effects/lpe-slant.cpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/live_effects/lpe-slant.cpp b/src/live_effects/lpe-slant.cpp deleted file mode 100644 index 7382d15e2..000000000 --- a/src/live_effects/lpe-slant.cpp +++ /dev/null @@ -1,55 +0,0 @@ -#define INKSCAPE_LPE_SLANT_CPP - -/* - * Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl> - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include "live_effects/lpe-slant.h" -#include "display/curve.h" -#include <libnr/n-art-bpath.h> - -namespace Inkscape { -namespace LivePathEffect { - -LPESlant::LPESlant(LivePathEffectObject *lpeobject) : - Effect(lpeobject), - factor(_("Slant factor"), _("y = y + x*(slant factor)"), "factor", &wr, this), - center(_("Center"), _("The x-coord of this point is around which the slant will happen"), "center", &wr, this) -{ - registerParameter( dynamic_cast<Parameter *>(&factor) ); - registerParameter( dynamic_cast<Parameter *>(¢er) ); -} - -LPESlant::~LPESlant() -{ -} - -void -LPESlant::doEffect(SPCurve * curve) -{ - NArtBpath *bpath = curve->get_bpath(); - int i = 0; - while(bpath[i].code != NR_END) { - bpath[i].y1 += (bpath[i].x1-center[Geom::X]) * factor; - bpath[i].y2 += (bpath[i].x2-center[Geom::X]) * factor; - bpath[i].y3 += (bpath[i].x3-center[Geom::X]) * factor; - i++; - } - -} - -}; //namespace LivePathEffect -}; /* namespace Inkscape */ - -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 : |
