Blender V4.3
blender::nodes::SocketDeclarationBuilder< SocketDecl > Class Template Reference

#include <NOD_node_declaration.hh>

Inherits blender::nodes::BaseSocketDeclarationBuilder.

Protected Types

using Self = typename SocketDecl::Builder
 

Protected Attributes

SocketDecl * decl_
 
- Protected Attributes inherited from blender::nodes::BaseSocketDeclarationBuilder
int index_ = -1
 
bool reference_pass_all_ = false
 
bool field_on_all_ = false
 
bool propagate_from_all_ = false
 
NodeDeclarationBuildernode_decl_builder_ = nullptr
 
SocketDeclarationdecl_base_ = nullptr
 

Friends

class NodeDeclarationBuilder
 

Additional Inherited Members

- Public Member Functions inherited from blender::nodes::BaseSocketDeclarationBuilder
virtual ~BaseSocketDeclarationBuilder ()=default
 
BaseSocketDeclarationBuilderhide_label (bool value=true)
 
BaseSocketDeclarationBuilderhide_value (bool value=true)
 
BaseSocketDeclarationBuildermulti_input (bool value=true)
 
BaseSocketDeclarationBuildershort_label (std::string value="")
 
BaseSocketDeclarationBuilderdescription (std::string value="")
 
BaseSocketDeclarationBuildertranslation_context (std::string value=BLT_I18NCONTEXT_DEFAULT)
 
BaseSocketDeclarationBuilderno_muted_links (bool value=true)
 
BaseSocketDeclarationBuilderavailable (bool value=true)
 
BaseSocketDeclarationBuilderis_attribute_name (bool value=true)
 
BaseSocketDeclarationBuilderis_default_link_socket (bool value=true)
 
BaseSocketDeclarationBuildersupports_field ()
 
BaseSocketDeclarationBuilderfield_on_all ()
 
BaseSocketDeclarationBuilderfield_source ()
 
BaseSocketDeclarationBuilderimplicit_field (ImplicitInputValueFn fn)
 
BaseSocketDeclarationBuilderimplicit_field_on_all (ImplicitInputValueFn fn)
 
BaseSocketDeclarationBuilderimplicit_field_on (ImplicitInputValueFn fn, Span< int > input_indices)
 
BaseSocketDeclarationBuilderfield_on (Span< int > indices)
 
BaseSocketDeclarationBuilderdependent_field ()
 
BaseSocketDeclarationBuilderdependent_field (Vector< int > input_dependencies)
 
BaseSocketDeclarationBuilderfield_source_reference_all ()
 
BaseSocketDeclarationBuilderreference_pass (Span< int > input_indices)
 
BaseSocketDeclarationBuilderreference_pass_all ()
 
BaseSocketDeclarationBuilderpropagate_all ()
 
BaseSocketDeclarationBuildercompositor_realization_options (CompositorInputRealizationOptions value)
 
BaseSocketDeclarationBuildercompositor_domain_priority (int priority)
 
BaseSocketDeclarationBuildercompositor_expects_single_value (bool value=true)
 
BaseSocketDeclarationBuildermake_available (std::function< void(bNode &)> fn)
 
BaseSocketDeclarationBuilderalign_with_previous (bool value=true)
 
BaseSocketDeclarationBuildersocket_name_ptr (PointerRNA ptr, StringRef property_name)
 
BaseSocketDeclarationBuildersocket_name_ptr (const ID *id, const StructRNA *srna, const void *data, StringRef property_name)
 
int index () const
 
bool is_input () const
 
bool is_output () const
 

Detailed Description

template<typename SocketDecl>
class blender::nodes::SocketDeclarationBuilder< SocketDecl >

Wraps a #SocketDeclaration and provides methods to set it up correctly. This is separate from #SocketDeclaration, because it allows separating the API used by nodes to declare themselves from how the declaration is stored internally.

Definition at line 400 of file NOD_node_declaration.hh.

Member Typedef Documentation

◆ Self

template<typename SocketDecl >
using blender::nodes::SocketDeclarationBuilder< SocketDecl >::Self = typename SocketDecl::Builder
protected

Definition at line 402 of file NOD_node_declaration.hh.

Friends And Related Symbol Documentation

◆ NodeDeclarationBuilder

template<typename SocketDecl >
friend class NodeDeclarationBuilder
friend

Definition at line 406 of file NOD_node_declaration.hh.

Member Data Documentation

◆ decl_

template<typename SocketDecl >
SocketDecl* blender::nodes::SocketDeclarationBuilder< SocketDecl >::decl_
protected

Definition at line 404 of file NOD_node_declaration.hh.


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