lpe-skeleton.h revision bf09820d782b89c56d79f070d06d7cf2682c270e
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#ifndef INKSCAPE_LPE_SKELETON_H
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#define INKSCAPE_LPE_SKELETON_H
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm/** \file
19503279cdb285e1ccb6c1b124da015df648a124cilix * LPE <skeleton> implementation, see lpe-skeleton.cpp.
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm */
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm/*
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm * Authors:
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm * Johan Engelen
4357e8a64445a757c6dd3d3f61b7cb15587bf3fecilix *
4357e8a64445a757c6dd3d3f61b7cb15587bf3fecilix * Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm *
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm * Released under GNU GPL, read the file 'COPYING' for more information
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm */
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#include "live_effects/effect.h"
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#include "live_effects/parameter/parameter.h"
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmnamespace Inkscape {
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmnamespace LivePathEffect {
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
bf09820d782b89c56d79f070d06d7cf2682c270ecilix// each knotholder handle for your LPE requires a separate class derived from KnotHolderEntity;
bf09820d782b89c56d79f070d06d7cf2682c270ecilix// define it in lpe-skeleton.cpp and register it in the effect's constructor
bf09820d782b89c56d79f070d06d7cf2682c270ecilix/**
bf09820d782b89c56d79f070d06d7cf2682c270ecilixnamespace Skeleton {
bf09820d782b89c56d79f070d06d7cf2682c270ecilix // we need a separate namespace to avoid clashes with other LPEs
bf09820d782b89c56d79f070d06d7cf2682c270ecilix class KnotHolderEntityMyHandle;
bf09820d782b89c56d79f070d06d7cf2682c270ecilix}
bf09820d782b89c56d79f070d06d7cf2682c270ecilix**/
bf09820d782b89c56d79f070d06d7cf2682c270ecilix
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmclass LPESkeleton : public Effect {
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmpublic:
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm LPESkeleton(LivePathEffectObject *lpeobject);
62d835b4bbb0f1f046e30d9b67f8e9517cc6175cjohanengelen virtual ~LPESkeleton();
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm// Choose to implement one of the doEffect functions. You can delete or comment out the others.
62d835b4bbb0f1f046e30d9b67f8e9517cc6175cjohanengelen// virtual void doEffect (SPCurve * curve);
04fca1803e564baabd66e7dd1db308de565487becilix// virtual std::vector<Geom::Path> doEffect_path (std::vector<Geom::Path> const & path_in);
ecda720053ff791e35dae3c5c1177bc225b6cdf1johanengelen virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
bf09820d782b89c56d79f070d06d7cf2682c270ecilix /* the knotholder entity classes (if any) must be declared friends */
bf09820d782b89c56d79f070d06d7cf2682c270ecilix //friend class Skeleton::KnotHolderEntityMyHandle;
bf09820d782b89c56d79f070d06d7cf2682c270ecilix
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmprivate:
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm // add the parameters for your effect here:
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm ScalarParam number;
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm // there are all kinds of parameters. Check the /live_effects/parameter directory which types exist!
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm LPESkeleton(const LPESkeleton&);
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm LPESkeleton& operator=(const LPESkeleton&);
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm};
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm} //namespace LivePathEffect
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm} //namespace Inkscape
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm#endif
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix/*
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix Local Variables:
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix mode:c++
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix c-file-style:"stroustrup"
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix indent-tabs-mode:nil
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix fill-column:99
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix End:
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix*/
02b211d5ad0015f24b09dee846a89cf19e95f98dcilix// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :