Blender  V2.93
Public Member Functions | List of all members
blender::nodes::NodeTreeRef Class Reference

#include <NOD_node_tree_ref.hh>

Inherits blender::NonCopyable, and blender::NonMovable.

Public Member Functions

 NodeTreeRef (bNodeTree *btree)
 
 ~NodeTreeRef ()
 
Span< const NodeRef * > nodes () const
 
Span< const NodeRef * > nodes_by_type (StringRefNull idname) const
 
Span< const NodeRef * > nodes_by_type (const bNodeType *nodetype) const
 
Span< const SocketRef * > sockets () const
 
Span< const InputSocketRef * > input_sockets () const
 
Span< const OutputSocketRef * > output_sockets () const
 
Span< const LinkRef * > links () const
 
bool has_link_cycles () const
 
bool has_undefined_nodes_or_sockets () const
 
bNodeTreebtree () const
 
StringRefNull name () const
 
std::string to_dot () const
 

Detailed Description

Definition at line 239 of file NOD_node_tree_ref.hh.

Constructor & Destructor Documentation

◆ NodeTreeRef()

blender::nodes::NodeTreeRef::NodeTreeRef ( bNodeTree btree)

◆ ~NodeTreeRef()

blender::nodes::NodeTreeRef::~NodeTreeRef ( )

Definition at line 116 of file node_tree_ref.cc.

References node.

Member Function Documentation

◆ btree()

bNodeTree * blender::nodes::NodeTreeRef::btree ( ) const
inline

Definition at line 668 of file NOD_node_tree_ref.hh.

Referenced by blender::nodes::NodeRef::btree(), and NodeTreeRef().

◆ has_link_cycles()

bool blender::nodes::NodeTreeRef::has_link_cycles ( ) const

Definition at line 335 of file node_tree_ref.cc.

References blender::nodes::has_link_cycles_recursive(), node, and visited.

◆ has_undefined_nodes_or_sockets()

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

Definition at line 349 of file node_tree_ref.cc.

References node.

◆ input_sockets()

Span< const InputSocketRef * > blender::nodes::NodeTreeRef::input_sockets ( ) const
inline

Definition at line 653 of file NOD_node_tree_ref.hh.

◆ links()

Span< const LinkRef * > blender::nodes::NodeTreeRef::links ( ) const
inline

Definition at line 663 of file NOD_node_tree_ref.hh.

◆ name()

StringRefNull blender::nodes::NodeTreeRef::name ( ) const
inline

Definition at line 673 of file NOD_node_tree_ref.hh.

References bNodeTree::id, and ID::name.

◆ nodes()

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

Definition at line 632 of file NOD_node_tree_ref.hh.

Referenced by try_get_socket_to_preview_for_spreadsheet().

◆ nodes_by_type() [1/2]

Span< const NodeRef * > blender::nodes::NodeTreeRef::nodes_by_type ( const bNodeType nodetype) const
inline

Definition at line 643 of file NOD_node_tree_ref.hh.

◆ nodes_by_type() [2/2]

Span< const NodeRef * > blender::nodes::NodeTreeRef::nodes_by_type ( StringRefNull  idname) const
inline

◆ output_sockets()

Span< const OutputSocketRef * > blender::nodes::NodeTreeRef::output_sockets ( ) const
inline

Definition at line 658 of file NOD_node_tree_ref.hh.

◆ sockets()

Span< const SocketRef * > blender::nodes::NodeTreeRef::sockets ( ) const
inline

Definition at line 648 of file NOD_node_tree_ref.hh.

◆ to_dot()

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

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