|
Blender V4.3
|
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 int condition, lf::Params ¶ms) const |
| void | execute_field (Field< int > 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 222 of file node_geo_menu_switch.cc.
|
inline |
Definition at line 231 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::bke::bNodeSocketType::geometry_nodes_cpp_type, blender::CPPType::get(), blender::fn::lazy_function::LazyFunction::inputs_, blender::nodes::GeometryNodeLazyFunctionGraphMapping::lf_index_by_bsocket, blender::nodes::GeometryNodesLazyFunctionGraphInfo::mapping, NodeEnumItem::name, blender::bke::node_socket_type_find(), blender::bke::node_static_socket_type(), blender::fn::lazy_function::LazyFunction::outputs_, PROP_NONE, and blender::nodes::socket_type_supports_fields().
|
inline |
Definition at line 293 of file node_geo_menu_switch.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::fn::FieldOperation::Create(), 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 257 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 268 of file node_geo_menu_switch.cc.
References NodeEnumItem::identifier, NodeEnumDefinition::items_array, NodeEnumDefinition::items_num, blender::CPPType::move_construct(), params, and blender::nodes::set_default_remaining_node_outputs().
Referenced by execute_impl().