Blender V5.3
blender::bke::bNodeSocketRuntime Class Reference

#include <BKE_node_runtime.hh>

Inherits blender::blender::NonCopyable, and blender::blender::NonMovable.

Public Attributes

const nodes::SocketDeclaration * declaration = nullptr
UString identifier_ustr
uint32_t changed_flag = 0
short total_inputs = 0
nodes::StructureType inferred_structure_type = nodes::StructureType::Dynamic
float2 location
Vector< bNodeLink * > directly_linked_links
Vector< bNodeSocket * > directly_linked_sockets
Vector< bNodeSocket * > logically_linked_sockets
Vector< bNodeSocket * > logically_linked_skipped_sockets
bNode * owner_node = nullptr
bNodeSocket * internal_link_input = nullptr
int index_in_node = -1
int index_in_all_sockets = -1
int index_in_inout_sockets = -1

Detailed Description

Run-time data for every socket. This should only contain data that is somewhat persistent (i.e. data that lives longer than a single depsgraph evaluation + redraw). Data that's only used in smaller scopes should generally be stored in separate arrays and/or maps.

Definition at line 279 of file BKE_node_runtime.hh.

Member Data Documentation

◆ changed_flag

uint32_t blender::bke::bNodeSocketRuntime::changed_flag = 0

eNodeTreeChangedFlag.

Definition at line 292 of file BKE_node_runtime.hh.

Referenced by blender::add_socket_tag().

◆ declaration

◆ directly_linked_links

◆ directly_linked_sockets

Vector<bNodeSocket *> blender::bke::bNodeSocketRuntime::directly_linked_sockets

◆ identifier_ustr

◆ index_in_all_sockets

int blender::bke::bNodeSocketRuntime::index_in_all_sockets = -1

◆ index_in_inout_sockets

int blender::bke::bNodeSocketRuntime::index_in_inout_sockets = -1

◆ index_in_node

int blender::bke::bNodeSocketRuntime::index_in_node = -1

◆ inferred_structure_type

nodes::StructureType blender::bke::bNodeSocketRuntime::inferred_structure_type = nodes::StructureType::Dynamic

Inferred structure type of the socket. This is not necessarily the same as the structure type that is displayed in the UI. For example, it would be #StructureType::Single for an unlinked input of the Math node, but the socket is displayed as #StructureType::Dynamic.

This is stored on the socket instead of as array in bNodeTreeRuntime because the data needs to stay attached to the socket even when the node tree changes. This is used when e.g. syncing a newly created Separate Bundle node to an existing Combine Bundle node.

Definition at line 309 of file BKE_node_runtime.hh.

Referenced by blender::nodes::get_structure_type_for_bundle_signature(), blender::nodes::node_geo_grid_deactivate_voxels::node_gather_link_search_ops(), blender::nodes::node_geo_grid_dilate_erode_cc::node_gather_link_search_ops(), blender::nodes::node_geo_grid_info_cc::node_gather_link_search_ops(), blender::nodes::node_geo_grid_mean_cc::node_gather_link_search_ops(), blender::nodes::node_geo_grid_median_cc::node_gather_link_search_ops(), blender::nodes::node_geo_grid_to_points_cc::node_gather_link_search_ops(), blender::nodes::node_geo_set_grid_background::node_gather_link_search_ops(), blender::nodes::node_geo_set_grid_transform::node_gather_link_search_ops(), and blender::bke::node_structure_type_inferencing::update_structure_type_interface().

◆ internal_link_input

◆ location

◆ logically_linked_skipped_sockets

Vector<bNodeSocket *> blender::bke::bNodeSocketRuntime::logically_linked_skipped_sockets

Definition at line 322 of file BKE_node_runtime.hh.

◆ logically_linked_sockets

Vector<bNodeSocket *> blender::bke::bNodeSocketRuntime::logically_linked_sockets

Definition at line 321 of file BKE_node_runtime.hh.

◆ owner_node

◆ total_inputs

short blender::bke::bNodeSocketRuntime::total_inputs = 0

Runtime-only cache of the number of input links, for multi-input sockets, including dragged node links that aren't actually in the tree.

Definition at line 298 of file BKE_node_runtime.hh.

Referenced by blender::ed::space_node::count_multi_input_socket_links(), blender::ed::space_node::node_socket_calculate_height(), blender::ed::space_node::node_update_basis_socket(), and blender::ed::space_node::socket_link_connection_location().


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