|
Blender V5.3
|
#include <BKE_grease_pencil.hh>
Inherits blender::GreasePencilLayerTreeNode.
Public Member Functions | |
| TreeNode () | |
| TreeNode (GreasePencilLayerTreeNodeType type) | |
| TreeNode (GreasePencilLayerTreeNodeType type, StringRef name) | |
| TreeNode (const TreeNode &other) | |
| ~TreeNode () | |
| bool | is_group () const |
| bool | is_layer () const |
| const Layer & | as_layer () const |
| Layer & | as_layer () |
| const LayerGroup & | as_group () const |
| LayerGroup & | as_group () |
| const LayerGroup * | parent_group () const |
| LayerGroup * | parent_group () |
| const TreeNode * | parent_node () const |
| TreeNode * | parent_node () |
| int64_t | depth () const |
Public Attributes | |
| TREENODE_COMMON_METHODS | |
| Public Attributes inherited from blender::GreasePencilLayerTreeNode | |
| struct GreasePencilLayerTreeNode * | next = nullptr |
| struct GreasePencilLayerTreeNode * | prev = nullptr |
| struct GreasePencilLayerTreeGroup * | parent = nullptr |
| char * | name = nullptr |
| GreasePencilLayerTreeNodeType | type = GP_LAYER_TREE_LEAF |
| char | _pad [7] = {} |
| float | color [3] = {} |
| GreasePencilLayerTreeNodeFlag | flag = {} |
A TreeNode represents one node in the layer tree. It can either be a layer or a group. The node has zero children if it is a layer or zero or more children if it is a group.
Definition at line 356 of file BKE_grease_pencil.hh.
Definition at line 1495 of file grease_pencil.cc.
Definition at line 1505 of file grease_pencil.cc.
|
explicit |
Definition at line 1510 of file grease_pencil.cc.
| blender::bke::greasepencil::TreeNode::TreeNode | ( | const TreeNode & | other | ) |
Definition at line 1516 of file grease_pencil.cc.
Definition at line 1523 of file grease_pencil.cc.
Definition at line 1544 of file grease_pencil.cc.
| const LayerGroup & blender::bke::greasepencil::TreeNode::as_group | ( | ) | const |
Definition at line 1534 of file grease_pencil.cc.
Definition at line 1549 of file grease_pencil.cc.
| const Layer & blender::bke::greasepencil::TreeNode::as_layer | ( | ) | const |
Definition at line 1539 of file grease_pencil.cc.
Definition at line 1571 of file grease_pencil.cc.
|
inline |
Definition at line 879 of file BKE_grease_pencil.hh.
|
inline |
Definition at line 883 of file BKE_grease_pencil.hh.
Definition at line 1558 of file grease_pencil.cc.
| const LayerGroup * blender::bke::greasepencil::TreeNode::parent_group | ( | ) | const |
Definition at line 1554 of file grease_pencil.cc.
Definition at line 1566 of file grease_pencil.cc.
| const TreeNode * blender::bke::greasepencil::TreeNode::parent_node | ( | ) | const |
Definition at line 1562 of file grease_pencil.cc.
Definition at line 366 of file BKE_grease_pencil.hh.