Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
componenttransfer-funcnode.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SP_FECOMPONENTTRANSFER_FUNCNODE_H_SEEN
3#define SP_FECOMPONENTTRANSFER_FUNCNODE_H_SEEN
4
8/*
9 * Authors:
10 * Hugo Rodrigues <haa.rodrigues@gmail.com>
11 * Niko Kiirala <niko@kiirala.com>
12 * Felipe CorrĂȘa da Silva Sanches <juca@members.fsf.org>
13 *
14 * Copyright (C) 2006,2007 Authors
15 *
16 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
17 */
18
19#include "object/sp-object.h"
21
22class SPFeFuncNode final
23 : public SPObject
24{
25public:
27 {
28 R, G, B, A
29 };
30
33 int tag() const override { return tag_of<decltype(*this)>; }
34
36 std::vector<double> tableValues;
37 double slope = 1;
38 double intercept = 0;
39 double amplitude = 1;
40 double exponent = 1;
41 double offset = 0;
43
44protected:
45 void build(SPDocument *doc, Inkscape::XML::Node *repr) override;
46 void release() override;
47 void set(SPAttr key, char const *value) override;
48};
49
50#endif // SP_FECOMPONENTTRANSFER_FUNCNODE_H_SEEN
51
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 :
SPAttr
Definition attributes.h:27
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Definition cast.h:26
Interface for refcounted XML nodes.
Definition node.h:80
Typed SVG document implementation.
Definition document.h:101
SPFeFuncNode(Channel channel)
Inkscape::Filters::FilterComponentTransferType type
std::vector< double > tableValues
void build(SPDocument *doc, Inkscape::XML::Node *repr) override
int tag() const override
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Definition sp-object.h:160
Inkscape::XML::Node * repr
Definition sp-object.h:193
static cairo_user_data_key_t key