Krita Source Code Documentation
Loading...
Searching...
No Matches
Filter.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#ifndef LIBKIS_FILTER_H
7#define LIBKIS_FILTER_H
8
9#include <QObject>
10
11#include "kritalibkis_export.h"
12#include "libkis.h"
14
30class KRITALIBKIS_EXPORT Filter : public QObject
31{
32 Q_OBJECT
33 Q_DISABLE_COPY(Filter)
34
35public:
40 explicit Filter();
41 ~Filter() override;
42
43 bool operator==(const Filter &other) const;
44 bool operator!=(const Filter &other) const;
45
46public Q_SLOTS:
47
52 QString name() const;
53
57 void setName(const QString &name);
58
62 InfoObject* configuration() const;
63
67 void setConfiguration(InfoObject* value);
68
82 bool apply(Node *node, int x, int y, int w, int h);
83
95 bool startFilter(Node *node, int x, int y, int w, int h);
96
97private:
98 friend class FilterLayer;
99 friend class FilterMask;
100
101 struct Private;
102 Private *const d;
103
104 KisFilterConfigurationSP filterConfig();
105
106};
107
108#endif // LIBKIS_FILTER_H
float value(const T *src, size_t ch)
bool operator==(const KisRegion &lhs, const KisRegion &rhs)
bool operator!=(const KoID &v1, const KoID &v2)
Definition KoID.h:103
The FilterLayer class A filter layer will, when compositing, take the composited image up to the poin...
Definition FilterLayer.h:34
The FilterMask class A filter mask, unlike a filter layer, will add a non-destructive filter to the c...
Definition FilterMask.h:29
Private *const d
Definition Filter.h:102
Definition Node.h:24