|
Blender V5.0
|
#include <node_graph.h>
Classes | |
| struct | NodeKey |
Public Member Functions | |
| NodeGraph (const Depsgraph *depsgraph, const Material *material, const ExportParams &export_params, const MaterialX::DocumentPtr &document) | |
| NodeGraph (const NodeGraph &parent, StringRef child_name) | |
| NodeItem | empty_node () const |
| NodeItem | get_node (StringRef name) const |
| NodeItem | get_output (StringRef name) const |
| NodeItem | get_input (StringRef name) const |
| std::string | unique_node_name (const bNode *node, StringRef socket_out_name, NodeItem::Type to_type) |
| void | set_output_node_name (const NodeItem &item) const |
Static Public Member Functions | |
| static std::string | unique_anonymous_node_name (MaterialX::GraphElement *graph_element) |
Public Attributes | |
| const Depsgraph * | depsgraph = nullptr |
| const Material * | material = nullptr |
| const ExportParams & | export_params |
Protected Attributes | |
| MaterialX::GraphElement * | graph_element_ = nullptr |
| Map< NodeKey, const std::string > | root_key_to_name_map_ |
| Map< NodeKey, const std::string > & | key_to_name_map_ |
| Set< std::string > | used_node_names_ |
| std::string | node_name_prefix_ |
Definition at line 27 of file node_graph.h.
| blender::nodes::materialx::NodeGraph::NodeGraph | ( | const Depsgraph * | depsgraph, |
| const Material * | material, | ||
| const ExportParams & | export_params, | ||
| const MaterialX::DocumentPtr & | document ) |
Definition at line 52 of file node_graph.cc.
References depsgraph, export_params, graph_element_, key_to_name_map_, material, and root_key_to_name_map_.
Referenced by NodeGraph().
| blender::nodes::materialx::NodeGraph::NodeGraph | ( | const NodeGraph & | parent, |
| StringRef | child_name ) |
Definition at line 64 of file node_graph.cc.
References CLOG_DEBUG, depsgraph, export_params, graph_element_, key_to_name_map_, blender::nodes::materialx::LOG_IO_MATERIALX, material, node_name_prefix_, NodeGraph(), root_key_to_name_map_, and blender::nodes::materialx::valid_name().
| NodeItem blender::nodes::materialx::NodeGraph::empty_node | ( | ) | const |
Definition at line 90 of file node_graph.cc.
References graph_element_.
Referenced by blender::nodes::materialx::export_to_materialx(), get_input(), get_node(), and get_output().
Definition at line 109 of file node_graph.cc.
References empty_node(), graph_element_, blender::nodes::materialx::NodeItem::input, and name.
Definition at line 95 of file node_graph.cc.
References empty_node(), graph_element_, name, and blender::nodes::materialx::NodeItem::node.
Definition at line 102 of file node_graph.cc.
References empty_node(), graph_element_, name, and blender::nodes::materialx::NodeItem::output.
| void blender::nodes::materialx::NodeGraph::set_output_node_name | ( | const NodeItem & | item | ) | const |
Definition at line 161 of file node_graph.cc.
References export_params, and blender::nodes::materialx::NodeItem::node.
Referenced by blender::nodes::materialx::export_to_materialx().
|
static |
Definition at line 168 of file node_graph.cc.
References blender::nodes::materialx::ANONYMOUS_NODE_NAME_PREFIX, and BLI_uniquename_cb().
Referenced by blender::nodes::materialx::NodeItem::create_node().
| std::string blender::nodes::materialx::NodeGraph::unique_node_name | ( | const bNode * | node, |
| StringRef | socket_out_name, | ||
| NodeItem::Type | to_type ) |
Definition at line 116 of file node_graph.cc.
References blender::nodes::materialx::ANONYMOUS_NODE_NAME_PREFIX, BLI_uniquename_cb(), blender::nodes::materialx::NodeItem::Empty, export_params, graph_element_, blender::StringRefBase::is_empty(), key_to_name_map_, bNode::name, name, node_name_prefix_, blender::gpu::shader::to_type(), blender::nodes::materialx::NodeItem::type(), used_node_names_, and blender::nodes::materialx::valid_name().
| const Depsgraph* blender::nodes::materialx::NodeGraph::depsgraph = nullptr |
Definition at line 29 of file node_graph.h.
Referenced by NodeGraph(), and NodeGraph().
| const ExportParams& blender::nodes::materialx::NodeGraph::export_params |
Definition at line 31 of file node_graph.h.
Referenced by NodeGraph(), NodeGraph(), set_output_node_name(), and unique_node_name().
|
protected |
Definition at line 62 of file node_graph.h.
Referenced by empty_node(), get_input(), get_node(), get_output(), NodeGraph(), NodeGraph(), and unique_node_name().
Definition at line 64 of file node_graph.h.
Referenced by NodeGraph(), NodeGraph(), and unique_node_name().
Definition at line 30 of file node_graph.h.
Referenced by NodeGraph(), and NodeGraph().
|
protected |
Definition at line 66 of file node_graph.h.
Referenced by NodeGraph(), and unique_node_name().
|
protected |
Definition at line 63 of file node_graph.h.
Referenced by NodeGraph(), and NodeGraph().
|
protected |
Definition at line 65 of file node_graph.h.
Referenced by unique_node_name().