|
Blender V5.0
|
#include <NOD_node_declaration.hh>
Inherited by blender::nodes::NodeDeclarationBuilder, and blender::nodes::PanelDeclarationBuilder.
Public Attributes | |
| NodeDeclarationBuilder & | node_decl_builder |
| Vector< ItemDeclaration * > & | items |
| PanelDeclaration * | parent_panel_decl = nullptr |
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 555 of file NOD_node_declaration.hh.
|
inline |
Definition at line 561 of file NOD_node_declaration.hh.
References items, and node_decl_builder.
Referenced by blender::nodes::PanelDeclarationBuilder::PanelDeclarationBuilder().
| void blender::nodes::DeclarationListBuilder::add_default_layout | ( | ) |
Definition at line 434 of file node_declaration.cc.
References add_layout(), BLI_assert, C, blender::nodes::LayoutDeclaration::is_default, items, node_decl_builder, ptr, and bNode::typeinfo.
| BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_input | ( | eCustomDataType | data_type, |
| StringRef | name, | ||
| StringRef | identifier = "" ) |
Definition at line 397 of file node_declaration.cc.
References add_input(), blender::bke::custom_data_type_to_socket_type(), and name.
| BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_input | ( | eNodeSocketDatatype | socket_type, |
| StringRef | name, | ||
| StringRef | identifier = "" ) |
Definition at line 382 of file node_declaration.cc.
References add_input(), BLI_assert_unreachable, name, and blender::nodes::socket_type_to_static_decl_type().
|
inline |
Definition at line 745 of file NOD_node_declaration.hh.
References add_socket(), name, and SOCK_IN.
Referenced by add_input(), add_input(), 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_cornerpin_cc::cmp_node_cornerpin_declare(), blender::nodes::node_composite_directionalblur_cc::cmp_node_directional_blur_declare(), blender::nodes::node_composite_displace_cc::cmp_node_displace_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_map_uv_cc::cmp_node_map_uv_declare(), blender::nodes::node_composite_mask_cc::cmp_node_mask_declare(), blender::nodes::node_composite_planetrackdeform_cc::cmp_node_planetrackdeform_declare(), blender::nodes::node_composite_rotate_cc::cmp_node_rotate_declare(), blender::nodes::node_composite_scale_cc::cmp_node_scale_declare(), blender::nodes::node_composite_stabilize2d_cc::cmp_node_stabilize2d_declare(), blender::nodes::node_composite_transform_cc::cmp_node_transform_declare(), blender::nodes::node_composite_translate_cc::cmp_node_translate_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().
| void blender::nodes::DeclarationListBuilder::add_layout | ( | std::function< void(uiLayout *, bContext *, PointerRNA *)> | draw | ) |
Definition at line 444 of file node_declaration.cc.
References items, and node_decl_builder.
Referenced by add_default_layout(), blender::nodes::node_composite_colorbalance_cc::cmp_node_colorbalance_declare(), blender::nodes::node_shader_bsdf_principled_cc::node_declare(), and blender::nodes::node_shader_volume_coefficients_cc::node_declare().
| BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_output | ( | eCustomDataType | data_type, |
| StringRef | name, | ||
| StringRef | identifier = "" ) |
Definition at line 419 of file node_declaration.cc.
References add_output(), blender::bke::custom_data_type_to_socket_type(), and name.
| BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_output | ( | eNodeSocketDatatype | socket_type, |
| StringRef | name, | ||
| StringRef | identifier = "" ) |
Definition at line 404 of file node_declaration.cc.
References add_output(), BLI_assert_unreachable, name, and blender::nodes::socket_type_to_static_decl_type().
|
inline |
Definition at line 752 of file NOD_node_declaration.hh.
References add_socket(), name, and SOCK_OUT.
Referenced by add_output(), add_output(), and blender::nodes::node_fn_separate_matrix_cc::node_declare().
| PanelDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_panel | ( | StringRef | name, |
| int | identifier = -1 ) |
Definition at line 454 of file node_declaration.cc.
References blender::nodes::PanelDeclaration::identifier, blender::nodes::PanelDeclaration::index, items, blender::nodes::PanelDeclaration::name, name, node_decl_builder, blender::nodes::PanelDeclaration::parent_panel, and parent_panel_decl.
Referenced by blender::nodes::node_composite_glare_cc::cmp_node_glare_declare(), and blender::nodes::node_composite_keying_cc::cmp_node_keying_declare().
| void blender::nodes::DeclarationListBuilder::add_separator | ( | ) |
Definition at line 426 of file node_declaration.cc.
References items, and node_decl_builder.
|
inline |
Definition at line 759 of file NOD_node_declaration.hh.
References blender::nodes::NodeDeclaration::all_items, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, ELEM, blender::nodes::NodeDeclaration::inputs, blender::StringRefBase::is_empty(), name, blender::nodes::NodeDeclaration::outputs, SOCK_IN, and SOCK_OUT.
Referenced by add_input(), and add_output().
| Vector<ItemDeclaration *>& blender::nodes::DeclarationListBuilder::items |
Definition at line 558 of file NOD_node_declaration.hh.
Referenced by add_default_layout(), add_layout(), add_panel(), add_separator(), DeclarationListBuilder(), and blender::nodes::PanelDeclarationBuilder::PanelDeclarationBuilder().
| NodeDeclarationBuilder& blender::nodes::DeclarationListBuilder::node_decl_builder |
Definition at line 557 of file NOD_node_declaration.hh.
Referenced by add_default_layout(), add_layout(), add_panel(), add_separator(), and DeclarationListBuilder().
| PanelDeclaration* blender::nodes::DeclarationListBuilder::parent_panel_decl = nullptr |
Definition at line 559 of file NOD_node_declaration.hh.
Referenced by add_panel().