Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
nr-filter-component-transfer.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_NR_FILTER_COMPONENT_TRANSFER_H
3#define SEEN_NR_FILTER_COMPONENT_TRANSFER_H
4
5/*
6 * feComponentTransfer 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
16#include <vector>
18
19namespace Inkscape {
20namespace Filters {
21
22class FilterSlot;
23
33
35{
36public:
39
40 void render_cairo(FilterSlot &slot) const override;
41 bool can_handle_affine(Geom::Affine const &) const override;
42 double complexity(Geom::Affine const &ctm) const override;
43
45 std::vector<double> tableValues[4];
46 double slope[4];
47 double intercept[4];
48 double amplitude[4];
49 double exponent[4];
50 double offset[4];
51
52 Glib::ustring name() const override { return Glib::ustring("Component Transfer"); }
53};
54
55} // namespace Filters
56} // namespace Inkscape
57
58#endif // SEEN_NR_FILTER_COMPONENT_TRANSFER_H
59/*
60 Local Variables:
61 mode:c++
62 c-file-style:"stroustrup"
63 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
64 indent-tabs-mode:nil
65 fill-column:99
66 End:
67*/
68// 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
bool can_handle_affine(Geom::Affine const &) const override
Indicate whether the filter primitive can handle the given affine.
Helper class to stream background task notifications as a series of messages.