|
Blender V4.3
|
#include <BKE_grease_pencil.hh>
Inherits GreasePencilLayerTreeGroup.
Public Member Functions | |
| LayerGroup () | |
| LayerGroup (StringRefNull name) | |
| LayerGroup (const LayerGroup &other) | |
| ~LayerGroup () | |
| LayerGroup & | operator= (const LayerGroup &other) |
| const TreeNode & | as_node () const |
| TreeNode & | as_node () |
| bool | is_empty () const |
| int64_t | num_direct_nodes () const |
| int64_t | num_nodes_total () const |
| Span< const TreeNode * > | nodes () const |
| Span< TreeNode * > | nodes_for_write () |
| Span< const Layer * > | layers () const |
| Span< Layer * > | layers_for_write () |
| Span< const LayerGroup * > | groups () const |
| Span< LayerGroup * > | groups_for_write () |
| const TreeNode * | find_node_by_name (StringRefNull name) const |
| TreeNode * | find_node_by_name (StringRefNull name) |
| void | print_nodes (StringRefNull header) const |
| void | prepare_for_dna_write () |
| void | update_from_dna_read () |
Public Attributes | |
| TREENODE_COMMON_METHODS | |
| Public Attributes inherited from GreasePencilLayerTreeGroup | |
| GreasePencilLayerTreeNode | base |
| ListBase | children |
| int8_t | color_tag |
| char | _pad [7] |
| GreasePencilLayerGroupRuntimeHandle * | runtime |
Protected Member Functions | |
| TreeNode & | add_node (TreeNode &node) |
| void | add_node_before (TreeNode &node, TreeNode &link) |
| void | add_node_after (TreeNode &node, TreeNode &link) |
| void | move_node_up (TreeNode &node, int step=1) |
| void | move_node_down (TreeNode &node, int step=1) |
| void | move_node_top (TreeNode &node) |
| void | move_node_bottom (TreeNode &node) |
| bool | unlink_node (TreeNode &link, bool keep_children=false) |
Friends | |
| struct | ::GreasePencil |
A LayerGroup is a grouping of zero or more Layers.
Definition at line 646 of file BKE_grease_pencil.hh.
| blender::bke::greasepencil::LayerGroup::LayerGroup | ( | ) |
Definition at line 1513 of file grease_pencil.cc.
|
explicit |
Definition at line 1523 of file grease_pencil.cc.
| blender::bke::greasepencil::LayerGroup::LayerGroup | ( | const LayerGroup & | other | ) |
Definition at line 1528 of file grease_pencil.cc.
| blender::bke::greasepencil::LayerGroup::~LayerGroup | ( | ) |
Definition at line 1552 of file grease_pencil.cc.
Adds an existing node at the end of this group.
Definition at line 1587 of file grease_pencil.cc.
|
protected |
Adds an existing node after link of this group.
Definition at line 1601 of file grease_pencil.cc.
|
protected |
Adds an existing node before link of this group.
Definition at line 1594 of file grease_pencil.cc.
|
inline |
Definition at line 851 of file BKE_grease_pencil.hh.
|
inline |
Definition at line 847 of file BKE_grease_pencil.hh.
| TreeNode * blender::bke::greasepencil::LayerGroup::find_node_by_name | ( | StringRefNull | name | ) |
Definition at line 1741 of file grease_pencil.cc.
| const TreeNode * blender::bke::greasepencil::LayerGroup::find_node_by_name | ( | StringRefNull | name | ) | const |
Returns a pointer to the node with name. If no such node was found, returns nullptr.
Definition at line 1731 of file grease_pencil.cc.
| Span< const LayerGroup * > blender::bke::greasepencil::LayerGroup::groups | ( | ) | const |
Returns a Span of pointers to all the LayerGroupss in this group.
Definition at line 1719 of file grease_pencil.cc.
| Span< LayerGroup * > blender::bke::greasepencil::LayerGroup::groups_for_write | ( | ) |
Definition at line 1725 of file grease_pencil.cc.
|
inline |
Returns true if the group is empty.
Definition at line 855 of file BKE_grease_pencil.hh.
Returns a Span of pointers to all the Layers in this group.
Definition at line 1707 of file grease_pencil.cc.
Definition at line 1713 of file grease_pencil.cc.
|
protected |
Definition at line 1625 of file grease_pencil.cc.
|
protected |
Definition at line 1614 of file grease_pencil.cc.
|
protected |
Move child node to the top/bottom.
Definition at line 1619 of file grease_pencil.cc.
|
protected |
Move child node up/down by step.
Definition at line 1609 of file grease_pencil.cc.
Returns a Span of pointers to all the TreeNodes in this group.
Definition at line 1695 of file grease_pencil.cc.
Definition at line 1701 of file grease_pencil.cc.
| int64_t blender::bke::greasepencil::LayerGroup::num_direct_nodes | ( | ) | const |
Returns the number of direct nodes in this group.
Definition at line 1632 of file grease_pencil.cc.
| int64_t blender::bke::greasepencil::LayerGroup::num_nodes_total | ( | ) | const |
Returns the total number of nodes in this group.
Definition at line 1637 of file grease_pencil.cc.
| LayerGroup & blender::bke::greasepencil::LayerGroup::operator= | ( | const LayerGroup & | other | ) |
Definition at line 1575 of file grease_pencil.cc.
| void blender::bke::greasepencil::LayerGroup::prepare_for_dna_write | ( | ) |
Prepare the DNA GreasePencilLayerTreeGroup data before blend-file writing.
Definition at line 1820 of file grease_pencil.cc.
| void blender::bke::greasepencil::LayerGroup::print_nodes | ( | StringRefNull | header | ) | const |
Print the nodes. For debugging purposes.
Definition at line 1751 of file grease_pencil.cc.
|
protected |
Unlink the node from the list of nodes in this group.
Definition at line 1643 of file grease_pencil.cc.
| void blender::bke::greasepencil::LayerGroup::update_from_dna_read | ( | ) |
Update from DNA GreasePencilLayerTreeGroup data after blend-file reading.
Definition at line 1836 of file grease_pencil.cc.
|
friend |
Definition at line 647 of file BKE_grease_pencil.hh.
| blender::bke::greasepencil::LayerGroup::TREENODE_COMMON_METHODS |
Definition at line 659 of file BKE_grease_pencil.hh.