Blender V5.0
blender::nodes::materialx::NodeGraph Struct Reference

#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 Materialmaterial = nullptr
const ExportParamsexport_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_

Detailed Description

Definition at line 27 of file node_graph.h.

Constructor & Destructor Documentation

◆ NodeGraph() [1/2]

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().

◆ NodeGraph() [2/2]

blender::nodes::materialx::NodeGraph::NodeGraph ( const NodeGraph & parent,
StringRef child_name )

Member Function Documentation

◆ empty_node()

NodeItem blender::nodes::materialx::NodeGraph::empty_node ( ) const

◆ get_input()

NodeItem blender::nodes::materialx::NodeGraph::get_input ( StringRef name) const

◆ get_node()

NodeItem blender::nodes::materialx::NodeGraph::get_node ( StringRef name) const

◆ get_output()

NodeItem blender::nodes::materialx::NodeGraph::get_output ( StringRef name) const

◆ set_output_node_name()

void blender::nodes::materialx::NodeGraph::set_output_node_name ( const NodeItem & item) const

◆ unique_anonymous_node_name()

std::string blender::nodes::materialx::NodeGraph::unique_anonymous_node_name ( MaterialX::GraphElement * graph_element)
static

◆ unique_node_name()

Member Data Documentation

◆ depsgraph

const Depsgraph* blender::nodes::materialx::NodeGraph::depsgraph = nullptr

Definition at line 29 of file node_graph.h.

Referenced by NodeGraph(), and NodeGraph().

◆ export_params

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().

◆ graph_element_

MaterialX::GraphElement* blender::nodes::materialx::NodeGraph::graph_element_ = nullptr
protected

◆ key_to_name_map_

Map<NodeKey, const std::string>& blender::nodes::materialx::NodeGraph::key_to_name_map_
protected

Definition at line 64 of file node_graph.h.

Referenced by NodeGraph(), NodeGraph(), and unique_node_name().

◆ material

const Material* blender::nodes::materialx::NodeGraph::material = nullptr

Definition at line 30 of file node_graph.h.

Referenced by NodeGraph(), and NodeGraph().

◆ node_name_prefix_

std::string blender::nodes::materialx::NodeGraph::node_name_prefix_
protected

Definition at line 66 of file node_graph.h.

Referenced by NodeGraph(), and unique_node_name().

◆ root_key_to_name_map_

Map<NodeKey, const std::string> blender::nodes::materialx::NodeGraph::root_key_to_name_map_
protected

Definition at line 63 of file node_graph.h.

Referenced by NodeGraph(), and NodeGraph().

◆ used_node_names_

Set<std::string> blender::nodes::materialx::NodeGraph::used_node_names_
protected

Definition at line 65 of file node_graph.h.

Referenced by unique_node_name().


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