Blender V4.3
blender::compositor::NodeGraph Class Reference

#include <COM_NodeGraph.h>

Classes

struct  Link
 

Public Member Functions

 ~NodeGraph ()
 
Span< Node * > nodes () const
 
Span< Linklinks () const
 
void from_bNodeTree (const CompositorContext &context, bNodeTree *tree)
 

Protected Types

typedef std::pair< Vector< Node * >::iterator, Vector< Node * >::iterator > NodeRange
 

Protected Member Functions

void add_node (Node *node, bNodeTree *b_ntree, bNodeInstanceKey key, bool is_active_group)
 
void add_link (NodeOutput *from_socket, NodeInput *to_socket)
 
void add_bNodeTree (const CompositorContext &context, int nodes_start, bNodeTree *tree, bNodeInstanceKey parent_key)
 
void add_bNode (const CompositorContext &context, bNodeTree *b_ntree, bNode *b_node, bNodeInstanceKey key, bool is_active_group)
 
NodeOutputfind_output (const NodeRange &node_range, bNodeSocket *b_socket)
 
void add_bNodeLink (const NodeRange &node_range, bNodeLink *b_nodelink)
 
void add_proxies_mute (bNodeTree *b_ntree, bNode *b_node, bNodeInstanceKey key, bool is_active_group)
 
void add_proxies_skip (bNodeTree *b_ntree, bNode *b_node, bNodeInstanceKey key, bool is_active_group)
 
void add_proxies_group_inputs (bNode *b_node, bNode *b_node_io)
 
void add_proxies_group_outputs (const CompositorContext &context, bNode *b_node, bNode *b_node_io)
 
void add_proxies_group (const CompositorContext &context, bNode *b_node, bNodeInstanceKey key)
 
void add_proxies_reroute (bNodeTree *b_ntree, bNode *b_node, bNodeInstanceKey key, bool is_active_group)
 

Static Protected Member Functions

static bNodeSocketfind_b_node_input (bNode *b_node, const char *identifier)
 
static bNodeSocketfind_b_node_output (bNode *b_node, const char *identifier)
 

Detailed Description

Internal representation of DNA node data. This structure is converted into operations by NodeCompiler.

Definition at line 24 of file COM_NodeGraph.h.

Member Typedef Documentation

◆ NodeRange

typedef std::pair<Vector<Node *>::iterator, Vector<Node *>::iterator> blender::compositor::NodeGraph::NodeRange
protected

Definition at line 52 of file COM_NodeGraph.h.

Constructor & Destructor Documentation

◆ ~NodeGraph()

blender::compositor::NodeGraph::~NodeGraph ( )

Definition at line 24 of file COM_NodeGraph.cc.

Member Function Documentation

◆ add_bNode()

void blender::compositor::NodeGraph::add_bNode ( const CompositorContext & context,
bNodeTree * b_ntree,
bNode * b_node,
bNodeInstanceKey key,
bool is_active_group )
protected

◆ add_bNodeLink()

void blender::compositor::NodeGraph::add_bNodeLink ( const NodeRange & node_range,
bNodeLink * b_nodelink )
protected

◆ add_bNodeTree()

void blender::compositor::NodeGraph::add_bNodeTree ( const CompositorContext & context,
int nodes_start,
bNodeTree * tree,
bNodeInstanceKey parent_key )
protected

◆ add_link()

void blender::compositor::NodeGraph::add_link ( NodeOutput * from_socket,
NodeInput * to_socket )
protected

Definition at line 70 of file COM_NodeGraph.cc.

References blender::compositor::NodeInput::set_link().

Referenced by add_bNodeLink().

◆ add_node()

void blender::compositor::NodeGraph::add_node ( Node * node,
bNodeTree * b_ntree,
bNodeInstanceKey key,
bool is_active_group )
protected

◆ add_proxies_group()

void blender::compositor::NodeGraph::add_proxies_group ( const CompositorContext & context,
bNode * b_node,
bNodeInstanceKey key )
protected

◆ add_proxies_group_inputs()

void blender::compositor::NodeGraph::add_proxies_group_inputs ( bNode * b_node,
bNode * b_node_io )
protected

◆ add_proxies_group_outputs()

void blender::compositor::NodeGraph::add_proxies_group_outputs ( const CompositorContext & context,
bNode * b_node,
bNode * b_node_io )
protected

◆ add_proxies_mute()

void blender::compositor::NodeGraph::add_proxies_mute ( bNodeTree * b_ntree,
bNode * b_node,
bNodeInstanceKey key,
bool is_active_group )
protected

Definition at line 175 of file COM_NodeGraph.cc.

References add_node().

Referenced by add_bNode().

◆ add_proxies_reroute()

void blender::compositor::NodeGraph::add_proxies_reroute ( bNodeTree * b_ntree,
bNode * b_node,
bNodeInstanceKey key,
bool is_active_group )
protected

Definition at line 282 of file COM_NodeGraph.cc.

References add_node(), ListBase::first, bNode::inputs, and bNode::outputs.

Referenced by add_bNode().

◆ add_proxies_skip()

void blender::compositor::NodeGraph::add_proxies_skip ( bNodeTree * b_ntree,
bNode * b_node,
bNodeInstanceKey key,
bool is_active_group )
protected

Definition at line 186 of file COM_NodeGraph.cc.

References add_node(), ListBase::first, bNode::inputs, output, and bNode::outputs.

◆ find_b_node_input()

bNodeSocket * blender::compositor::NodeGraph::find_b_node_input ( bNode * b_node,
const char * identifier )
staticprotected

Definition at line 36 of file COM_NodeGraph.cc.

References ListBase::first, bNode::inputs, and STREQ.

Referenced by add_proxies_group_inputs().

◆ find_b_node_output()

bNodeSocket * blender::compositor::NodeGraph::find_b_node_output ( bNode * b_node,
const char * identifier )
staticprotected

Definition at line 46 of file COM_NodeGraph.cc.

References ListBase::first, bNode::outputs, and STREQ.

Referenced by add_proxies_group_outputs().

◆ find_output()

NodeOutput * blender::compositor::NodeGraph::find_output ( const NodeRange & node_range,
bNodeSocket * b_socket )
protected

Definition at line 129 of file COM_NodeGraph.cc.

References output.

Referenced by add_bNodeLink().

◆ from_bNodeTree()

void blender::compositor::NodeGraph::from_bNodeTree ( const CompositorContext & context,
bNodeTree * tree )

◆ links()

Span< Link > blender::compositor::NodeGraph::links ( ) const
inline

◆ nodes()

Span< Node * > blender::compositor::NodeGraph::nodes ( ) const
inline

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