Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
lpe-envelope.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef INKSCAPE_LPE_ENVELOPE_H
3#define INKSCAPE_LPE_ENVELOPE_H
4
5/*
6 * Inkscape::LPEEnvelope
7 *
8 * Copyright (C) Steren Giannini 2008 <steren.giannini@gmail.com>
9 *
10 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
11 */
12
14#include "live_effects/effect.h"
17
18#include <2geom/sbasis.h>
22#include <2geom/d2.h>
23#include <2geom/piecewise.h>
24
26
27namespace Inkscape {
28namespace LivePathEffect {
29
31public:
33 ~LPEEnvelope() override;
34
35 bool doOnOpen(SPLPEItem const *lpeitem) override;
36 void doBeforeEffect (SPLPEItem const* lpeitem) override;
37 void transform_multiply(Geom::Affine const &postmul, bool set) override;
38
40
41 void resetDefaults(SPItem const* item) override;
42
43private:
50
52
55};
56
57}; //namespace LivePathEffect
58}; //namespace Inkscape
59
60#endif
Conversion between Bezier control points and SBasis curves.
3x3 matrix representing an affine transformation.
Definition affine.h:70
Adaptor that creates 2D functions from 1D ones.
Definition d2.h:55
Function defined as discrete pieces.
Definition piecewise.h:71
void doBeforeEffect(SPLPEItem const *lpeitem) override
Is performed each time before the effect is updated.
Geom::Piecewise< Geom::D2< Geom::SBasis > > doEffect_pwd2(Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in) override
void resetDefaults(SPItem const *item) override
Sets all parameters to their default values and writes them to SVG.
void transform_multiply(Geom::Affine const &postmul, bool set) override
Overridden function to apply transforms for example to powerstroke, jointtype or tapperstroke.
LPEEnvelope & operator=(const LPEEnvelope &)
bool doOnOpen(SPLPEItem const *lpeitem) override
Is performed on load document or revert If the item is fixed legacy return true.
Base class for visual SVG elements.
Definition sp-item.h:109
Lifts one dimensional objects into 2D.
SPItem * item
Helper class to stream background task notifications as a series of messages.
Piecewise function class.
two-dimensional geometric operators.
Conversion between SBasis and Bezier basis polynomials.
Polynomial in symmetric power basis (S-basis)