lpe-skeleton.cpp revision a4030d5ca449e7e384bc699cd249ee704faaeab0
#define INKSCAPE_LPE_SKELETON_CPP
/** \file
* @brief Minimal dummy LPE effect implementation, used as an example for a base
* starting class when implementing new LivePathEffects.
*
* In vi, three global search-and-replaces will let you rename everything
* in this and the .h file:
*
*/
/* Authors:
* Johan Engelen <j.b.c.engelen@utwente.nl>
*
* Copyright (C) 2007 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "live_effects/lpe-skeleton.h"
// You might need to include other 2geom files. You can add them here:
namespace Inkscape {
namespace LivePathEffect {
// initialise your parameters here:
{
/* uncomment the following line to have the original path displayed while the item is selected */
//show_orig_path = true;
/* register all your parameters here, so Inkscape knows which parameters this effect has: */
/* register all your knotholder handles here: */
//registerKnotHolderHandle(new Skeleton::KnotHolderEntityAttachMyHandle(), _("help message"));
}
{
}
/* ########################
* Choose to implement one of the doEffect functions. You can delete or comment out the others.
*/
/*
void
LPESkeleton::doEffect (SPCurve * curve)
{
// spice this up to make the effect actually *do* something!
}
std::vector<Geom::Path>
LPESkeleton::doEffect_path (std::vector<Geom::Path> const & path_in)
{
std::vector<Geom::Path> path_out;
path_out = path_in; // spice this up to make the effect actually *do* something!
return path_out;
}
*/
{
return output;
}
/* ########################
* Define the classes for your knotholder handles here
*/
/*
namespace Skeleton {
class KnotHolderEntityMyHandle : public LPEKnotHolderEntity
{
public:
// the set() and get() methods must be implemented, click() is optional
virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state);
virtual Geom::Point knot_get();
//virtual void knot_click(guint state);
};
} // namespace Skeleton
*/
/* ######################## */
} //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:fileencoding=utf-8:textwidth=99 :