#include <kis_ls_overlay_filter.h>
Definition at line 17 of file kis_ls_overlay_filter.h.
◆ Mode
◆ KisLsOverlayFilter() [1/2]
| KisLsOverlayFilter::KisLsOverlayFilter |
( |
Mode | mode | ) |
|
◆ KisLsOverlayFilter() [2/2]
◆ applyOverlay()
Definition at line 54 of file kis_ls_overlay_filter.cpp.
60{
61 if (applyRect.isEmpty()) return;
62
63 const QString compositeOp = config->
blendMode();
64 const quint8 opacityU8 = quint8(qRound(255.0 / 100.0 * config->
opacity()));
65
67 compositeOp,
68 opacityU8,
69 QBitArray(),
70 srcDevice);
71
73}
KisPaintDeviceSP getProjection(const QString &id, const QString &compositeOpId, quint8 opacity, const QBitArray &channelFlags, KisPaintDeviceSP prototype)
static QString defaultProjectionId()
QString blendMode() const
void fillOverlayDevice(KisPaintDeviceSP fillDevice, const QRect &applyRect, const psd_layer_effects_overlay_base *config, KisResourcesInterfaceSP resourcesInterface, KisLayerStyleFilterEnvironment *env)
References psd_layer_effects_shadow_base::blendMode(), KisMultipleProjection::defaultProjectionId(), KisLsUtils::fillOverlayDevice(), KisMultipleProjection::getProjection(), and psd_layer_effects_shadow_base::opacity().
◆ changedRect()
Similar to neededRect: some filters will alter a lot of pixels that are near to each other at the same time. So when you changed a single rectangle in a device, the actual rectangle that will feel the influence of this change might be bigger. Use this function to determine that rect.
Implements KisLayerStyleFilter.
Definition at line 115 of file kis_ls_overlay_filter.cpp.
116{
117 Q_UNUSED(style);
118 Q_UNUSED(env);
120}
◆ clone()
◆ getOverlayStruct()
Definition at line 76 of file kis_ls_overlay_filter.cpp.
77{
79
81 config = style->colorOverlay();
83 config = style->gradientOverlay();
85 config = style->patternOverlay();
86 }
87
88 return config;
89}
References Gradient, m_mode, and Pattern.
◆ neededRect()
Some filters need pixels outside the current processing rect to compute the new value (for instance, convolution filters)
Implements KisLayerStyleFilter.
Definition at line 108 of file kis_ls_overlay_filter.cpp.
109{
110 Q_UNUSED(style);
111 Q_UNUSED(env);
113}
◆ processDirectly()
Implements KisLayerStyleFilter.
Definition at line 91 of file kis_ls_overlay_filter.cpp.
97{
98 Q_UNUSED(env);
99 Q_UNUSED(blower);
101
104
105 applyOverlay(src, dst, applyRect, config, style->resourcesInterface(), env);
106}
const psd_layer_effects_overlay_base * getOverlayStruct(KisPSDLayerStyleSP style) const
void applyOverlay(KisPaintDeviceSP srcDevice, KisMultipleProjection *dst, const QRect &applyRect, const psd_layer_effects_overlay_base *config, KisResourcesInterfaceSP resourcesInterface, KisLayerStyleFilterEnvironment *env) const
#define KIS_ASSERT_RECOVER_RETURN(cond)
bool checkEffectEnabled(const psd_layer_effects_shadow_base *config, KisMultipleProjection *dst)
References applyOverlay(), KisLsUtils::checkEffectEnabled(), getOverlayStruct(), and KIS_ASSERT_RECOVER_RETURN.
◆ m_mode
| Mode KisLsOverlayFilter::m_mode |
|
private |
The documentation for this class was generated from the following files: