Blender V5.3
blender::nodes::DeclarationListBuilder Class Reference

#include <NOD_node_declaration.hh>

Inherited by blender::nodes::NodeDeclarationBuilder, and blender::nodes::PanelDeclarationBuilder.

Public Member Functions

 DeclarationListBuilder (NodeDeclarationBuilder &node_decl_builder, Vector< ItemDeclaration * > &items)
BaseSocketDeclarationBuilder & add_input (eNodeSocketDatatype socket_type, UString name, UString identifier=""_ustr)
BaseSocketDeclarationBuilder & add_input (eCustomDataType data_type, UString name, UString identifier=""_ustr)
BaseSocketDeclarationBuilder & add_output (eNodeSocketDatatype socket_type, UString name, UString identifier=""_ustr)
BaseSocketDeclarationBuilder & add_output (eCustomDataType data_type, UString name, UString identifier=""_ustr)
PanelDeclarationBuilder & add_panel (UString name, int identifier=-1)
void add_separator ()
void add_default_layout ()
void add_layout (std::function< void(ui::Layout &, bContext *, PointerRNA *)> draw)
#DeclarationListBuilder Inline Methods
template<typename DeclType>
DeclType::Builder & add_socket (UString name, UString identifier, eNodeSocketInOut in_out)
template<typename DeclType>
DeclType::Builder & add_input (UString name, UString identifier=""_ustr)
template<typename DeclType>
DeclType::Builder & add_output (UString name, UString identifier=""_ustr)

Public Attributes

NodeDeclarationBuilder & node_decl_builder
Vector< ItemDeclaration * > & items
PanelDeclaration * parent_panel_decl = nullptr

Detailed Description

This is a base class for NodeDeclarationBuilder and PanelDeclarationBuilder. It unifies the behavior of adding sockets and other items to the root node and to panels.

Definition at line 540 of file NOD_node_declaration.hh.

Constructor & Destructor Documentation

◆ DeclarationListBuilder()

blender::nodes::DeclarationListBuilder::DeclarationListBuilder ( NodeDeclarationBuilder & node_decl_builder,
Vector< ItemDeclaration * > & items )
inline

Member Function Documentation

◆ add_default_layout()

void blender::nodes::DeclarationListBuilder::add_default_layout ( )

◆ add_input() [1/3]

BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_input ( eCustomDataType data_type,
UString name,
UString identifier = ""_ustr )

◆ add_input() [2/3]

BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_input ( eNodeSocketDatatype socket_type,
UString name,
UString identifier = ""_ustr )

◆ add_input() [3/3]

template<typename DeclType>
DeclType::Builder & blender::nodes::DeclarationListBuilder::add_input ( UString name,
UString identifier = ""_ustr )
inline

Definition at line 739 of file NOD_node_declaration.hh.

References add_socket(), and blender::SOCK_IN.

Referenced by add_input(), add_input(), blender::nodes::node_composite_color_balance_cc::node_declare(), blender::nodes::node_composite_color_correction_cc::node_declare(), blender::nodes::node_composite_color_spill_cc::node_declare(), blender::nodes::node_composite_corner_pin_cc::node_declare(), blender::nodes::node_composite_directional_blur_cc::node_declare(), blender::nodes::node_composite_displace_cc::node_declare(), blender::nodes::node_composite_glare_cc::node_declare(), blender::nodes::node_composite_keying_cc::node_declare(), blender::nodes::node_composite_map_uv_cc::node_declare(), blender::nodes::node_composite_mask_cc::node_declare(), blender::nodes::node_composite_plane_track_deform_cc::node_declare(), blender::nodes::node_composite_rotate_cc::node_declare(), blender::nodes::node_composite_scale_cc::node_declare(), blender::nodes::node_composite_stabilize_2d_cc::node_declare(), blender::nodes::node_composite_string_to_image_cc::node_declare(), blender::nodes::node_composite_transform_cc::node_declare(), blender::nodes::node_composite_translate_cc::node_declare(), blender::nodes::node_geo_cube_grid_topology_cc::node_declare(), blender::nodes::node_shader_bsdf_glass_cc::node_declare(), blender::nodes::node_shader_bsdf_metallic_cc::node_declare(), blender::nodes::node_shader_bsdf_principled_cc::node_declare(), and blender::nodes::node_shader_volume_coefficients_cc::node_declare().

◆ add_layout()

◆ add_output() [1/3]

BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_output ( eCustomDataType data_type,
UString name,
UString identifier = ""_ustr )

◆ add_output() [2/3]

BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_output ( eNodeSocketDatatype socket_type,
UString name,
UString identifier = ""_ustr )

◆ add_output() [3/3]

template<typename DeclType>
DeclType::Builder & blender::nodes::DeclarationListBuilder::add_output ( UString name,
UString identifier = ""_ustr )
inline

◆ add_panel()

◆ add_separator()

void blender::nodes::DeclarationListBuilder::add_separator ( )

◆ add_socket()

Member Data Documentation

◆ items

◆ node_decl_builder

NodeDeclarationBuilder& blender::nodes::DeclarationListBuilder::node_decl_builder

◆ parent_panel_decl

PanelDeclaration* blender::nodes::DeclarationListBuilder::parent_panel_decl = nullptr

Definition at line 544 of file NOD_node_declaration.hh.

Referenced by add_panel().


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