Blender V4.3
blender::nodes::materialx::GroupNodeParser Class Reference

#include <group_nodes.h>

Inherits blender::nodes::materialx::NodeParser.

Inherited by blender::nodes::materialx::GroupInputNodeParser, and blender::nodes::materialx::GroupOutputNodeParser.

Public Member Functions

 GroupNodeParser (MaterialX::GraphElement *graph, const Depsgraph *depsgraph, const Material *material, const bNode *node, const bNodeSocket *socket_out, NodeItem::Type to_type, GroupNodeParser *group_parser, ExportParams export_params, bool use_group_default)
NodeItem compute () override
NodeItem compute_full () override
Public Member Functions inherited from blender::nodes::materialx::NodeParser
 NodeParser (MaterialX::GraphElement *graph, const Depsgraph *depsgraph, const Material *material, const bNode *node, const bNodeSocket *socket_out, NodeItem::Type to_type, GroupNodeParser *group_parser, const ExportParams &export_params)
virtual ~NodeParser ()=default

Protected Attributes

bool use_group_default_
Protected Attributes inherited from blender::nodes::materialx::NodeParser
MaterialX::GraphElement * graph_
const Depsgraph * depsgraph_
const Materialmaterial_
const bNodenode_
const bNodeSocketsocket_out_
NodeItem::Type to_type_
GroupNodeParsergroup_parser_
ExportParams export_params_

Additional Inherited Members

Protected Member Functions inherited from blender::nodes::materialx::NodeParser
std::string node_name (bool with_out_socket=true) const
NodeItem create_node (const std::string &category, NodeItem::Type type)
NodeItem create_node (const std::string &category, NodeItem::Type type, const NodeItem::Inputs &inputs)
NodeItem create_input (const std::string &name, const NodeItem &item)
NodeItem create_output (const std::string &name, const NodeItem &item)
NodeItem get_input_default (const std::string &name, NodeItem::Type to_type)
NodeItem get_input_default (int index, NodeItem::Type to_type)
NodeItem get_output_default (const std::string &name, NodeItem::Type to_type)
NodeItem get_output_default (int index, NodeItem::Type to_type)
NodeItem get_input_link (const std::string &name, NodeItem::Type to_type)
NodeItem get_input_link (int index, NodeItem::Type to_type)
NodeItem get_input_value (const std::string &name, NodeItem::Type to_type)
NodeItem get_input_value (int index, NodeItem::Type to_type)
NodeItem empty () const
template<class T>
NodeItem val (const T &data) const
NodeItem texcoord_node (NodeItem::Type type=NodeItem::Type::Vector2, const std::string &attribute_name="")

Detailed Description

Definition at line 17 of file group_nodes.h.

Constructor & Destructor Documentation

◆ GroupNodeParser()

blender::nodes::materialx::GroupNodeParser::GroupNodeParser ( MaterialX::GraphElement * graph,
const Depsgraph * depsgraph,
const Material * material,
const bNode * node,
const bNodeSocket * socket_out,
NodeItem::Type to_type,
GroupNodeParser * group_parser,
ExportParams export_params,
bool use_group_default )

Definition at line 15 of file group_nodes.cc.

References depsgraph, GroupNodeParser(), and blender::gpu::shader::to_type().

Referenced by GroupNodeParser().

Member Function Documentation

◆ compute()

◆ compute_full()

Member Data Documentation

◆ use_group_default_

bool blender::nodes::materialx::GroupNodeParser::use_group_default_
protected

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