7#include <kis_filter_mask.h>
9#include <kis_filter_configuration.h>
10#include <kis_filter_registry.h>
11#include <InfoObject.h>
14 Node(image, new KisFilterMask(image,
name), parent)
16 KisFilterMask *mask =
dynamic_cast<KisFilterMask*
>(this->node().data());
17 KIS_SAFE_ASSERT_RECOVER_RETURN(mask);
19 mask->setFilter(
filter.filterConfig()->cloneWithResourcesSnapshot());
22FilterMask::FilterMask(KisImageSP image, KisFilterMaskSP mask,
QObject *parent):
23 Node(image, mask, parent)
28FilterMask::~FilterMask()
38void FilterMask::setFilter(
Filter &filter)
40 KisFilterMask *mask =
dynamic_cast<KisFilterMask*
>(this->node().data());
41 KIS_SAFE_ASSERT_RECOVER_RETURN(mask);
43 mask->setFilter(filter.filterConfig()->cloneWithResourcesSnapshot());
46Filter * FilterMask::filter()
50 KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(mask, 0);
52 filter->setName(mask->filter()->name());
QString type() const override
type Krita has several types of nodes, split in layers and masks.
InfoObject wrap a properties map.
Node represents a layer or mask in a Krita image's Node hierarchy.
QString name(StandardAction id)
T qobject_cast(QObject *object)
QFuture< void > filter(QThreadPool *pool, Sequence &sequence, KeepFunctor &&filterFunction)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:59 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.