|
Blender V5.3
|
#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 |
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.
|
inline |
Definition at line 546 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 458 of file node_declaration.cc.
References add_layout(), blender::BLI_assert(), C, blender::PointerRNA::data, blender::bke::bNodeType::draw_buttons, blender::nodes::LayoutDeclaration::is_default, items, node, and node_decl_builder.
| BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_input | ( | eCustomDataType | data_type, |
| UString | name, | ||
| UString | identifier = ""_ustr ) |
Definition at line 422 of file node_declaration.cc.
References add_input(), and blender::bke::custom_data_type_to_socket_type().
| BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_input | ( | eNodeSocketDatatype | socket_type, |
| UString | name, | ||
| UString | identifier = ""_ustr ) |
Definition at line 408 of file node_declaration.cc.
References add_input(), BLI_assert_unreachable, and blender::nodes::socket_type_to_static_decl_type().
|
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().
| void blender::nodes::DeclarationListBuilder::add_layout | ( | std::function< void(ui::Layout &, bContext *, PointerRNA *)> | draw | ) |
Definition at line 468 of file node_declaration.cc.
References blender::nodes::NodeDeclaration::all_items, items, and node_decl_builder.
Referenced by add_default_layout(), blender::nodes::node_composite_color_balance_cc::node_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, |
| UString | name, | ||
| UString | identifier = ""_ustr ) |
Definition at line 443 of file node_declaration.cc.
References add_output(), and blender::bke::custom_data_type_to_socket_type().
| BaseSocketDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_output | ( | eNodeSocketDatatype | socket_type, |
| UString | name, | ||
| UString | identifier = ""_ustr ) |
Definition at line 429 of file node_declaration.cc.
References add_output(), BLI_assert_unreachable, and blender::nodes::socket_type_to_static_decl_type().
|
inline |
Definition at line 746 of file NOD_node_declaration.hh.
References add_socket(), and blender::SOCK_OUT.
Referenced by add_output(), add_output(), blender::nodes::node_fn_separate_matrix_cc::node_declare(), blender::nodes::node_geo_bevel_cc::node_declare(), and blender::nodes::node_geo_grid_solve_poisson_cc::node_declare().
| PanelDeclarationBuilder & blender::nodes::DeclarationListBuilder::add_panel | ( | UString | name, |
| int | identifier = -1 ) |
Definition at line 478 of file node_declaration.cc.
References blender::nodes::NodeDeclaration::all_items, blender::nodes::PanelDeclaration::identifier, blender::nodes::PanelDeclaration::index, items, blender::nodes::PanelDeclaration::name, node_decl_builder, blender::nodes::NodeDeclaration::panels, blender::nodes::PanelDeclaration::parent_panel, and parent_panel_decl.
Referenced by blender::nodes::node_composite_glare_cc::node_declare(), and blender::nodes::node_composite_keying_cc::node_declare().
| void blender::nodes::DeclarationListBuilder::add_separator | ( | ) |
Definition at line 450 of file node_declaration.cc.
References blender::nodes::NodeDeclaration::all_items, items, and node_decl_builder.
|
inline |
Definition at line 753 of file NOD_node_declaration.hh.
References blender::nodes::NodeDeclaration::all_items, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BLI_assert(), ELEM, blender::nodes::NodeDeclaration::inputs, blender::UString::is_empty(), blender::nodes::NodeDeclaration::outputs, blender::SOCK_IN, and blender::SOCK_OUT.
Referenced by add_input(), and add_output().
| Vector<ItemDeclaration *>& blender::nodes::DeclarationListBuilder::items |
Definition at line 543 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 542 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 544 of file NOD_node_declaration.hh.
Referenced by add_panel().