|
Blender
V2.93
|
#include <NOD_node_tree_multi_function.hh>
Inherits blender::nodes::MFNetworkBuilderBase.
Public Member Functions | |
| NodeMFNetworkBuilder (CommonMFNetworkBuilderData &common, DNode dnode) | |
| template<typename T , typename... Args> | |
| T & | construct_and_set_matching_fn (Args &&... args) |
| const fn::MultiFunction & | get_not_implemented_fn () |
| const fn::MultiFunction & | get_default_fn (StringRef name) |
| const void | set_not_implemented () |
| void | set_matching_fn (const fn::MultiFunction &function) |
| bNode & | bnode () |
| const DNode & | dnode () const |
Public Member Functions inherited from blender::nodes::MFNetworkBuilderBase | |
| MFNetworkBuilderBase (CommonMFNetworkBuilderData &common) | |
| fn::MFNetwork & | network () |
| MFNetworkTreeMap & | network_map () |
| ResourceScope & | resource_scope () |
| template<typename T , typename... Args> | |
| T & | construct_fn (Args &&... args) |
Additional Inherited Members | |
Protected Attributes inherited from blender::nodes::MFNetworkBuilderBase | |
| CommonMFNetworkBuilderData & | common_ |
This class is used by node implementations to define how a user-level node expands into multi-function nodes internally.
Definition at line 323 of file NOD_node_tree_multi_function.hh.
|
inline |
Definition at line 328 of file NOD_node_tree_multi_function.hh.
|
inline |
Returns the node that is currently being built.
Definition at line 369 of file NOD_node_tree_multi_function.hh.
References blender::nodes::NodeRef::bnode().
Referenced by fn_node_input_string_expand_in_mf_network(), fn_node_vector_input_expand_in_mf_network(), get_base_multi_function(), get_multi_function(), node_boolean_expand_in_mf_network(), node_float_compare_expand_in_mf_network(), sh_node_clamp_expand_in_mf_network(), sh_node_map_range_expand_in_mf_network(), sh_node_math_expand_in_mf_network(), and sh_node_valtorgb_expand_in_mf_network().
|
inline |
Tells the builder to build a function that corresponds to the node that is being built. It will try to match up sockets.
Definition at line 337 of file NOD_node_tree_multi_function.hh.
References set_matching_fn(), and T.
Referenced by fn_node_input_string_expand_in_mf_network(), fn_node_random_float_expand_in_mf_network(), fn_node_vector_input_expand_in_mf_network(), sh_node_valtorgb_expand_in_mf_network(), and sh_node_value_expand_in_mf_network().
|
inline |
Returns the node that is currently being built.
Definition at line 377 of file NOD_node_tree_multi_function.hh.
Referenced by sh_node_math_expand_in_mf_network(), and sh_node_value_expand_in_mf_network().
| const fn::MultiFunction & blender::nodes::NodeMFNetworkBuilder::get_default_fn | ( | StringRef | name | ) |
Definition at line 28 of file node_tree_multi_function.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::nodes::NodeRef::inputs(), blender::nodes::NodeRef::outputs(), and blender::nodes::socket_mf_type_get().
Referenced by get_not_implemented_fn().
|
inline |
Definition at line 344 of file NOD_node_tree_multi_function.hh.
References get_default_fn(), and blender::nodes::NodeRef::name().
Referenced by get_base_multi_function(), get_multi_function(), and set_not_implemented().
|
inline |
Tells the builder that the given function corresponds to the node that is being built. It will try to match up sockets. For that it skips unavailable and non-data sockets.
Definition at line 360 of file NOD_node_tree_multi_function.hh.
References blender::fn::MFNetwork::add_function(), blender::nodes::MFNetworkTreeMap::add_try_match(), blender::nodes::MFNetworkBuilderBase::common_, blender::nodes::CommonMFNetworkBuilderData::network, blender::nodes::CommonMFNetworkBuilderData::network_map, and node.
Referenced by construct_and_set_matching_fn(), node_boolean_expand_in_mf_network(), node_float_compare_expand_in_mf_network(), set_not_implemented(), sh_node_clamp_expand_in_mf_network(), sh_node_combrgb_expand_in_mf_network(), sh_node_combxyz_expand_in_mf_network(), sh_node_map_range_expand_in_mf_network(), sh_node_seprgb_expand_in_mf_network(), sh_node_sepxyz_expand_in_mf_network(), sh_node_vector_math_expand_in_mf_network(), and sh_node_vector_rotate_expand_in_mf_network().
|
inline |
Definition at line 351 of file NOD_node_tree_multi_function.hh.
References get_not_implemented_fn(), and set_matching_fn().
Referenced by sh_node_map_range_expand_in_mf_network().