Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
nr-filter-gaussian.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_NR_FILTER_GAUSSIAN_H
3#define SEEN_NR_FILTER_GAUSSIAN_H
4
5/*
6 * Gaussian blur renderer
7 *
8 * Authors:
9 * Niko Kiirala <niko@kiirala.com>
10 * bulia byak
11 * Jasper van de Gronde <th.v.d.gronde@hccnet.nl>
12 *
13 * Copyright (C) 2006 authors
14 *
15 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
16 */
17
18#include <2geom/forward.h>
20
21enum
22{
28};
29
30namespace Inkscape {
31namespace Filters {
32
34{
35public:
37 ~FilterGaussian() override;
38
39 void render_cairo(FilterSlot &slot) const override;
40 void area_enlarge(Geom::IntRect &area, Geom::Affine const &m) const override;
41 bool can_handle_affine(Geom::Affine const &m) const override;
42 double complexity(Geom::Affine const &ctm) const override;
43
51 void set_deviation(double deviation);
52
60 void set_deviation(double x, double y);
61
62 Glib::ustring name() const override { return Glib::ustring("Gaussian Blur"); }
63
64private:
67};
68
69} // namespace Filters
70} // namespace Inkscape
71
72#endif // SEEN_NR_FILTER_GAUSSIAN_H
73/*
74 Local Variables:
75 mode:c++
76 c-file-style:"stroustrup"
77 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
78 indent-tabs-mode:nil
79 fill-column:99
80 End:
81*/
82// 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_deviation(double deviation)
Set the standard deviation value for gaussian blur.
Glib::ustring name() const override
void render_cairo(FilterSlot &slot) const override
bool can_handle_affine(Geom::Affine const &m) const override
Indicate whether the filter primitive can handle the given affine.
void area_enlarge(Geom::IntRect &area, Geom::Affine const &m) const override
double complexity(Geom::Affine const &ctm) const override
Contains forward declarations of 2geom types.
Helper class to stream background task notifications as a series of messages.
@ BLUR_QUALITY_NORMAL
@ BLUR_QUALITY_BEST
@ BLUR_QUALITY_WORSE
@ BLUR_QUALITY_BETTER
@ BLUR_QUALITY_WORST