|
Krita Source Code Documentation
|
#include <kis_node_dummies_graph.h>
Inheritance diagram for KisNodeDummy:Public Member Functions | |
| KisNodeDummy * | at (int index) const |
| int | childCount () const |
| KisNodeDummy * | firstChild () const |
| int | indexOf (KisNodeDummy *child) const |
| bool | isGUIVisible (bool showGlobalSelection) const |
| KisNodeDummy (KisNodeShape *nodeShape, KisNodeSP node) | |
| KisNodeDummy * | lastChild () const |
| KisNodeDummy * | nextSibling () const |
| KisNodeSP | node () const |
| KisNodeDummy * | parent () const |
| KisNodeDummy * | prevSibling () const |
| ~KisNodeDummy () override | |
Private Member Functions | |
| KisNodeShape * | nodeShape () const |
Private Attributes | |
| QList< KisNodeDummy * > | m_children |
| KisNodeSP | m_node |
| KisNodeShape * | m_nodeShape |
Friends | |
| class | KisNodeDummiesGraph |
| class | KisNodeShapesGraph |
| class | KisNodeShapesGraphTest |
KisNodeDummy is a simplified representation of a node in the node stack. It stores all the hierarchy information about the node, so you needn't access from the node directly (actually, you cannot do it usually, because UI works in a different thread and race conditions are possible).
The dummy stores a KisNodeShape which can store a pointer to to node. You can access to the node data through it, but take care – not all the information is accessible in multithreading environment.
The ownership on the KisNodeShape is taken by the dummy. The ownership on the children of the dummy is taken as well.
Definition at line 35 of file kis_node_dummies_graph.h.
| KisNodeDummy::KisNodeDummy | ( | KisNodeShape * | nodeShape, |
| KisNodeSP | node ) |
Take care that KisNodeDummy does not take ownership over the nodeShape since the handling of the removal of the children of the shape is done by flake. So please handle it manually.
The children dummies of the dummy are still owned by the dummy and are deleted automatically.
Definition at line 16 of file kis_node_dummies_graph.cpp.
|
override |
Definition at line 22 of file kis_node_dummies_graph.cpp.
References m_children.
| KisNodeDummy * KisNodeDummy::at | ( | int | index | ) | const |
Definition at line 87 of file kis_node_dummies_graph.cpp.
References m_children.
| int KisNodeDummy::childCount | ( | ) | const |
Definition at line 92 of file kis_node_dummies_graph.cpp.
References m_children.
| KisNodeDummy * KisNodeDummy::firstChild | ( | ) | const |
Definition at line 27 of file kis_node_dummies_graph.cpp.
References m_children.
| int KisNodeDummy::indexOf | ( | KisNodeDummy * | child | ) | const |
Definition at line 97 of file kis_node_dummies_graph.cpp.
References m_children.
| bool KisNodeDummy::isGUIVisible | ( | bool | showGlobalSelection | ) | const |
Definition at line 75 of file kis_node_dummies_graph.cpp.
References KisSharedPtr< T >::data(), KisBaseNode::isFakeNode(), m_node, and parent().
| KisNodeDummy * KisNodeDummy::lastChild | ( | ) | const |
Definition at line 32 of file kis_node_dummies_graph.cpp.
References m_children.
| KisNodeDummy * KisNodeDummy::nextSibling | ( | ) | const |
Definition at line 37 of file kis_node_dummies_graph.cpp.
References m_children, and parent().
| KisNodeSP KisNodeDummy::node | ( | ) | const |
Definition at line 70 of file kis_node_dummies_graph.cpp.
References m_node.
|
private |
Definition at line 65 of file kis_node_dummies_graph.cpp.
References m_nodeShape.
| KisNodeDummy * KisNodeDummy::parent | ( | ) | const |
Definition at line 60 of file kis_node_dummies_graph.cpp.
| KisNodeDummy * KisNodeDummy::prevSibling | ( | ) | const |
Definition at line 49 of file kis_node_dummies_graph.cpp.
References m_children, and parent().
|
friend |
Definition at line 71 of file kis_node_dummies_graph.h.
|
friend |
Definition at line 67 of file kis_node_dummies_graph.h.
|
friend |
Definition at line 68 of file kis_node_dummies_graph.h.
|
private |
Definition at line 72 of file kis_node_dummies_graph.h.
|
private |
Definition at line 75 of file kis_node_dummies_graph.h.
|
private |
Definition at line 74 of file kis_node_dummies_graph.h.