lpe-angle_bisector.cpp revision 6cbca725e54e2a92c160852776cd4d10ef7133fc
/*
* Authors:
* Maximilian Albert <maximilian.albert@gmail.com>
* Johan Engelen <j.b.c.engelen@alumnus.utwente.nl>
*
* Copyright (C) Authors 2007-2012
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "live_effects/lpe-angle_bisector.h"
#include "sp-lpe-item.h"
#include "knot-holder-entity.h"
#include "knotholder.h"
namespace Inkscape {
namespace LivePathEffect {
namespace AB {
class KnotHolderEntityLeftEnd : public LPEKnotHolderEntity {
public:
};
class KnotHolderEntityRightEnd : public LPEKnotHolderEntity {
public:
};
} // namespace TtC
length_left(_("Length left:"), _("Specifies the left end of the bisector"), "length-left", &wr, this, 0),
length_right(_("Length right:"), _("Specifies the right end of the bisector"), "length-right", &wr, this, 250)
{
show_orig_path = true;
_provides_knotholder_entities = true;
}
{
}
{
using namespace Geom;
// we assume that the path has >= 3 nodes
Piecewise<D2<SBasis> > output = Piecewise<D2<SBasis> >(D2<SBasis>(Linear(D[X], E[X]), Linear(D[Y], E[Y])));
}
void
{
_("Adjust the \"left\" end of the bisector") );
knotholder->add(e);
}
{
_("Adjust the \"right\" of the bisector") );
knotholder->add(e);
}
};
namespace AB {
void
{
}
void
KnotHolderEntityRightEnd::knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint state)
{
}
{
}
{
}
} // namespace AB
/* ######################## */
} //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 :