|
Blender V5.0
|
Inherits blender::fn::lazy_function::LazyFunction.
Public Member Functions | |
| LazyFunctionForMenuSwitchNode (const bNode &node, GeometryNodesLazyFunctionGraphInfo &lf_graph_info) | |
| void | execute_impl (lf::Params ¶ms, const lf::Context &) const override |
| void | execute_single (const MenuValue condition, lf::Params ¶ms) const |
| void | execute_field (Field< MenuValue > condition, lf::Params ¶ms) const |
| Public Member Functions inherited from blender::fn::lazy_function::LazyFunction | |
| virtual | ~LazyFunction ()=default |
| virtual std::string | name () const |
| virtual std::string | input_name (int index) const |
| virtual std::string | output_name (int index) const |
| virtual void * | init_storage (LinearAllocator<> &allocator) const |
| virtual void | destruct_storage (void *storage) const |
| virtual void | possible_output_dependencies (int output_index, FunctionRef< void(Span< int >)> fn) const |
| bool | always_used_inputs_available (const Params ¶ms) const |
| bool | allow_missing_requested_inputs () const |
| Span< Input > | inputs () const |
| Span< Output > | outputs () const |
| void | execute (Params ¶ms, const Context &context) const |
Additional Inherited Members | |
| Protected Attributes inherited from blender::fn::lazy_function::LazyFunction | |
| const char * | debug_name_ = "unknown" |
| Vector< Input > | inputs_ |
| Vector< Output > | outputs_ |
| bool | allow_missing_requested_inputs_ = false |
Definition at line 287 of file node_geo_menu_switch.cc.
|
inline |
Definition at line 295 of file node_geo_menu_switch.cc.
References blender::bke::bNodeSocketType::base_cpp_type, BLI_assert, NodeMenuSwitch::data_type, blender::fn::lazy_function::LazyFunction::debug_name_, blender::CPPType::get(), i, blender::fn::lazy_function::LazyFunction::inputs_, blender::nodes::GeometryNodeLazyFunctionGraphMapping::lf_index_by_bsocket, blender::nodes::GeometryNodesLazyFunctionGraphInfo::mapping, blender::fn::lazy_function::Maybe, bNode::name, NodeEnumItem::name, blender::bke::node_socket_type_find_static(), blender::fn::lazy_function::LazyFunction::outputs_, blender::nodes::socket_type_supports_fields(), and blender::fn::lazy_function::Used.
|
inline |
Definition at line 364 of file node_geo_menu_switch.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::nodes::SocketValueVariant::From(), blender::nodes::FieldOperation::from(), i, NodeEnumDefinition::items_num, and params.
Referenced by execute_impl().
|
inlineoverridevirtual |
Needs to be implemented by subclasses. This is separate from execute so that additional debugging logic can be implemented in execute.
Implements blender::fn::lazy_function::LazyFunction.
Definition at line 325 of file node_geo_menu_switch.cc.
References execute_field(), execute_single(), blender::bke::SocketValueVariant::get(), blender::bke::SocketValueVariant::is_context_dependent_field(), and params.
|
inline |
Definition at line 336 of file node_geo_menu_switch.cc.
References i, NodeEnumItem::identifier, params, blender::nodes::set_default_remaining_node_outputs(), and blender::nodes::MenuValue::value.
Referenced by execute_impl().