|
Blender V5.0
|
#include <node_type.h>
Public Types | |
| enum | Type { NONE , SHADER } |
| using | CreateFunc = unique_ptr<Node> (*)(const NodeType *) |
Public Member Functions | |
| NodeType (Type type=NONE, const NodeType *base=nullptr) | |
| ~NodeType () | |
| void | register_input (ustring name, ustring ui_name, SocketType::Type type, const int struct_offset, const void *default_value, const NodeEnum *enum_values=nullptr, const NodeType *node_type=nullptr, int flags=0, int extra_flags=0) |
| void | register_output (ustring name, ustring ui_name, SocketType::Type type) |
| const SocketType * | find_input (ustring name) const |
| const SocketType * | find_output (ustring name) const |
Static Public Member Functions | |
| static NodeType * | add (const char *name, CreateFunc create, Type type=NONE, const NodeType *base=nullptr) |
| static const NodeType * | find (ustring name) |
| static unordered_map< ustring, NodeType > & | types () |
Public Attributes | |
| ustring | name |
| Type | type |
| const NodeType * | base |
| vector< SocketType, std::allocator< SocketType > > | inputs |
| vector< SocketType, std::allocator< SocketType > > | outputs |
| CreateFunc | create |
Definition at line 103 of file node_type.h.
| using NodeType::CreateFunc = unique_ptr<Node> (*)(const NodeType *) |
Definition at line 123 of file node_type.h.
| enum NodeType::Type |
| Enumerator | |
|---|---|
| NONE | |
| SHADER | |
Definition at line 104 of file node_type.h.
Definition at line 137 of file node_type.cpp.
References base, inputs, NodeType(), outputs, and type.
Referenced by add(), find(), NodeType(), register_input(), and ~NodeType().
|
default |
References name, NodeType(), and type.
|
static |
Definition at line 216 of file node_type.cpp.
References assert, find(), LOG_ERROR, name, NodeType(), type, and types().
Referenced by NODE_ABSTRACT_DEFINE(), NODE_ABSTRACT_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), and NODE_DEFINE().
|
static |
Definition at line 234 of file node_type.cpp.
References find(), name, NodeType(), nullptr, and types().
Referenced by add(), find(), and xml_read_shader_graph().
| const SocketType * NodeType::find_input | ( | ustring | name | ) | const |
Definition at line 186 of file node_type.cpp.
Referenced by HdCyclesDelegate::GetRenderSetting(), and HdCyclesDelegate::SetRenderSetting().
| const SocketType * NodeType::find_output | ( | ustring | name | ) | const |
Definition at line 197 of file node_type.cpp.
| void NodeType::register_input | ( | ustring | name, |
| ustring | ui_name, | ||
| SocketType::Type | type, | ||
| const int | struct_offset, | ||
| const void * | default_value, | ||
| const NodeEnum * | enum_values = nullptr, | ||
| const NodeType * | node_type = nullptr, | ||
| int | flags = 0, | ||
| int | extra_flags = 0 ) |
Definition at line 148 of file node_type.cpp.
References assert, SocketType::default_value, SocketType::enum_values, SocketType::flags, inputs, SocketType::modified_flag_bit, name, SocketType::name, SocketType::node_type, NodeType(), SocketType::struct_offset, type, SocketType::type, and SocketType::ui_name.
| void NodeType::register_output | ( | ustring | name, |
| ustring | ui_name, | ||
| SocketType::Type | type ) |
Definition at line 172 of file node_type.cpp.
References SocketType::default_value, SocketType::enum_values, SocketType::flags, SocketType::LINKABLE, name, SocketType::name, SocketType::node_type, outputs, SocketType::struct_offset, type, SocketType::type, and SocketType::ui_name.
|
static |
Definition at line 210 of file node_type.cpp.
| const NodeType* NodeType::base |
Definition at line 127 of file node_type.h.
Referenced by NodeType().
| CreateFunc NodeType::create |
Definition at line 130 of file node_type.h.
Referenced by ShaderGraph::create_node(), and xml_read_shader_graph().
| vector<SocketType, std::allocator<SocketType> > NodeType::inputs |
Definition at line 128 of file node_type.h.
Referenced by find_input(), HdCyclesDelegate::GetRenderSettingDescriptors(), node_from_image_spec_atttributes(), node_to_image_spec_atttributes(), NodeType(), and register_input().
| ustring NodeType::name |
Definition at line 125 of file node_type.h.
Referenced by add(), ShaderGraph::deduplicate_nodes(), find(), find_input(), find_output(), register_input(), register_output(), xml_read_shader_graph(), and ~NodeType().
| vector<SocketType, std::allocator<SocketType> > NodeType::outputs |
Definition at line 129 of file node_type.h.
Referenced by find_output(), NodeType(), and register_output().
| Type NodeType::type |
Definition at line 126 of file node_type.h.
Referenced by add(), NodeType(), register_input(), register_output(), blender::deg::DepsNodeFactoryImpl< ModeObjectType >::type(), xml_read_shader_graph(), and ~NodeType().