File indexing completed on 2024-05-12 15:58:15
0001 /* 0002 * SPDX-FileCopyrightText: 2006 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 #ifndef _KIS_EFFECT_MASK_ 0008 #define _KIS_EFFECT_MASK_ 0009 0010 #include "kis_mask.h" 0011 /** 0012 * An effect mask is a single channel mask that applies a particular 0013 * effect to the layer the mask belongs to. It differs from an 0014 * adjustment layer in that it only works on its parent layer, while 0015 * adjustment layers work on all layers below it in its layer group. 0016 * The effect could be a filter, a transformation or anything else 0017 * that messes up pixels. 0018 */ 0019 class KRITAIMAGE_EXPORT KisEffectMask : public KisMask 0020 { 0021 0022 Q_OBJECT 0023 0024 public: 0025 0026 /** 0027 * Create an empty effect mask. 0028 */ 0029 KisEffectMask(KisImageWSP image, const QString &name); 0030 0031 ~KisEffectMask() override; 0032 KisEffectMask(const KisEffectMask& rhs); 0033 0034 QIcon icon() const override; 0035 0036 using KisMask::apply; 0037 }; 0038 0039 #endif //_KIS_EFFECT_MASK_