Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
nr-filter-composite.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_NR_FILTER_COMPOSITE_H
3#define SEEN_NR_FILTER_COMPOSITE_H
4
5/*
6 * feComposite filter effect renderer
7 *
8 * Authors:
9 * Niko Kiirala <niko@kiirala.com>
10 *
11 * Copyright (C) 2007 authors
12 *
13 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
14 */
15
20
21namespace Inkscape {
22namespace Filters {
23
25{
26public:
28 ~FilterComposite() override;
29
30 void render_cairo(FilterSlot &) const override;
31 bool can_handle_affine(Geom::Affine const &) const override;
32 double complexity(Geom::Affine const &ctm) const override;
33
34 void set_input(int input) override;
35 void set_input(int input, int slot) override;
36
38 void set_arithmetic(double k1, double k2, double k3, double k4);
39
40 Glib::ustring name() const override { return Glib::ustring("Composite"); }
41
42private:
44 double k1, k2, k3, k4;
46};
47
48} // namespace Filters
49} // namespace Inkscape
50
51#endif // SEEN_NR_FILTER_COMPOSITE_H
52/*
53 Local Variables:
54 mode:c++
55 c-file-style:"stroustrup"
56 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
57 indent-tabs-mode:nil
58 fill-column:99
59 End:
60*/
61// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
3x3 matrix representing an affine transformation.
Definition affine.h:70
double complexity(Geom::Affine const &ctm) const override
Glib::ustring name() const override
void set_arithmetic(double k1, double k2, double k3, double k4)
void set_input(int input) override
Sets the input slot number 'slot' to be used as input in rendering filter primitive 'primitive' For f...
bool can_handle_affine(Geom::Affine const &) const override
Indicate whether the filter primitive can handle the given affine.
void render_cairo(FilterSlot &) const override
void set_operator(FeCompositeOperator op)
SVG composite filter effect.
FeCompositeOperator
Definition composite.h:19
Helper class to stream background task notifications as a series of messages.