|
Blender V5.0
|
Inherits blender::fn::multi_function::MultiFunction.
Public Member Functions | |
| MenuSwitchFn (const NodeEnumDefinition &enum_def, const CPPType &type) | |
| void | call (const IndexMask &mask, mf::Params params, mf::Context) const override |
| Public Member Functions inherited from blender::fn::multi_function::MultiFunction | |
| virtual | ~MultiFunction ()=default |
| void | call_auto (const IndexMask &mask, Params params, Context context) const |
| virtual void | call (const IndexMask &mask, Params params, Context context) const =0 |
| virtual uint64_t | hash () const |
| virtual bool | equals (const MultiFunction &) const |
| int | param_amount () const |
| IndexRange | param_indices () const |
| ParamType | param_type (int param_index) const |
| StringRefNull | param_name (int param_index) const |
| StringRefNull | name () const |
| virtual std::string | debug_name () const |
| const Signature & | signature () const |
| ExecutionHints | execution_hints () const |
Additional Inherited Members | |
| Protected Member Functions inherited from blender::fn::multi_function::MultiFunction | |
| void | set_signature (const Signature *signature) |
| virtual ExecutionHints | get_execution_hints () const |
Multi-function which evaluates the switch input for each enum item and partially fills the output array with values from the input array where the identifier matches.
Definition at line 184 of file node_geo_menu_switch.cc.
|
inline |
Definition at line 190 of file node_geo_menu_switch.cc.
|
inlineoverride |
Definition at line 206 of file node_geo_menu_switch.cc.
References blender::GMutableSpan::data(), blender::IndexMask::from_groups(), blender::VArrayCommon< T >::get_if_single(), i, NodeEnumItem::identifier, inputs, blender::GMutableSpan::is_empty(), blender::index_mask::IndexMask::is_empty(), blender::MutableSpan< T >::is_empty(), mask(), blender::index_mask::masked_fill(), params, and blender::index_mask::IndexMask::size().