Blender V4.5
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.

◆ 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.

◆ export_params

const ExportParams& blender::nodes::materialx::NodeGraph::export_params

◆ graph_element_

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

Definition at line 62 of file node_graph.h.

Referenced by empty_node(), get_input(), get_node(), get_output(), NodeGraph(), and unique_node_name().

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

◆ material

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

◆ 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.

◆ 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: