|
Blender V5.3
|
#include <NOD_node_declaration.hh>
Public Member Functions | |
| void | assert_valid () const |
| bool | matches (const bNode &node) const |
| Span< SocketDeclaration * > | sockets (eNodeSocketInOut in_out) const |
| const rl::RelationsInNode * | reference_lifetime_relations () const |
Public Attributes | |
| Vector< ItemDeclarationPtr > | all_items |
| Vector< ItemDeclaration * > | root_items |
| Vector< SocketDeclaration * > | inputs |
| Vector< SocketDeclaration * > | outputs |
| Vector< PanelDeclaration * > | panels |
| std::unique_ptr< rl::RelationsInNode > | reference_lifetime_relations_ |
| bool | skip_updating_sockets = false |
| bool | use_custom_socket_order = false |
| bool | allow_any_socket_order = false |
| bool | is_context_dependent = false |
| friend | NodeDeclarationBuilder |
Definition at line 603 of file NOD_node_declaration.hh.
| void blender::nodes::NodeDeclaration::assert_valid | ( | ) | const |
Asserts that the declaration is considered valid.
Definition at line 216 of file node_declaration.cc.
References blender::nodes::assert_valid_panels_recursive(), blender::BLI_assert(), inputs, outputs, root_items, and use_custom_socket_order.
| bool blender::nodes::NodeDeclaration::matches | ( | const bNode & | node | ) | const |
Definition at line 231 of file node_declaration.cc.
References all_items, BLI_assert_unreachable, blender::bNodeSocket::next, node, blender::SOCK_IN, and blender::SOCK_OUT.
Referenced by blender::nodes::refresh_node().
|
inline |
Definition at line 647 of file NOD_node_declaration.hh.
References reference_lifetime_relations_.
Referenced by blender::nodes::LazyFunctionForGeometryNode::LazyFunctionForGeometryNode().
| Span< SocketDeclaration * > blender::nodes::NodeDeclaration::sockets | ( | eNodeSocketInOut | in_out | ) | const |
Definition at line 146 of file node_declaration.cc.
References inputs, outputs, and blender::SOCK_IN.
Referenced by blender::nodes::search_filtered_link_ops_for_basic_node(), and blender::nodes::search_link_ops_for_basic_node().
| Vector<ItemDeclarationPtr> blender::nodes::NodeDeclaration::all_items |
Contains all items including recursive children.
Definition at line 606 of file NOD_node_declaration.hh.
Referenced by blender::nodes::DeclarationListBuilder::add_layout(), blender::nodes::DeclarationListBuilder::add_panel(), blender::nodes::DeclarationListBuilder::add_separator(), blender::nodes::DeclarationListBuilder::add_socket(), matches(), and blender::nodes::refresh_node_sockets_and_panels().
| bool blender::nodes::NodeDeclaration::allow_any_socket_order = false |
Usually output sockets come before input sockets currently. Only some specific nodes are exempt from that rule for now.
Definition at line 632 of file NOD_node_declaration.hh.
Referenced by blender::nodes::assert_valid_panels_recursive().
| Vector<SocketDeclaration *> blender::nodes::NodeDeclaration::inputs |
All input and output socket declarations.
Definition at line 610 of file NOD_node_declaration.hh.
Referenced by blender::nodes::DeclarationListBuilder::add_socket(), assert_valid(), blender::nodes::node_geo_evaluate_closure_cc::create_all_reference_lifetime_relations(), blender::nodes::do_forward_compat_versioning(), blender::ed::space_node::get_main_socket(), blender::compositor::input_descriptor_from_input_socket(), blender::nodes::node_geo_accumulate_field_cc::node_gather_link_searches(), blender::nodes::node_geo_attribute_statistic_cc::node_gather_link_searches(), blender::nodes::node_geo_blur_attribute_cc::node_gather_link_searches(), blender::nodes::node_geo_curve_sample_cc::node_gather_link_searches(), blender::nodes::node_geo_curve_trim_cc::node_gather_link_searches(), blender::nodes::node_geo_field_average_cc::node_gather_link_searches(), blender::nodes::node_geo_field_min_and_max_cc::node_gather_link_searches(), blender::nodes::node_geo_field_variance_cc::node_gather_link_searches(), blender::nodes::node_geo_input_named_attribute_cc::node_gather_link_searches(), blender::nodes::node_geo_raycast_cc::node_gather_link_searches(), blender::nodes::node_geo_sample_index_cc::node_gather_link_searches(), blender::nodes::node_geo_sample_nearest_surface_cc::node_gather_link_searches(), blender::nodes::node_geo_sample_uv_surface_cc::node_gather_link_searches(), blender::nodes::node_geo_store_named_attribute_cc::node_gather_link_searches(), and sockets().
| bool blender::nodes::NodeDeclaration::is_context_dependent = false |
True if any context was used to build this declaration.
Definition at line 637 of file NOD_node_declaration.hh.
| friend blender::nodes::NodeDeclaration::NodeDeclarationBuilder |
Definition at line 639 of file NOD_node_declaration.hh.
| Vector<SocketDeclaration *> blender::nodes::NodeDeclaration::outputs |
Definition at line 611 of file NOD_node_declaration.hh.
Referenced by blender::nodes::DeclarationListBuilder::add_socket(), assert_valid(), blender::nodes::do_forward_compat_versioning(), blender::ed::space_node::get_main_socket(), blender::nodes::LazyFunctionForGeometryNode::LazyFunctionForGeometryNode(), blender::nodes::node_geo_curve_primitive_quadrilateral_cc::node_gather_link_searches(), blender::nodes::node_geo_curve_sample_cc::node_gather_link_searches(), blender::nodes::node_geo_curve_trim_cc::node_gather_link_searches(), blender::nodes::node_geo_mesh_primitive_line_cc::node_gather_link_searches(), blender::nodes::node_geo_raycast_cc::node_gather_link_searches(), blender::nodes::node_geo_sample_uv_surface_cc::node_gather_link_searches(), blender::nodes::node_geo_store_named_attribute_cc::node_gather_link_searches(), blender::nodes::node_shader_tex_sky_cc::node_gather_link_searches(), and sockets().
| Vector<PanelDeclaration *> blender::nodes::NodeDeclaration::panels |
Definition at line 612 of file NOD_node_declaration.hh.
Referenced by blender::nodes::DeclarationListBuilder::add_panel(), blender::ed::space_node::node_draw_panels(), and blender::ed::space_node::node_draw_panels_background().
| std::unique_ptr<rl::RelationsInNode> blender::nodes::NodeDeclaration::reference_lifetime_relations_ |
Definition at line 613 of file NOD_node_declaration.hh.
Referenced by reference_lifetime_relations().
| Vector<ItemDeclaration *> blender::nodes::NodeDeclaration::root_items |
Contains only the items in the root.
Definition at line 608 of file NOD_node_declaration.hh.
Referenced by assert_valid(), blender::ed::space_node::build_node_declaration_interface(), blender::ui::template_node_inputs(), blender::ed::space_node::ui_node_draw_input(), and blender::ed::space_node::ui_node_draw_node().
| bool blender::nodes::NodeDeclaration::skip_updating_sockets = false |
Leave the sockets in place, even if they don't match the declaration. Used for dynamic declarations when the information used to build the declaration is missing, but might become available again in the future.
Definition at line 620 of file NOD_node_declaration.hh.
Referenced by blender::compositor::input_descriptor_from_input_socket(), blender::nodes::node_group_declare(), blender::nodes::refresh_node(), blender::ed::space_node::socket_needs_attribute_search(), blender::ed::space_node::socket_needs_layer_search(), and blender::ed::space_node::socket_needs_volume_grid_search().
| bool blender::nodes::NodeDeclaration::use_custom_socket_order = false |
Use order of socket declarations for socket order instead of conventional outputs | buttons | inputs order. Panels are only supported when using custom socket order.
Definition at line 626 of file NOD_node_declaration.hh.
Referenced by assert_valid(), and blender::nodes::node_group_declare().