|
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, ustringHash > & | 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.
| 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(), 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 SocketType::name, and NULL.
| const SocketType * NodeType::find_output | ( | ustring | name | ) | const |
Definition at line 193 of file node_type.cpp.
References SocketType::name, and NULL.
| 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, SocketType::modified_flag_bit, name, SocketType::name, SocketType::node_type, 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, 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 Node::is_a(), and 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 NodeType().
| ustring NodeType::name |
Definition at line 122 of file node_type.h.
Referenced by add(), register_input(), register_output(), and xml_read_shader_graph().
| vector<SocketType, std::allocator<SocketType> > NodeType::outputs |
Definition at line 126 of file node_type.h.
Referenced by NodeType().
| Type NodeType::type |
Definition at line 123 of file node_type.h.
Referenced by add(), register_input(), register_output(), blender::deg::DepsNodeFactoryImpl< ModeObjectType >::type(), and xml_read_shader_graph().