Krita Source Code Documentation
Loading...
Searching...
No Matches
TransformMask.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#ifndef LIBKIS_TRANSFORMMASK_H
7#define LIBKIS_TRANSFORMMASK_H
8
9#include <QObject>
10#include "Node.h"
11
12#include <kis_types.h>
13
14#include "kritalibkis_export.h"
15#include "libkis.h"
16
22class KRITALIBKIS_EXPORT TransformMask : public Node
23{
24 Q_OBJECT
25 Q_DISABLE_COPY(TransformMask)
26
27public:
28 explicit TransformMask(KisImageSP image, QString name, QObject *parent = 0);
29 explicit TransformMask(KisImageSP image, KisTransformMaskSP mask, QObject *parent = 0);
30 ~TransformMask() override;
31public Q_SLOTS:
32
42 virtual QString type() const override;
43
44 QTransform finalAffineTransform() const;
45
50 QString toXML() const;
51
88 bool fromXML(const QString &xml);
89
90};
91
92#endif // LIBKIS_TRANSFORMMASK_H
93
Definition Node.h:24
virtual QString type() const
type Krita has several types of nodes, split in layers and masks. Group layers can contain other laye...
Definition Node.cpp:463
friend class TransformMask
Definition Node.h:706
The TransformMask class A transform mask is a mask type node that can be used to store transformation...