1
#define INKSCAPE_LPE_DOEFFECT_STACK_CPP
4
* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
6
* Released under GNU GPL, read the file 'COPYING' for more information
9
#include "live_effects/lpe-test-doEffect-stack.h"
11
#include <2geom/piecewise.h>
13
#include <libnr/n-art-bpath.h>
16
namespace LivePathEffect {
19
LPEdoEffectStackTest::LPEdoEffectStackTest(LivePathEffectObject *lpeobject) :
21
step(_("Stack step"), (""), "step", &wr, this)
23
registerParameter( dynamic_cast<Parameter *>(&step) );
26
LPEdoEffectStackTest::~LPEdoEffectStackTest()
32
LPEdoEffectStackTest::doEffect (SPCurve * curve)
35
Effect::doEffect(curve);
43
LPEdoEffectStackTest::doEffect_nartbpath (NArtBpath * path_in)
46
return Effect::doEffect_nartbpath(path_in);
52
while ( path_in[ret].code != NR_END ) {
57
path_out = g_new(NArtBpath, len);
58
memcpy(path_out, path_in, len * sizeof(NArtBpath));
63
std::vector<Geom::Path>
64
LPEdoEffectStackTest::doEffect_path (std::vector<Geom::Path> & path_in)
67
return Effect::doEffect_path(path_in);
70
std::vector<Geom::Path> path_out = path_in;
75
Geom::Piecewise<Geom::D2<Geom::SBasis> >
76
LPEdoEffectStackTest::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > & pwd2_in)
78
Geom::Piecewise<Geom::D2<Geom::SBasis> > output = pwd2_in;
84
} // namespace LivePathEffect
85
} /* namespace Inkscape */
90
c-file-style:"stroustrup"
91
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
96
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :