Blender V5.0
CCL_NAMESPACE_BEGIN::ShaderGraphBuilder Class Reference

Public Member Functions

 ShaderGraphBuilder (ShaderGraph *graph)
ShaderNodefind_node (const string &name)
template<typename T>
ShaderGraphBuilderadd_node (const T &node)
ShaderGraphBuilderadd_connection (const string &from, const string &to)
ShaderGraphBuilderadd_attribute (const string &name)
ShaderGraphBuilderoutput_closure (const string &from)
ShaderGraphBuilderoutput_volume_closure (const string &from)
ShaderGraphBuilderoutput_color (const string &from)
ShaderGraphBuilderoutput_value (const string &from)
ShaderGraphgraph ()

Protected Attributes

ShaderGraphgraph_
map< string, ShaderNode * > node_map_

Detailed Description

Definition at line 63 of file render_graph_finalize_test.cpp.

Constructor & Destructor Documentation

◆ ShaderGraphBuilder()

CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::ShaderGraphBuilder ( ShaderGraph * graph)
inline

Member Function Documentation

◆ add_attribute()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_attribute ( const string & name)
inline

◆ add_connection()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_connection ( const string & from,
const string & to )
inline

◆ add_node()

template<typename T>
ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_node ( const T & node)
inline

◆ find_node()

ShaderNode * CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::find_node ( const string & name)
inline

Definition at line 70 of file render_graph_finalize_test.cpp.

References name, and node_map_.

Referenced by add_connection(), and add_node().

◆ graph()

ShaderGraph & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::graph ( )
inline

Definition at line 140 of file render_graph_finalize_test.cpp.

References graph_.

Referenced by ShaderGraphBuilder().

◆ output_closure()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::output_closure ( const string & from)
inline

Definition at line 114 of file render_graph_finalize_test.cpp.

References add_connection(), and ShaderGraphBuilder().

Referenced by output_color(), and output_value().

◆ output_color()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::output_color ( const string & from)
inline

◆ output_value()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::output_value ( const string & from)
inline

◆ output_volume_closure()

ShaderGraphBuilder & CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::output_volume_closure ( const string & from)
inline

Definition at line 119 of file render_graph_finalize_test.cpp.

References add_connection(), and ShaderGraphBuilder().

Member Data Documentation

◆ graph_

ShaderGraph* CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::graph_
protected

◆ node_map_

map<string, ShaderNode *> CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::node_map_
protected

Definition at line 147 of file render_graph_finalize_test.cpp.

Referenced by add_node(), find_node(), and ShaderGraphBuilder().


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