Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
nr-filter-morphology.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_NR_FILTER_MORPHOLOGY_H
3#define SEEN_NR_FILTER_MORPHOLOGY_H
4
5/*
6 * feMorphology 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
17
18namespace Inkscape {
19namespace Filters {
20
21class FilterSlot;
22
29
31{
32public:
35
36 void render_cairo(FilterSlot &slot) const override;
37 void area_enlarge(Geom::IntRect &area, Geom::Affine const &trans) const override;
38 double complexity(Geom::Affine const &ctm) const override;
39
41 void set_xradius(double x);
42 void set_yradius(double y);
43
44 Glib::ustring name() const override { return Glib::ustring("Morphology"); }
45
46private:
48 double xradius;
49 double yradius;
50};
51
52} // namespace Filters
53} // namespace Inkscape
54
55#endif // SEEN_NR_FILTER_MORPHOLOGY_H
56/*
57 Local Variables:
58 mode:c++
59 c-file-style:"stroustrup"
60 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
61 indent-tabs-mode:nil
62 fill-column:99
63 End:
64*/
65// 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 set_operator(FilterMorphologyOperator o)
double complexity(Geom::Affine const &ctm) const override
Glib::ustring name() const override
void area_enlarge(Geom::IntRect &area, Geom::Affine const &trans) const override
void render_cairo(FilterSlot &slot) const override
Helper class to stream background task notifications as a series of messages.