Blender V5.3
blender::nodes::decl::Closure Class Reference

#include <NOD_socket_declarations.hh>

Inherits blender::nodes::SocketDeclaration.

Public Types

using Builder = ClosureBuilder

Public Member Functions

#Closure
 Closure ()
 ~Closure () override
bNodeSocket & build (bNodeTree &ntree, bNode &node) const override
bool matches (const bNodeSocket &socket) const override
bNodeSocket & update_or_build (bNodeTree &ntree, bNode &node, bNodeSocket &socket) const override
bool can_connect (const bNodeSocket &socket) const override
Public Member Functions inherited from blender::nodes::SocketDeclaration
 ~SocketDeclaration () override=default
void make_available (bNode &node) const
const CompositorInputRealizationMode & compositor_realization_mode () const
int compositor_domain_priority () const
Public Member Functions inherited from blender::nodes::ItemDeclaration
virtual ~ItemDeclaration ()=default

Public Attributes

std::unique_ptr< std::function< ClosureSignature(const bNode &)> > create_signature
friend ClosureBuilder
Public Attributes inherited from blender::nodes::SocketDeclaration
UString name
UString short_label
UString identifier
std::string description
std::optional< std::string > translation_context
eNodeSocketInOut in_out
eNodeSocketDatatype socket_type
bool optional_label = false
bool hide_value = false
bool compact = false
bool is_multi_input = false
bool no_mute_links = false
bool is_available = true
bool is_attribute_name = false
bool is_default_link_socket = false
bool align_with_previous_socket = false
bool is_panel_toggle = false
bool is_layer_name = false
bool is_volume_grid_name = false
bool is_anonymous_attribute_output = false
int index = -1
OutputStructureTypeDependency structure_type_output_dependency
StructureType structure_type = StructureType::Single
NodeDefaultInputType default_input_type = NodeDefaultInputType::NODE_DEFAULT_INPUT_VALUE
std::unique_ptr< SocketNameRNA > socket_name_rna
std::unique_ptr< CustomSocketDrawFn > custom_draw_fn
std::unique_ptr< CustomSocketLabelFn > label_fn
std::unique_ptr< SocketUsageInferenceFn > usage_inference_fn
friend NodeDeclarationBuilder
Public Attributes inherited from blender::nodes::ItemDeclaration
const PanelDeclaration * parent = nullptr

Static Public Attributes

static constexpr eNodeSocketDatatype static_socket_type = SOCK_CLOSURE

Additional Inherited Members

Protected Member Functions inherited from blender::nodes::SocketDeclaration
void set_common_flags (bNodeSocket &socket) const
bool matches_common_data (const bNodeSocket &socket) const

Detailed Description

Definition at line 344 of file NOD_socket_declarations.hh.

Member Typedef Documentation

◆ Builder

Constructor & Destructor Documentation

◆ Closure()

Closure::Closure ( )
default

◆ ~Closure()

Closure::~Closure ( )
overridedefault

Member Function Documentation

◆ build()

◆ can_connect()

bool Closure::can_connect ( const bNodeSocket & socket) const
overridevirtual

Determine if a new socket described by this declaration could have a valid connection the other socket.

Implements blender::nodes::SocketDeclaration.

Definition at line 870 of file node_socket_declarations.cc.

References ELEM, blender::SOCK_CLOSURE, blender::nodes::decl::sockets_can_connect(), and blender::bNodeSocket::type.

◆ matches()

bool Closure::matches ( const bNodeSocket & socket) const
overridevirtual

◆ update_or_build()

Member Data Documentation

◆ ClosureBuilder

friend blender::nodes::decl::Closure::ClosureBuilder

Definition at line 353 of file NOD_socket_declarations.hh.

◆ create_signature

std::unique_ptr<std::function<ClosureSignature(const bNode &)> > blender::nodes::decl::Closure::create_signature

Definition at line 346 of file NOD_socket_declarations.hh.

◆ static_socket_type

eNodeSocketDatatype blender::nodes::decl::Closure::static_socket_type = SOCK_CLOSURE
staticconstexpr

Definition at line 351 of file NOD_socket_declarations.hh.


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