Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
nr-filter-image.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_NR_FILTER_IMAGE_H
3#define SEEN_NR_FILTER_IMAGE_H
4
5/*
6 * feImage filter primitive renderer
7 *
8 * Authors:
9 * Niko Kiirala <niko@kiirala.com>
10 *
11 * Copyright (C) 2007 authors
12 *
13 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
14 */
15
16#include <memory>
17#include <string>
19
20class SPDocument;
21class SPItem;
22
23namespace Inkscape {
24class Pixbuf;
25class DrawingItem;
26
27namespace Filters {
28class FilterSlot;
29
31{
32public:
33 void update() override;
34 void render_cairo(FilterSlot &slot) const override;
35 bool can_handle_affine(Geom::Affine const &) const override;
36 double complexity(Geom::Affine const &ctm) const override;
37
38 void set_document(SPDocument *document);
39 void set_href(char const *href);
40 void set_align(unsigned align);
41 void set_clip(unsigned clip);
42
43 Glib::ustring name() const override { return Glib::ustring("Image"); }
44
46 bool from_element = false;
47
49};
50
51} // namespace Filters
52} // namespace Inkscape
53
54#endif // SEEN_NR_FILTER_IMAGE_H
55/*
56 Local Variables:
57 mode:c++
58 c-file-style:"stroustrup"
59 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
60 indent-tabs-mode:nil
61 fill-column:99
62 End:
63*/
64// 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
SVG drawing item for display.
bool can_handle_affine(Geom::Affine const &) const override
Indicate whether the filter primitive can handle the given affine.
Inkscape::DrawingItem * item
void set_href(char const *href)
void set_document(SPDocument *document)
double complexity(Geom::Affine const &ctm) const override
void render_cairo(FilterSlot &slot) const override
Glib::ustring name() const override
Typed SVG document implementation.
Definition document.h:101
Base class for visual SVG elements.
Definition sp-item.h:109
Helper class to stream background task notifications as a series of messages.
static T clip(T const &v, T const &a, T const &b)