Blender  V3.3
Public Member Functions | List of all members
blender::nodes::DerivedNodeTree Class Reference

#include <NOD_derived_node_tree.hh>

Public Member Functions

 DerivedNodeTree (bNodeTree &btree, NodeTreeRefMap &node_tree_refs)
 
 ~DerivedNodeTree ()
 
bool has_link_cycles () const
 
bool has_undefined_nodes_or_sockets () const
 
void foreach_node (FunctionRef< void(DNode)> callback) const
 
std::string to_dot () const
 
#DerivedNodeTree Inline Methods
const DTreeContextroot_context () const
 
Span< const NodeTreeRef * > used_node_tree_refs () const
 

Detailed Description

Definition at line 176 of file NOD_derived_node_tree.hh.

Constructor & Destructor Documentation

◆ DerivedNodeTree()

blender::nodes::DerivedNodeTree::DerivedNodeTree ( bNodeTree btree,
NodeTreeRefMap node_tree_refs 
)

Construct a new derived node tree for a given root node tree. The generated derived node tree does not own the used node tree refs (so that those can be used by others as well). The caller has to make sure that the node tree refs added to #node_tree_refs live at least as long as the derived node tree.

Definition at line 9 of file derived_node_tree.cc.

◆ ~DerivedNodeTree()

blender::nodes::DerivedNodeTree::~DerivedNodeTree ( )

Definition at line 44 of file derived_node_tree.cc.

Member Function Documentation

◆ foreach_node()

void blender::nodes::DerivedNodeTree::foreach_node ( FunctionRef< void(DNode)>  callback) const

Calls the given callback on all nodes in the (possibly nested) derived node tree.

Definition at line 78 of file derived_node_tree.cc.

References callback.

Referenced by to_dot().

◆ has_link_cycles()

bool blender::nodes::DerivedNodeTree::has_link_cycles ( ) const
Returns
True when there is a link cycle. Unavailable sockets are ignored.

Definition at line 58 of file derived_node_tree.cc.

◆ has_undefined_nodes_or_sockets()

bool blender::nodes::DerivedNodeTree::has_undefined_nodes_or_sockets ( ) const

Definition at line 68 of file derived_node_tree.cc.

◆ root_context()

const DTreeContext & blender::nodes::DerivedNodeTree::root_context ( ) const
inline

Definition at line 449 of file NOD_derived_node_tree.hh.

◆ to_dot()

std::string blender::nodes::DerivedNodeTree::to_dot ( ) const

◆ used_node_tree_refs()

Span< const NodeTreeRef * > blender::nodes::DerivedNodeTree::used_node_tree_refs ( ) const
inline

Definition at line 454 of file NOD_derived_node_tree.hh.


The documentation for this class was generated from the following files: