|
Blender V4.3
|
#include <NOD_socket_declarations.hh>
Inherits blender::nodes::SocketDeclaration.
Public Types | |
| using | Builder = VectorBuilder |
Public Member Functions | |
#Vector | |
| 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 | |
| float3 | default_value = {0, 0, 0} |
| float | soft_min_value = -FLT_MAX |
| float | soft_max_value = FLT_MAX |
| PropertySubType | subtype = PROP_NONE |
| friend | VectorBuilder |
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_VECTOR |
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 77 of file NOD_socket_declarations.hh.
Definition at line 88 of file NOD_socket_declarations.hh.
|
overridevirtual |
Implements blender::nodes::SocketDeclaration.
Definition at line 216 of file node_socket_declarations.cc.
References copy_v3_v3(), bNodeSocket::default_value, blender::nodes::SocketDeclaration::in_out, bNodeSocketValueVector::max, blender::bke::node_add_static_socket(), blender::nodes::SocketDeclaration::set_common_flags(), SOCK_VECTOR, soft_max_value, soft_min_value, and subtype.
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 255 of file node_socket_declarations.cc.
References blender::nodes::decl::basic_types_can_connect(), SOCK_ROTATION, blender::nodes::decl::sockets_can_connect(), and bNodeSocket::type.
|
overridevirtual |
Implements blender::nodes::SocketDeclaration.
Definition at line 233 of file node_socket_declarations.cc.
References bNodeSocket::default_value, blender::nodes::SocketDeclaration::matches_common_data(), SOCK_VECTOR, bNodeSocket::type, and bNodeSocket::typeinfo.
|
overridevirtual |
Reimplemented from blender::nodes::SocketDeclaration.
Definition at line 266 of file node_socket_declarations.cc.
References BLI_assert, build(), bNodeSocket::default_value, bNodeSocket::in_out, bNodeSocketValueVector::max, bNodeSocketValueVector::min, blender::nodes::decl::modify_subtype_except_for_storage(), blender::nodes::SocketDeclaration::set_common_flags(), SOCK_VECTOR, soft_max_value, soft_min_value, subtype, bNodeSocket::type, and bNodeSocket::typeinfo.
| float3 blender::nodes::decl::Vector::default_value = {0, 0, 0} |
Definition at line 81 of file NOD_socket_declarations.hh.
Referenced by blender::nodes::node_geo_scale_instances_cc::node_declare(), and blender::nodes::node_shader_vector_rotate_cc::sh_node_vector_rotate_declare().
Definition at line 83 of file NOD_socket_declarations.hh.
Referenced by build(), and update_or_build().
Definition at line 82 of file NOD_socket_declarations.hh.
Referenced by build(), and update_or_build().
|
staticconstexpr |
Definition at line 79 of file NOD_socket_declarations.hh.
| PropertySubType blender::nodes::decl::Vector::subtype = PROP_NONE |
Definition at line 84 of file NOD_socket_declarations.hh.
Referenced by build(), blender::nodes::node_composite_displace_cc::cmp_node_displace_declare(), blender::nodes::node_composite_normal_cc::cmp_node_normal_declare(), blender::nodes::node_composite_texture_cc::cmp_node_texture_declare(), blender::nodes::node_composite_vec_blur_cc::cmp_node_vec_blur_declare(), blender::nodes::node_geo_distribute_points_in_grid_cc::node_declare(), blender::nodes::node_geo_distribute_points_in_volume_cc::node_declare(), blender::nodes::node_geo_mesh_primitive_cube_cc::node_declare(), blender::nodes::node_shader_mapping_cc::node_declare(), blender::nodes::node_shader_normal_cc::node_declare(), and update_or_build().
| friend blender::nodes::decl::Vector::VectorBuilder |
Definition at line 86 of file NOD_socket_declarations.hh.