|
Blender V4.3
|
#include <node_type.h>
Public Types | |
| enum | Type { NONE , SHADER } |
| typedef Node *(* | CreateFunc) (const NodeType *type) |
Public Member Functions | |
| NodeType (Type type=NONE, const NodeType *base=NULL) | |
| ~NodeType () | |
| void | register_input (ustring name, ustring ui_name, SocketType::Type type, int struct_offset, const void *default_value, const NodeEnum *enum_values=NULL, const NodeType *node_type=NULL, 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=NULL) |
| 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 100 of file node_type.h.
Definition at line 120 of file node_type.h.
| enum NodeType::Type |
| Enumerator | |
|---|---|
| NONE | |
| SHADER | |
Definition at line 101 of file node_type.h.
Definition at line 133 of file node_type.cpp.
References base, inputs, NodeType(), outputs, and type.
Referenced by add(), find(), NodeType(), and register_input().
| NodeType::~NodeType | ( | ) |
Definition at line 142 of file node_type.cpp.
|
static |
Definition at line 212 of file node_type.cpp.
References find(), name, NodeType(), NULL, 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(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), and NODE_DEFINE().
|
static |
Definition at line 230 of file node_type.cpp.
References find(), name, NodeType(), NULL, and types().
Referenced by add(), find(), and xml_read_shader_graph().
| const SocketType * NodeType::find_input | ( | ustring | name | ) | const |
Definition at line 182 of file node_type.cpp.
References inputs, name, SocketType::name, and NULL.
Referenced by HdCyclesDelegate::GetRenderSetting(), and HdCyclesDelegate::SetRenderSetting().
| const SocketType * NodeType::find_output | ( | ustring | name | ) | const |
Definition at line 193 of file node_type.cpp.
References name, SocketType::name, NULL, and outputs.
| void NodeType::register_input | ( | ustring | name, |
| ustring | ui_name, | ||
| SocketType::Type | type, | ||
| int | struct_offset, | ||
| const void * | default_value, | ||
| const NodeEnum * | enum_values = NULL, | ||
| const NodeType * | node_type = NULL, | ||
| int | flags = 0, | ||
| int | extra_flags = 0 ) |
Definition at line 144 of file node_type.cpp.
References 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 168 of file node_type.cpp.
References SocketType::default_value, SocketType::enum_values, SocketType::flags, SocketType::LINKABLE, name, SocketType::name, SocketType::node_type, NULL, outputs, SocketType::struct_offset, type, SocketType::type, and SocketType::ui_name.
|
static |
Definition at line 206 of file node_type.cpp.
| const NodeType* NodeType::base |
Definition at line 124 of file node_type.h.
Referenced by NodeType().
| CreateFunc NodeType::create |
Definition at line 127 of file node_type.h.
Referenced by xml_read_shader_graph().
| vector<SocketType, std::allocator<SocketType> > NodeType::inputs |
Definition at line 125 of file node_type.h.
Referenced by find_input(), HdCyclesDelegate::GetRenderSettingDescriptors(), node_from_image_spec_atttributes(), node_to_image_spec_atttributes(), NodeType(), register_input(), xml_read_node(), and xml_write_node().
| ustring NodeType::name |
Definition at line 122 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 xml_write_node().
| vector<SocketType, std::allocator<SocketType> > NodeType::outputs |
Definition at line 126 of file node_type.h.
Referenced by find_output(), NodeType(), and register_output().
| Type NodeType::type |
Definition at line 123 of file node_type.h.
Referenced by add(), NodeType(), register_input(), register_output(), blender::deg::DepsNodeFactoryImpl< ModeObjectType >::type(), and xml_read_shader_graph().