Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
lpe-skeleton.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
5/* Authors:
6 * Johan Engelen <j.b.c.engelen@alumnus.utwente.nl>
7 *
8 * Copyright (C) 2007-2012 Authors
9 *
10 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
11 */
12
13#ifndef INKSCAPE_LPE_SKELETON_H
14#define INKSCAPE_LPE_SKELETON_H
15
16#include "live_effects/effect.h"
18
19namespace Inkscape {
20namespace LivePathEffect {
21
22// each knotholder handle for your LPE requires a separate class derived from LPEKnotHolderEntity;
23// define it in lpe-skeleton.cpp and add code to create it in addKnotHolderEntities
24// note that the LPE parameter classes implement their own handles! So in most cases, you will
25// not have to do anything like this.
33class LPESkeleton : public Effect {
34public:
36 ~LPESkeleton() override;
37
38// Choose to implement one of the doEffect functions. You can delete or comment out the others.
39// virtual void doEffect(Geom::PathVector &curve);
40// virtual Geom::PathVector doEffect_path(Geom::PathVector const &path_in);
42
43 /* the knotholder entity classes (if any) can be declared friends */
44 //friend class Skeleton::KnotHolderEntityMyHandle;
45 //virtual void addKnotHolderEntities(KnotHolder *knotholder, SPItem *item);
46
47private:
48 // add the parameters for your effect here:
50 // there are all kinds of parameters. Check the /live_effects/parameter directory which types exist!
51
52 LPESkeleton(const LPESkeleton&) = delete;
54};
55
56} //namespace LivePathEffect
57} //namespace Inkscape
58
59#endif
60
61/*
62 Local Variables:
63 mode:c++
64 c-file-style:"stroustrup"
65 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
66 indent-tabs-mode:nil
67 fill-column:99
68 End:
69*/
70// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Adaptor that creates 2D functions from 1D ones.
Definition d2.h:55
Function defined as discrete pieces.
Definition piecewise.h:71
namespace Skeleton { we need a separate namespace to avoid clashes with other LPEs class KnotHolderEn...
LPESkeleton & operator=(const LPESkeleton &)=delete
Geom::Piecewise< Geom::D2< Geom::SBasis > > doEffect_pwd2(Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in) override
LPESkeleton(const LPESkeleton &)=delete
Helper class to stream background task notifications as a series of messages.