Blender  V3.3
Classes | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | List of all members
blender::compositor::NodeGraph Class Reference

#include <COM_NodeGraph.h>

Classes

struct  Link
 

Public Member Functions

 ~NodeGraph ()
 
const Vector< Node * > & nodes () const
 
const Vector< Link > & links () 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 23 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 53 of file COM_NodeGraph.h.

Constructor & Destructor Documentation

◆ ~NodeGraph()

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

Definition at line 22 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 68 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 178 of file COM_NodeGraph.cc.

References add_node(), ListBase::first, and bNode::internal_links.

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 290 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 190 of file COM_NodeGraph.cc.

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

Referenced by add_bNode().

◆ find_b_node_input()

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

Definition at line 34 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 44 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 133 of file COM_NodeGraph.cc.

References node, and output.

Referenced by add_bNodeLink().

◆ from_bNodeTree()

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

◆ links()

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

◆ nodes()

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

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