Changeset View
Changeset View
Standalone View
Standalone View
libs/libkis/Filter.h
Show All 16 Lines | |||||
17 | */ | 17 | */ | ||
18 | #ifndef LIBKIS_FILTER_H | 18 | #ifndef LIBKIS_FILTER_H | ||
19 | #define LIBKIS_FILTER_H | 19 | #define LIBKIS_FILTER_H | ||
20 | 20 | | |||
21 | #include <QObject> | 21 | #include <QObject> | ||
22 | 22 | | |||
23 | #include "kritalibkis_export.h" | 23 | #include "kritalibkis_export.h" | ||
24 | #include "libkis.h" | 24 | #include "libkis.h" | ||
25 | #include <kis_filter_configuration.h> | ||||
25 | 26 | | |||
26 | /** | 27 | /** | ||
27 | * Filter: represents a filter and its configuration. A filter is identified by | 28 | * Filter: represents a filter and its configuration. A filter is identified by | ||
28 | * an internal name. The configuration for each filter is defined as an InfoObject: | 29 | * an internal name. The configuration for each filter is defined as an InfoObject: | ||
29 | * a map of name and value pairs. | 30 | * a map of name and value pairs. | ||
30 | * | 31 | * | ||
31 | * Currently available filters are: | 32 | * Currently available filters are: | ||
32 | * | 33 | * | ||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 58 | public Q_SLOTS: | |||
95 | * @param node the node to apply the filter to | 96 | * @param node the node to apply the filter to | ||
96 | * @params x, y, w, h: describe the rectangle the filter should be apply. | 97 | * @params x, y, w, h: describe the rectangle the filter should be apply. | ||
97 | * This is always in image pixel coordinates and not relative to the x, y | 98 | * This is always in image pixel coordinates and not relative to the x, y | ||
98 | * of the node. | 99 | * of the node. | ||
99 | */ | 100 | */ | ||
100 | bool startFilter(Node *node, int x, int y, int w, int h); | 101 | bool startFilter(Node *node, int x, int y, int w, int h); | ||
101 | 102 | | |||
102 | private: | 103 | private: | ||
104 | friend class FilterLayer; | ||||
105 | friend class FilterMask; | ||||
106 | | ||||
103 | struct Private; | 107 | struct Private; | ||
104 | Private *const d; | 108 | Private *const d; | ||
105 | 109 | | |||
110 | KisFilterConfigurationSP filterConfig(); | ||||
111 | | ||||
106 | }; | 112 | }; | ||
107 | 113 | | |||
108 | #endif // LIBKIS_FILTER_H | 114 | #endif // LIBKIS_FILTER_H |