Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_node_shapes_graph.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2011 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_NODE_SHAPES_GRAPH_H
8#define __KIS_NODE_SHAPES_GRAPH_H
9
10
11#include "kis_node.h"
12#include "kis_types.h"
14
15class KisNodeShape;
16class KisNodeDummy;
17
18
29class KRITAUI_EXPORT KisNodeShapesGraph
30{
31public:
39 KisNodeShape* addNode(KisNodeSP node, KisNodeSP parent, KisNodeSP aboveThis);
40
47 void moveNode(KisNodeSP node, KisNodeSP parent, KisNodeSP aboveThis);
48
57 void removeNode(KisNodeSP node);
58
59 KisNodeShape* nodeToShape(KisNodeSP node);
60 KisNodeDummy* nodeToDummy(KisNodeSP node);
61 KisNodeDummy* rootDummy() const;
62
63 bool containsNode(KisNodeSP node) const;
64 int shapesCount() const;
65
66private:
68
69private:
71};
72
73#endif /* __KIS_NODE_SHAPES_GRAPH_H */
KisNodeDummiesGraph m_dummiesGraph
void unmapDummyRecursively(KisNodeDummy *dummy)