Blender V4.5
blender::nodes::decl::Vector Class Reference

#include <NOD_socket_declarations.hh>

Inherits blender::nodes::SocketDeclaration.

Public Types

using Builder = VectorBuilder

Public Member Functions

#Vector
bNodeSocketbuild (bNodeTree &ntree, bNode &node) const override
bool matches (const bNodeSocket &socket) const override
bNodeSocketupdate_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 CompositorInputRealizationModecompositor_realization_mode () 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

float4 default_value = {0, 0, 0, 0}
float soft_min_value = -FLT_MAX
float soft_max_value = FLT_MAX
int dimensions = 3
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::optional< 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
bool is_panel_toggle = false
bool is_layer_name = false
int index = -1
InputSocketFieldType input_field_type = InputSocketFieldType::None
OutputFieldDependency output_field_dependency
StructureType structure_type = StructureType::Single
NodeDefaultInputType default_input_type = NodeDefaultInputType::NODE_DEFAULT_INPUT_VALUE
std::unique_ptr< SocketNameRNAsocket_name_rna
std::unique_ptr< CustomSocketDrawFncustom_draw_fn
friend NodeDeclarationBuilder
Public Attributes inherited from blender::nodes::ItemDeclaration
const PanelDeclarationparent = nullptr

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

Detailed Description

Definition at line 77 of file NOD_socket_declarations.hh.

Member Typedef Documentation

◆ Builder

using blender::nodes::decl::Vector::Builder = VectorBuilder

Definition at line 89 of file NOD_socket_declarations.hh.

Member Function Documentation

◆ build()

◆ can_connect()

bool blender::nodes::decl::Vector::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 264 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.

◆ matches()

◆ update_or_build()

Member Data Documentation

◆ default_value

float4 blender::nodes::decl::Vector::default_value = {0, 0, 0, 0}

Definition at line 81 of file NOD_socket_declarations.hh.

Referenced by build(), blender::nodes::build_interface_socket_declaration(), blender::nodes::node_composite_denoise_cc::cmp_node_denoise_declare(), blender::nodes::node_composite_displace_cc::cmp_node_displace_declare(), blender::nodes::node_composite_vec_blur_cc::cmp_node_vec_blur_declare(), blender::nodes::node_fn_random_value_cc::node_declare(), blender::nodes::node_geo_curve_primitive_arc_cc::node_declare(), blender::nodes::node_geo_curve_primitive_bezier_segment_cc::node_declare(), blender::nodes::node_geo_curve_primitive_circle_cc::node_declare(), blender::nodes::node_geo_curve_primitive_line_cc::node_declare(), blender::nodes::node_geo_curve_primitive_quadrilateral_cc::node_declare(), blender::nodes::node_geo_distribute_points_in_volume_cc::node_declare(), blender::nodes::node_geo_gizmo_dial_cc::node_declare(), blender::nodes::node_geo_gizmo_linear_cc::node_declare(), blender::nodes::node_geo_mesh_primitive_line_cc::node_declare(), blender::nodes::node_geo_points_cc::node_declare(), blender::nodes::node_geo_raycast_cc::node_declare(), blender::nodes::node_geo_scale_instances_cc::node_declare(), blender::nodes::node_geo_set_curve_handles_cc::node_declare(), blender::nodes::node_shader_map_range_cc::sh_node_map_range_declare(), blender::nodes::node_sh_mix_cc::sh_node_mix_declare(), blender::nodes::node_shader_tex_gabor_cc::sh_node_tex_gabor_declare(), and blender::nodes::node_shader_vector_rotate_cc::sh_node_vector_rotate_declare().

◆ dimensions

◆ soft_max_value

float blender::nodes::decl::Vector::soft_max_value = FLT_MAX

Definition at line 83 of file NOD_socket_declarations.hh.

Referenced by build(), and update_or_build().

◆ soft_min_value

float blender::nodes::decl::Vector::soft_min_value = -FLT_MAX

Definition at line 82 of file NOD_socket_declarations.hh.

Referenced by build(), and update_or_build().

◆ static_socket_type

eNodeSocketDatatype blender::nodes::decl::Vector::static_socket_type = SOCK_VECTOR
staticconstexpr

Definition at line 79 of file NOD_socket_declarations.hh.

◆ subtype

◆ VectorBuilder

friend blender::nodes::decl::Vector::VectorBuilder

Definition at line 87 of file NOD_socket_declarations.hh.


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