|
Blender V4.3
|
#include <NOD_node_declaration.hh>
Public Member Functions | |
| Self & | description (std::string value="") |
| Self & | default_closed (bool closed) |
| Self & | draw_buttons (PanelDrawButtonsFunction func) |
| BaseSocketDeclarationBuilder & | add_input (eNodeSocketDatatype socket_type, StringRef name, StringRef identifier="") |
| BaseSocketDeclarationBuilder & | add_input (eCustomDataType data_type, StringRef name, StringRef identifier="") |
| BaseSocketDeclarationBuilder & | add_output (eNodeSocketDatatype socket_type, StringRef name, StringRef identifier="") |
| BaseSocketDeclarationBuilder & | add_output (eCustomDataType data_type, StringRef name, StringRef identifier="") |
| void | add_separator () |
#PanelDeclarationBuilder Inline Methods | |
| template<typename DeclType > | |
| DeclType::Builder & | add_input (StringRef name, StringRef identifier="") |
| template<typename DeclType > | |
| DeclType::Builder & | add_output (StringRef name, StringRef identifier="") |
Protected Types | |
| using | Self = PanelDeclarationBuilder |
Protected Attributes | |
| NodeDeclarationBuilder * | node_decl_builder_ = nullptr |
| PanelDeclaration * | decl_ |
| bool | is_complete_ = false |
Friends | |
| class | NodeDeclarationBuilder |
Definition at line 440 of file NOD_node_declaration.hh.
|
protected |
Definition at line 442 of file NOD_node_declaration.hh.
| BaseSocketDeclarationBuilder & blender::nodes::PanelDeclarationBuilder::add_input | ( | eCustomDataType | data_type, |
| StringRef | name, | ||
| StringRef | identifier = "" ) |
Definition at line 528 of file node_declaration.cc.
References add_input(), and blender::bke::custom_data_type_to_socket_type().
| BaseSocketDeclarationBuilder & blender::nodes::PanelDeclarationBuilder::add_input | ( | eNodeSocketDatatype | socket_type, |
| StringRef | name, | ||
| StringRef | identifier = "" ) |
Definition at line 513 of file node_declaration.cc.
References add_input(), BLI_assert_unreachable, and blender::nodes::socket_type_to_static_decl_type().
| DeclType::Builder & blender::nodes::PanelDeclarationBuilder::add_input | ( | StringRef | name, |
| StringRef | identifier = "" ) |
Definition at line 639 of file NOD_node_declaration.hh.
References BLI_assert_unreachable, decl_, is_complete_, blender::nodes::PanelDeclaration::num_child_decls, and SOCK_IN.
Referenced by add_input(), add_input(), and blender::nodes::node_shader_bsdf_principled_cc::node_declare().
| BaseSocketDeclarationBuilder & blender::nodes::PanelDeclarationBuilder::add_output | ( | eCustomDataType | data_type, |
| StringRef | name, | ||
| StringRef | identifier = "" ) |
Definition at line 550 of file node_declaration.cc.
References add_output(), and blender::bke::custom_data_type_to_socket_type().
| BaseSocketDeclarationBuilder & blender::nodes::PanelDeclarationBuilder::add_output | ( | eNodeSocketDatatype | socket_type, |
| StringRef | name, | ||
| StringRef | identifier = "" ) |
Definition at line 535 of file node_declaration.cc.
References add_output(), BLI_assert_unreachable, and blender::nodes::socket_type_to_static_decl_type().
| DeclType::Builder & blender::nodes::PanelDeclarationBuilder::add_output | ( | StringRef | name, |
| StringRef | identifier = "" ) |
Definition at line 652 of file NOD_node_declaration.hh.
References BLI_assert_unreachable, decl_, is_complete_, blender::nodes::PanelDeclaration::num_child_decls, and SOCK_OUT.
Referenced by add_output(), add_output(), and blender::nodes::node_fn_separate_matrix_cc::node_declare().
| void blender::nodes::PanelDeclarationBuilder::add_separator | ( | ) |
Definition at line 557 of file node_declaration.cc.
References blender::nodes::NodeDeclarationBuilder::add_separator(), BLI_assert_unreachable, decl_, is_complete_, node_decl_builder_, and blender::nodes::PanelDeclaration::num_child_decls.
| PanelDeclarationBuilder & blender::nodes::PanelDeclarationBuilder::default_closed | ( | bool | closed | ) |
Definition at line 879 of file node_declaration.cc.
References decl_, and blender::nodes::PanelDeclaration::default_collapsed.
| PanelDeclarationBuilder & blender::nodes::PanelDeclarationBuilder::description | ( | std::string | value = "" | ) |
Definition at line 873 of file node_declaration.cc.
References decl_, and blender::nodes::PanelDeclaration::description.
| PanelDeclarationBuilder & blender::nodes::PanelDeclarationBuilder::draw_buttons | ( | PanelDrawButtonsFunction | func | ) |
Definition at line 885 of file node_declaration.cc.
References decl_, and blender::nodes::PanelDeclaration::draw_buttons.
|
friend |
Definition at line 451 of file NOD_node_declaration.hh.
|
protected |
Definition at line 444 of file NOD_node_declaration.hh.
Referenced by add_input(), add_output(), add_separator(), default_closed(), description(), and draw_buttons().
|
protected |
Panel is complete once items are added after it. Completed panels are locked and no more items can be added.
Definition at line 449 of file NOD_node_declaration.hh.
Referenced by add_input(), add_output(), and add_separator().
|
protected |
Definition at line 443 of file NOD_node_declaration.hh.
Referenced by add_separator().