lpe-interpolate.cpp revision 307c164a7b61c5bfd08eaf25236383f070801bb1
#define INKSCAPE_LPE_INTERPOLATE_CPP
/** \file
* LPE interpolate implementation
*/
/*
* Authors:
* Johan Engelen
*
* Copyright (C) Johan Engelen 2007-2008 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "live_effects/lpe-interpolate.h"
#include "sp-path.h"
namespace Inkscape {
namespace LivePathEffect {
trajectory_path(_("Trajectory"), _("Path along which intermediate steps are created."), "trajectory", &wr, this, "M0,0 L0,0"),
number_of_steps(_("Steps"), _("Determines the number of steps from start to end path."), "steps", &wr, this, 5),
equidistant_spacing(_("Equidistant spacing"), _("If true, the spacing between intermediates is constant along the length of the path. If false, the distance depends on the location of the nodes of the trajectory path."), "equidistant_spacing", &wr, this, true)
{
show_orig_path = true;
}
{
}
/*
* interpolate path_in[0] to path_in[1]
*/
{
return path_in;
}
// Don't allow empty path parameter:
return path_in;
}
// Transform both paths to (0,0) midpoint, so they can easily be positioned along interpolate_path
}
}
// Make sure both paths have the same number of segments and cuts at the same locations
if (equidistant_spacing)
for (int i = 0; i < number_of_steps; ++i) {
}
return path_out;
}
void
{
if (!SP_IS_PATH(item))
return;
return;
} else {
}
}
} //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 :