Blender V5.0
blender::nodes::socket_usage_inference::SocketUsageInferencer Class Reference

#include <NOD_socket_usage_inference.hh>

Public Member Functions

 SocketUsageInferencer (const bNodeTree &tree, ResourceScope &scope, SocketValueInferencer &value_inferencer, bke::ComputeContextCache &compute_context_cache, bool ignore_top_level_node_muting=false)
bool is_socket_used (const SocketInContext &socket)
bool is_group_input_used (int input_i)
bool is_disabled_output (const SocketInContext &socket)
bool is_disabled_group_output (int output_i)
void mark_top_level_node_outputs_as_used ()

Friends

class InputSocketUsageParams

Detailed Description

Can detect which sockets are used or disabled.

Definition at line 29 of file NOD_socket_usage_inference.hh.

Constructor & Destructor Documentation

◆ SocketUsageInferencer()

blender::nodes::socket_usage_inference::SocketUsageInferencer::SocketUsageInferencer ( const bNodeTree & tree,
ResourceScope & scope,
SocketValueInferencer & value_inferencer,
bke::ComputeContextCache & compute_context_cache,
bool ignore_top_level_node_muting = false )

Definition at line 743 of file socket_usage_inference.cc.

References tree.

Member Function Documentation

◆ is_disabled_group_output()

bool blender::nodes::socket_usage_inference::SocketUsageInferencer::is_disabled_group_output ( int output_i)

◆ is_disabled_output()

bool blender::nodes::socket_usage_inference::SocketUsageInferencer::is_disabled_output ( const SocketInContext & socket)

Definition at line 1046 of file socket_usage_inference.cc.

◆ is_group_input_used()

bool blender::nodes::socket_usage_inference::SocketUsageInferencer::is_group_input_used ( int input_i)

◆ is_socket_used()

bool blender::nodes::socket_usage_inference::SocketUsageInferencer::is_socket_used ( const SocketInContext & socket)

◆ mark_top_level_node_outputs_as_used()

void blender::nodes::socket_usage_inference::SocketUsageInferencer::mark_top_level_node_outputs_as_used ( )

This can be used when detecting the usage of all input sockets in a node tree, instead of just the inputs of the group as a whole.

Definition at line 1026 of file socket_usage_inference.cc.

Referenced by blender::nodes::socket_usage_inference::infer_all_sockets_usage().

◆ InputSocketUsageParams

friend class InputSocketUsageParams
friend

Definition at line 33 of file NOD_socket_usage_inference.hh.

References InputSocketUsageParams, and tree.

Referenced by InputSocketUsageParams.


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