Krita Source Code Documentation
Loading...
Searching...
No Matches
CloneLayer.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_CLONELAYER_H
7#define LIBKIS_CLONELAYER_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
25class KRITALIBKIS_EXPORT CloneLayer : public Node
26{
27 Q_OBJECT
28 Q_DISABLE_COPY(CloneLayer)
29
30public:
31 explicit CloneLayer(KisImageSP image, QString name, KisLayerSP source, QObject *parent = 0);
32
39 explicit CloneLayer(KisCloneLayerSP layer, QObject *parent = 0);
40 ~CloneLayer() override;
41public Q_SLOTS:
42
49 virtual QString type() const override;
50
55 Node* sourceNode() const;
56
61 void setSourceNode(Node* node);
62};
63
64#endif // LIBKIS_PAINTLAYER_H
65
KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
The CloneLayer class A clone layer is a layer that takes a reference inside the image and shows the e...
Definition CloneLayer.h:26
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 CloneLayer
Definition Node.h:708