lpe-parallel.cpp revision 25ad3718fb4b96b39930af8e043c8ee1e624fd10
#define INKSCAPE_LPE_PARALLEL_CPP
/** \file
* LPE <parallel> implementation
*/
/*
* Authors:
* Maximilian Albert
*
* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
* Copyright (C) Maximilian Albert 2008 <maximilian.albert@gmail.com>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "live_effects/lpe-parallel.h"
#include "sp-shape.h"
namespace Inkscape {
namespace LivePathEffect {
namespace Pl {
class KnotHolderEntityLeftEnd : public LPEKnotHolderEntity
{
public:
};
class KnotHolderEntityRightEnd : public LPEKnotHolderEntity
{
public:
};
} // namespace Pl
// initialise your parameters here:
length_left(_("Length left"), _("Specifies the left end of the parallel"), "length-left", &wr, this, 150),
length_right(_("Length right"), _("Specifies the right end of the parallel"), "length-right", &wr, this, 150)
{
show_orig_path = true;
registerKnotHolderHandle(new Pl::KnotHolderEntityLeftEnd(), _("Adjust the \"left\" end of the parallel"));
registerKnotHolderHandle(new Pl::KnotHolderEntityRightEnd(), _("Adjust the \"right\" end of the parallel"));
}
{
}
void
{
A = curve->first_point();
B = curve->last_point();
dir = unit_vector(B - A);
}
{
using namespace Geom;
A = pwd2_in.firstValue();
dir = unit_vector(B - A);
}
namespace Pl {
// TODO: make this more generic
static LPEParallel *
{
g_print ("Warning: Effect is not of type LPEParallel!\n");
return NULL;
}
return static_cast<LPEParallel *>(effect);
}
void
{
using namespace Geom;
}
void
KnotHolderEntityRightEnd::knot_set(NR::Point const &p, NR::Point const &/*origin*/, guint /*state*/)
{
using namespace Geom;
}
{
return lpe->C;
}
{
return lpe->D;
}
} // namespace Pl
/* ######################## */
} //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 :