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

#include <NOD_socket_declarations.hh>

Inherits blender::nodes::SocketDeclaration.

Public Types

using Builder = IntBuilder

Public Member Functions

#Int
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

int default_value = 0
int soft_min_value = INT32_MIN
int soft_max_value = INT32_MAX
PropertySubType subtype = PROP_NONE
friend IntBuilder
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_INT

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 48 of file NOD_socket_declarations.hh.

Member Typedef Documentation

◆ Builder

Member Function Documentation

◆ build()

◆ can_connect()

bool blender::nodes::decl::Int::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 193 of file node_socket_declarations.cc.

References blender::nodes::decl::basic_types_can_connect(), and blender::nodes::decl::sockets_can_connect().

◆ matches()

◆ update_or_build()

Member Data Documentation

◆ default_value

int blender::nodes::decl::Int::default_value = 0

Definition at line 52 of file NOD_socket_declarations.hh.

Referenced by build(), blender::nodes::build_interface_socket_declaration(), blender::nodes::node_composite_dilate_cc::cmp_node_dilate_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_planetrackdeform_cc::cmp_node_planetrackdeform_declare(), blender::nodes::node_fn_random_value_cc::node_declare(), blender::nodes::node_fn_slice_string_cc::node_declare(), blender::nodes::node_geo_curve_endpoint_selection_cc::node_declare(), blender::nodes::node_geo_curve_fillet_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_resample_cc::node_declare(), blender::nodes::node_geo_curve_to_points_cc::node_declare(), blender::nodes::node_geo_duplicate_elements_cc::node_declare(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_declare(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_declare(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_declare(), blender::nodes::node_geo_mesh_primitive_line_cc::node_declare(), blender::nodes::node_geo_repeat_cc::repeat_input_node::node_declare(), blender::nodes::node_geo_set_spline_resolution_cc::node_declare(), and blender::nodes::node_geo_subdivision_surface_cc::node_declare().

◆ IntBuilder

friend blender::nodes::decl::Int::IntBuilder

Definition at line 57 of file NOD_socket_declarations.hh.

◆ soft_max_value

int blender::nodes::decl::Int::soft_max_value = INT32_MAX

Definition at line 54 of file NOD_socket_declarations.hh.

Referenced by build(), and update_or_build().

◆ soft_min_value

int blender::nodes::decl::Int::soft_min_value = INT32_MIN

Definition at line 53 of file NOD_socket_declarations.hh.

Referenced by build(), and update_or_build().

◆ static_socket_type

eNodeSocketDatatype blender::nodes::decl::Int::static_socket_type = SOCK_INT
staticconstexpr

Definition at line 50 of file NOD_socket_declarations.hh.

◆ subtype


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