Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
nr-filter-displacement-map.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_NR_FILTER_DISPLACEMENT_MAP_H
3#define SEEN_NR_FILTER_DISPLACEMENT_MAP_H
4
5/*
6 * feDisplacementMap filter primitive renderer
7 *
8 * Authors:
9 * Felipe CorrĂȘa da Silva Sanches <juca@members.fsf.org>
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:
27 void render_cairo(FilterSlot &slot) const override;
28 void area_enlarge(Geom::IntRect &area, Geom::Affine const &trans) const override;
29 double complexity(Geom::Affine const &ctm) const override;
30
31 void set_input(int slot) override;
32 void set_input(int input, int slot) override;
33 void set_scale(double s);
35
36 Glib::ustring name() const override { return Glib::ustring("Displacement Map"); }
37
38private:
39 double scale;
41 unsigned Xchannel, Ychannel;
42};
43
44} // namespace Filters
45} // namespace Inkscape
46
47#endif // SEEN_NR_FILTER_DISPLACEMENT_MAP_H
48/*
49 Local Variables:
50 mode:c++
51 c-file-style:"stroustrup"
52 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
53 indent-tabs-mode:nil
54 fill-column:99
55 End:
56*/
57// 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
Axis aligned, non-empty, generic rectangle.
void area_enlarge(Geom::IntRect &area, Geom::Affine const &trans) const override
void render_cairo(FilterSlot &slot) const override
void set_channel_selector(int s, FilterDisplacementMapChannelSelector channel)
double complexity(Geom::Affine const &ctm) const override
void set_input(int slot) override
Sets the input slot number 'slot' to be used as input in rendering filter primitive 'primitive' For f...
SVG displacement map filter effect.
FilterDisplacementMapChannelSelector
Helper class to stream background task notifications as a series of messages.