|
Blender V4.3
|
#include <NOD_socket_declarations.hh>
Inherits blender::nodes::SocketDeclaration.
Public Types | |
| using | Builder = ColorBuilder |
Public Member Functions | |
#Color | |
| 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 | |
| virtual | ~SocketDeclaration ()=default |
| void | make_available (bNode &node) const |
| const CompositorInputRealizationOptions & | compositor_realization_options () const |
| int | compositor_domain_priority () const |
| bool | compositor_expects_single_value () const |
| Public Member Functions inherited from blender::nodes::ItemDeclaration | |
| virtual | ~ItemDeclaration ()=default |
Public Attributes | |
| ColorGeometry4f | default_value {0.8f, 0.8f, 0.8f, 1.0f} |
| friend | ColorBuilder |
| Public Attributes inherited from blender::nodes::SocketDeclaration | |
| std::string | name |
| std::string | short_label |
| std::string | identifier |
| std::string | description |
| std::string | translation_context |
| eNodeSocketInOut | in_out |
| eNodeSocketDatatype | socket_type |
| bool | hide_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 |
| InputSocketFieldType | input_field_type = InputSocketFieldType::None |
| OutputFieldDependency | output_field_dependency |
| std::unique_ptr< ImplicitInputValueFn > | implicit_input_fn |
| std::unique_ptr< SocketNameRNA > | socket_name_rna |
| friend | NodeDeclarationBuilder |
Static Public Attributes | |
| static constexpr eNodeSocketDatatype | static_socket_type = SOCK_RGBA |
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 |
Definition at line 129 of file NOD_socket_declarations.hh.
Definition at line 137 of file NOD_socket_declarations.hh.
|
overridevirtual |
Implements blender::nodes::SocketDeclaration.
Definition at line 339 of file node_socket_declarations.cc.
References copy_v4_v4(), bNodeSocket::default_value, blender::nodes::SocketDeclaration::identifier, blender::nodes::SocketDeclaration::in_out, blender::bke::node_add_static_socket(), PROP_NONE, blender::nodes::SocketDeclaration::set_common_flags(), SOCK_RGBA, and bNodeSocketValueRGBA::value.
Referenced by update_or_build().
|
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 365 of file node_socket_declarations.cc.
References blender::nodes::decl::basic_types_can_connect(), and blender::nodes::decl::sockets_can_connect().
|
overridevirtual |
Implements blender::nodes::SocketDeclaration.
Definition at line 354 of file node_socket_declarations.cc.
References blender::nodes::SocketDeclaration::matches_common_data(), SOCK_RGBA, and bNodeSocket::type.
|
overridevirtual |
Reimplemented from blender::nodes::SocketDeclaration.
Definition at line 373 of file node_socket_declarations.cc.
References BLI_assert, build(), bNodeSocket::in_out, blender::nodes::SocketDeclaration::set_common_flags(), SOCK_RGBA, and bNodeSocket::type.
| friend blender::nodes::decl::Color::ColorBuilder |
Definition at line 135 of file NOD_socket_declarations.hh.
| ColorGeometry4f blender::nodes::decl::Color::default_value {0.8f, 0.8f, 0.8f, 1.0f} |
Definition at line 133 of file NOD_socket_declarations.hh.
Referenced by blender::nodes::node_composite_alpha_over_cc::cmp_node_alphaover_declare(), blender::nodes::node_composite_antialiasing_cc::cmp_node_antialiasing_declare(), blender::nodes::node_composite_bilateralblur_cc::cmp_node_bilateralblur_declare(), blender::nodes::node_composite_blur_cc::cmp_node_blur_declare(), blender::nodes::node_composite_channel_matte_cc::cmp_node_channel_matte_declare(), blender::nodes::node_composite_chroma_matte_cc::cmp_node_chroma_matte_declare(), blender::nodes::node_composite_color_matte_cc::cmp_node_color_matte_declare(), blender::nodes::node_composite_color_spill_cc::cmp_node_color_spill_declare(), blender::nodes::node_composite_colorbalance_cc::cmp_node_colorbalance_declare(), blender::nodes::node_composite_colorcorrection_cc::cmp_node_colorcorrection_declare(), blender::nodes::node_composite_convert_color_space_cc::CMP_NODE_CONVERT_COLOR_SPACE_declare(), blender::nodes::node_composite_crop_cc::cmp_node_crop_declare(), blender::nodes::node_composite_defocus_cc::cmp_node_defocus_declare(), blender::nodes::node_composite_denoise_cc::cmp_node_denoise_declare(), blender::nodes::node_composite_diff_matte_cc::cmp_node_diff_matte_declare(), blender::nodes::node_composite_directionalblur_cc::cmp_node_directional_blur_declare(), blender::nodes::node_composite_distance_matte_cc::cmp_node_distance_matte_declare(), blender::nodes::node_composite_glare_cc::cmp_node_glare_declare(), blender::nodes::node_composite_keying_cc::cmp_node_keying_declare(), blender::nodes::node_composite_kuwahara_cc::cmp_node_kuwahara_declare(), blender::nodes::node_composite_lensdist_cc::cmp_node_lensdist_declare(), blender::nodes::node_composite_luma_matte_cc::cmp_node_luma_matte_declare(), blender::nodes::node_composite_separate_color_cc::cmp_node_separate_color_declare(), blender::nodes::node_composite_setalpha_cc::cmp_node_setalpha_declare(), blender::nodes::node_composite_sunbeams_cc::cmp_node_sunbeams_declare(), blender::nodes::node_composite_tonemap_cc::cmp_node_tonemap_declare(), blender::nodes::node_composite_translate_cc::cmp_node_translate_declare(), blender::nodes::node_composite_vec_blur_cc::cmp_node_vec_blur_declare(), blender::nodes::node_fn_separate_color_cc::node_declare(), blender::nodes::node_sh_mix_cc::sh_node_mix_declare(), and blender::nodes::node_shader_separate_color_cc::sh_node_sepcolor_declare().
|
staticconstexpr |
Definition at line 131 of file NOD_socket_declarations.hh.