|
Blender
V3.3
|
#include <node_type.h>
Public Types | |
| enum | Type { UNDEFINED , BOOLEAN , FLOAT , INT , UINT , COLOR , VECTOR , POINT , NORMAL , POINT2 , CLOSURE , STRING , ENUM , TRANSFORM , NODE , BOOLEAN_ARRAY , FLOAT_ARRAY , INT_ARRAY , COLOR_ARRAY , VECTOR_ARRAY , POINT_ARRAY , NORMAL_ARRAY , POINT2_ARRAY , STRING_ARRAY , TRANSFORM_ARRAY , NODE_ARRAY } |
| enum | Flags { LINKABLE = (1 << 0) , ANIMATABLE = (1 << 1) , SVM_INTERNAL = (1 << 2) , OSL_INTERNAL = (1 << 3) , INTERNAL = (1 << 2) | (1 << 3) , LINK_TEXTURE_GENERATED = (1 << 4) , LINK_TEXTURE_NORMAL = (1 << 5) , LINK_TEXTURE_UV = (1 << 6) , LINK_INCOMING = (1 << 7) , LINK_NORMAL = (1 << 8) , LINK_POSITION = (1 << 9) , LINK_TANGENT = (1 << 10) , DEFAULT_LINK_MASK = (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) } |
Public Member Functions | |
| size_t | size () const |
| bool | is_array () const |
Static Public Member Functions | |
| static size_t | size (Type type) |
| static size_t | max_size () |
| static ustring | type_name (Type type) |
| static void * | zero_default_value () |
| static bool | is_float3 (Type type) |
Public Attributes | |
| ustring | name |
| Type | type |
| int | struct_offset |
| const void * | default_value |
| const NodeEnum * | enum_values |
| const NodeType * | node_type |
| int | flags |
| ustring | ui_name |
| SocketModifiedFlags | modified_flag_bit |
Definition at line 22 of file node_type.h.
| enum SocketType::Flags |
| Enumerator | |
|---|---|
| LINKABLE | |
| ANIMATABLE | |
| SVM_INTERNAL | |
| OSL_INTERNAL | |
| INTERNAL | |
| LINK_TEXTURE_GENERATED | |
| LINK_TEXTURE_NORMAL | |
| LINK_TEXTURE_UV | |
| LINK_INCOMING | |
| LINK_NORMAL | |
| LINK_POSITION | |
| LINK_TANGENT | |
| DEFAULT_LINK_MASK | |
Definition at line 54 of file node_type.h.
| enum SocketType::Type |
Definition at line 23 of file node_type.h.
Definition at line 17 of file node_type.cpp.
References BOOLEAN_ARRAY, and type.
Referenced by Node::copy_value(), and Node::set_value().
Definition at line 118 of file node_type.cpp.
References COLOR, NORMAL, POINT, type, and VECTOR.
Referenced by ConvertNode::constant_fold(), ConstantFolder::is_one(), ConstantFolder::is_zero(), ConstantFolder::make_one(), ConstantFolder::make_zero(), and ConstantFolder::try_bypass_or_make_constant().
|
static |
Definition at line 85 of file node_type.cpp.
Referenced by OSLNode::create(), and OSLNode::input_default_value().
| CCL_NAMESPACE_BEGIN size_t SocketType::size | ( | ) | const |
Definition at line 12 of file node_type.cpp.
References type.
Referenced by Node::copy_value(), Node::get_total_size_in_bytes(), and Node::set_default_value().
|
static |
Definition at line 22 of file node_type.cpp.
References bool, BOOLEAN, BOOLEAN_ARRAY, CLOSURE, COLOR, COLOR_ARRAY, ENUM, FLOAT, float(), FLOAT_ARRAY, INT, INT_ARRAY, NODE, NODE_ARRAY, NORMAL, NORMAL_ARRAY, POINT, POINT2, POINT2_ARRAY, POINT_ARRAY, STRING, STRING_ARRAY, TRANSFORM, TRANSFORM_ARRAY, type, UINT, UNDEFINED, VECTOR, and VECTOR_ARRAY.
|
static |
Definition at line 96 of file node_type.cpp.
|
static |
Definition at line 90 of file node_type.cpp.
References transform_zero().
| const void* SocketType::default_value |
Definition at line 75 of file node_type.h.
Referenced by Node::set_default_value().
| const NodeEnum* SocketType::enum_values |
Definition at line 76 of file node_type.h.
Referenced by node_socket_from_image_spec_atttributes(), node_socket_to_image_spec_atttributes(), and xml_read_node().
| int SocketType::flags |
Definition at line 78 of file node_type.h.
Referenced by ShaderNode::create_inputs_outputs(), ShaderNode::equals(), ShaderInput::flags(), xml_read_node(), and xml_write_node().
| SocketModifiedFlags SocketType::modified_flag_bit |
Definition at line 80 of file node_type.h.
| ustring SocketType::name |
Definition at line 72 of file node_type.h.
Referenced by HdCyclesDelegate::GetRenderSettingDescriptors(), Node::hash(), node_socket_attribute_name(), Node::print_modified_sockets(), xml_read_node(), xml_read_shader_graph(), and xml_write_node().
| const NodeType* SocketType::node_type |
Definition at line 77 of file node_type.h.
Referenced by xml_read_node().
| int SocketType::struct_offset |
Definition at line 74 of file node_type.h.
Referenced by copy_array(), Node::copy_value(), Node::get_socket_value(), is_array_equal(), is_value_equal(), and Node::set_default_value().
| Type SocketType::type |
Definition at line 73 of file node_type.h.
Referenced by Node::copy_value(), Node::dereference_all_used_nodes(), Node::equals_value(), Node::get_total_size_in_bytes(), GetNodeValue(), Node::hash(), is_array(), is_float3(), is_socket_array_float3(), is_socket_float3(), node_socket_from_image_spec_atttributes(), node_socket_to_image_spec_atttributes(), UsdToCyclesMapping::parameterName(), CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T >::set_param(), Node::set_value(), SetNodeValue(), size(), ShaderInput::type(), ShaderOutput::type(), type_name(), xml_read_node(), and xml_write_node().
| ustring SocketType::ui_name |
Definition at line 79 of file node_type.h.
Referenced by HdCyclesDelegate::GetRenderSettingDescriptors(), ShaderInput::name(), and ShaderOutput::name().