Blender
V3.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 93 of file node_type.h.
Definition at line 113 of file node_type.h.
enum NodeType::Type |
Enumerator | |
---|---|
NONE | |
SHADER |
Definition at line 94 of file node_type.h.
NodeType::~NodeType | ( | ) |
|
static |
Referenced by NODE_ABSTRACT_DEFINE(), and NODE_DEFINE().
|
static |
Referenced by xml_read_shader_graph().
const SocketType* NodeType::find_input | ( | ustring | name | ) | const |
Referenced by HdCyclesDelegate::GetRenderSetting(), and HdCyclesDelegate::SetRenderSetting().
const SocketType* NodeType::find_output | ( | ustring | name | ) | const |
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 |
||
) |
void NodeType::register_output | ( | ustring | name, |
ustring | ui_name, | ||
SocketType::Type | type | ||
) |
|
static |
const NodeType* NodeType::base |
Definition at line 117 of file node_type.h.
Referenced by Node::is_a().
CreateFunc NodeType::create |
Definition at line 120 of file node_type.h.
Referenced by xml_read_shader_graph().
vector<SocketType, std::allocator<SocketType> > NodeType::inputs |
Definition at line 118 of file node_type.h.
Referenced by ShaderNode::create_inputs_outputs(), Node::dereference_all_used_nodes(), Node::equals(), ShaderNode::equals(), Node::get_total_size_in_bytes(), HdCyclesDelegate::GetRenderSettingDescriptors(), Node::hash(), OSLNode::input_default_value(), Node::Node(), and Node::print_modified_sockets().
ustring NodeType::name |
Definition at line 115 of file node_type.h.
Referenced by Node::hash(), Node::Node(), ShaderNode::ShaderNode(), and xml_read_shader_graph().
vector<SocketType, std::allocator<SocketType> > NodeType::outputs |
Definition at line 119 of file node_type.h.
Referenced by ShaderNode::create_inputs_outputs().
Type NodeType::type |
Definition at line 116 of file node_type.h.
Referenced by blender::deg::DepsNodeFactoryImpl< ModeObjectType >::type(), and xml_read_shader_graph().