Blender V5.3
blender::bke::bNodeSocketType Struct Reference

Defines a socket type. More...

#include <BKE_node.hh>

Public Attributes

UString idname
std::string label
std::string subtype_label
void(*) draw (bContext *C, ui::Layout *layout, PointerRNA *ptr, PointerRNA *node_ptr, StringRef text) = nullptr
void(*) draw_color (bContext *C, PointerRNA *ptr, PointerRNA *node_ptr, float *r_color) = nullptr
void(*) draw_color_simple (const bNodeSocketType *socket_type, float *r_color) = nullptr
void(*) interface_draw (ID *id, bNodeTreeInterfaceSocket *socket, bContext *C, ui::Layout *layout) = nullptr
void(*) interface_init_socket (ID *id, const bNodeTreeInterfaceSocket *interface_socket, bNode *node, bNodeSocket *socket, StringRefNull data_path) = nullptr
void(*) interface_from_socket (ID *id, bNodeTreeInterfaceSocket *interface_socket, const bNode *node, const bNodeSocket *socket) = nullptr
ExtensionRNA ext_socket = {}
ExtensionRNA ext_interface = {}
eNodeSocketDatatype type = eNodeSocketDatatype(0)
int subtype = 0
bool use_link_limits_of_type = false
int input_link_limit = 0
int output_link_limit = 0
void(*) free_self (bNodeSocketType *stype) = nullptr
const CPPType * base_cpp_type = nullptr
SocketGetCPPValueFunction get_base_cpp_value = nullptr
SocketGetGeometryNodesCPPValueFunction get_geometry_nodes_cpp_value = nullptr
const SocketValueVariant * geometry_nodes_default_value = nullptr
SocketMakeNodesInputSrnaFunction make_geometry_nodes_input_srna = nullptr
SocketMakeNodesInputSrnaFunction make_compositor_nodes_input_srna = nullptr
SocketMakeNodesInputSrnaFunction make_scene_compositor_effect_input_srna = nullptr

Detailed Description

Defines a socket type.

Defines the appearance and behavior of a socket in the UI.

Definition at line 163 of file BKE_node.hh.

Member Data Documentation

◆ base_cpp_type

const CPPType* blender::bke::bNodeSocketType::base_cpp_type = nullptr

Definition at line 210 of file BKE_node.hh.

Referenced by blender::nodes::BundleItemValue::as_socket_value(), blender::nodes::build_implicit_conversion_lazy_function(), blender::nodes::inverse_eval::convert_single_socket_value(), blender::nodes::node_geo_viewer_cc::draw_generic_value_log(), blender::nodes::get_geometry_nodes_input_inference_values(), blender::nodes::implicitly_convert_socket_value(), blender::nodes::socket_usage_inference::infer_group_interface_inputs_usage(), blender::nodes::node_geo_index_switch_cc::LazyFunctionForIndexSwitchNode::LazyFunctionForIndexSwitchNode(), blender::nodes::node_geo_menu_switch_cc::LazyFunctionForMenuSwitchNode::LazyFunctionForMenuSwitchNode(), blender::nodes::node_geo_switch_cc::LazyFunctionForSwitchNode::LazyFunctionForSwitchNode(), blender::make_socket_type_bool(), blender::make_socket_type_bundle(), blender::make_socket_type_closure(), blender::make_socket_type_collection(), blender::make_socket_type_float(), blender::make_socket_type_font(), blender::make_socket_type_geometry(), blender::make_socket_type_image(), blender::make_socket_type_int(), blender::make_socket_type_int_vector(), blender::make_socket_type_mask(), blender::make_socket_type_material(), blender::make_socket_type_matrix(), blender::make_socket_type_menu(), blender::make_socket_type_object(), blender::make_socket_type_rgba(), blender::make_socket_type_rotation(), blender::make_socket_type_scene(), blender::make_socket_type_sound(), blender::make_socket_type_string(), blender::make_socket_type_text(), blender::make_socket_type_texture(), blender::make_socket_type_vector(), blender::bke::node_socket_move_default_value(), blender::nodes::LazyFunctionForGeometryNode::output_anonymous_attribute_field(), blender::bke::slow_socket_type_to_geo_nodes_base_cpp_type(), and blender::bke::bake::BakeValues::to_runtime_values().

◆ draw

◆ draw_color

◆ draw_color_simple

void(*) blender::bke::bNodeSocketType::draw_color_simple(const bNodeSocketType *socket_type, float *r_color) = nullptr

◆ ext_interface

ExtensionRNA blender::bke::bNodeSocketType::ext_interface = {}

Definition at line 195 of file BKE_node.hh.

Referenced by blender::make_standard_socket_type().

◆ ext_socket

◆ free_self

void(*) blender::bke::bNodeSocketType::free_self(bNodeSocketType *stype) = nullptr

◆ geometry_nodes_default_value

const SocketValueVariant* blender::bke::bNodeSocketType::geometry_nodes_default_value = nullptr

Definition at line 216 of file BKE_node.hh.

Referenced by blender::nodes::build_implicit_conversion_lazy_function(), blender::nodes::construct_socket_default_value(), blender::nodes::ensure_geometry_nodes_lazy_function_graph_impl(), blender::nodes::LazyFunctionForClosureZone::execute_impl(), blender::nodes::get_geometry_nodes_input_inference_values(), blender::nodes::ignore_zone_bsocket(), blender::nodes::init_socket_cpp_value(), blender::nodes::LazyFunctionForEvaluateClosureNode::initialize_execution_graph(), blender::nodes::LazyFunctionForEvaluateClosureNode::initialize_pass_through_graph(), blender::make_socket_type_bool(), blender::make_socket_type_bundle(), blender::make_socket_type_closure(), blender::make_socket_type_collection(), blender::make_socket_type_float(), blender::make_socket_type_font(), blender::make_socket_type_geometry(), blender::make_socket_type_image(), blender::make_socket_type_int(), blender::make_socket_type_mask(), blender::make_socket_type_material(), blender::make_socket_type_matrix(), blender::make_socket_type_menu(), blender::make_socket_type_object(), blender::make_socket_type_rgba(), blender::make_socket_type_rotation(), blender::make_socket_type_scene(), blender::make_socket_type_sound(), blender::make_socket_type_string(), blender::make_socket_type_text(), blender::make_socket_type_texture(), blender::make_socket_type_vector(), blender::nodes::node_geo_combine_bundle_cc::node_geo_exec(), blender::nodes::node_geo_separate_bundle_cc::node_geo_exec(), blender::nodes::node_geo_store_bundle_item_cc::node_geo_exec(), and blender::bke::bake::BakeValues::to_runtime_values().

◆ get_base_cpp_value

◆ get_geometry_nodes_cpp_value

◆ idname

◆ input_link_limit

int blender::bke::bNodeSocketType::input_link_limit = 0

◆ interface_draw

void(*) blender::bke::bNodeSocketType::interface_draw(ID *id, bNodeTreeInterfaceSocket *socket, bContext *C, ui::Layout *layout) = nullptr

◆ interface_from_socket

void(*) blender::bke::bNodeSocketType::interface_from_socket(ID *id, bNodeTreeInterfaceSocket *interface_socket, const bNode *node, const bNodeSocket *socket) = nullptr

◆ interface_init_socket

void(*) blender::bke::bNodeSocketType::interface_init_socket(ID *id, const bNodeTreeInterfaceSocket *interface_socket, bNode *node, bNodeSocket *socket, StringRefNull data_path) = nullptr

◆ label

◆ make_compositor_nodes_input_srna

◆ make_geometry_nodes_input_srna

◆ make_scene_compositor_effect_input_srna

◆ output_link_limit

int blender::bke::bNodeSocketType::output_link_limit = 0

◆ subtype

◆ subtype_label

std::string blender::bke::bNodeSocketType::subtype_label

Sub-type label.

Definition at line 169 of file BKE_node.hh.

Referenced by blender::make_standard_socket_type().

◆ type

eNodeSocketDatatype blender::bke::bNodeSocketType::type = eNodeSocketDatatype(0)

Definition at line 198 of file BKE_node.hh.

Referenced by blender::nodes::add_attribute_search_or_value_buttons(), blender::nodes::build_implicit_conversion_lazy_function(), blender::nodes::build_interface_socket_declaration(), blender::ed::object::check_geometry_node_group_sockets(), blender::composite_node_tree_socket_type_valid(), blender::seq::compositor_effect_nodes_input_usages(), blender::nodes::create_outputs_srna(), blender::ed::space_node::create_proxy_converter_node(), blender::ed::space_node::create_proxy_input_node(), blender::bke::create_socket_meta_data_properties(), blender::do_version_vector_sockets_dimensions(), blender::nodes::draw_error_message(), blender::nodes::draw_output_attributes_panel(), blender::nodes::draw_property_for_socket(), blender::ui::draw_property_for_socket(), blender::ED_init_standard_node_socket_type(), blender::ED_node_type_draw_color(), blender::bke::node_structure_type_inferencing::ensure_supported_structure_type(), blender::seq::CompositorEffectContext::evaluate(), blender::seq::CompositorModifierContext::evaluate(), blender::nodes::execute_geometry_nodes_on_geometry(), blender::nodes::find_automatic_inputs(), blender::bke::node_tree_reference_lifetimes::find_reference_sets(), blender::ed::space_node::gather_socket_link_operations(), blender::nodes::LazyFunctionForEvaluateClosureNode::generate_closure_compatibility_warnings(), blender::geometry_node_tree_socket_type_valid(), blender::bke::get_internal_link_type_priority(), blender::nodes::LinkedBundleSignatures::get_merged_signature(), blender::nodes::LinkedClosureSignatures::get_merged_signature(), blender::nodes::has_output_attribute(), blender::nodes::implicitly_convert_socket_value(), blender::nodes::init_socket_cpp_value(), blender::nodes::inline_shader_node_tree(), blender::nodes::input_has_attribute_toggle(), blender::is_layer_selection_field(), blender::is_same_socket_base_type(), blender::bke::node_interface::socket_types::is_supported_socket_type(), blender::nodes::node_geo_viewer_cc::log_viewer_attribute(), blender::bke::node_interface::socket_types::make_socket_data(), blender::make_socket_type_virtual(), blender::make_standard_socket_type(), blender::bke::node_foreach_working_space_color(), blender::nodes::node_geo_combine_bundle_cc::node_gather_link_searches(), blender::nodes::node_geo_evaluate_closure_cc::node_gather_link_searches(), blender::nodes::node_geo_separate_bundle_cc::node_gather_link_searches(), blender::nodes::node_geo_viewer_cc::node_gather_link_searches(), blender::nodes::node_geo_get_bundle_item_cc::node_geo_exec(), blender::nodes::node_geo_separate_bundle_cc::node_geo_exec(), blender::node_implicit_conversion_label(), blender::ed::space_node::viewer_linking::node_link_viewer_get_socket(), blender::bke::node_modify_socket_type(), blender::nodes::node_shader_volume_principled_cc::node_shader_gpu_volume_principled(), blender::bke::node_socket_set_typeinfo(), blender::ed::space_node::node_tree_interface_draw(), blender::shader_node_tree_socket_type_valid(), blender::nodes::socket_type_supports_default_input_type(), blender::ed::space_node::socket_types_need_conversion(), blender::standard_node_socket_interface_init_socket(), blender::ed::space_node::std_node_socket_color_simple_fn(), blender::ed::space_node::std_node_socket_draw(), blender::ed::space_node::std_node_socket_interface_draw(), blender::nodes::sync_sockets_closure(), blender::nodes::sync_sockets_closure_to_list(), blender::nodes::sync_sockets_combine_bundle(), blender::nodes::sync_sockets_evaluate_closure(), blender::nodes::sync_sockets_separate_bundle(), blender::texture_node_tree_socket_type_valid(), blender::ed::space_node::ui_node_link_items(), and blender::version_node_add_socket().

◆ use_link_limits_of_type

bool blender::bke::bNodeSocketType::use_link_limits_of_type = false

The documentation for this struct was generated from the following file: