|
Blender
V2.93
|
#include <NOD_node_tree_multi_function.hh>
Inherits blender::nodes::MFNetworkBuilderBase.
Public Member Functions | |
| SocketMFNetworkBuilder (CommonMFNetworkBuilderData &common, const DSocket &dsocket) | |
| bNodeSocket & | bsocket () |
| template<typename T > | |
| T * | socket_default_value () |
| template<typename T > | |
| void | set_constant_value (T value) |
| void | set_constant_value (const CPPType &type, const void *value) |
| template<typename T , typename... Args> | |
| void | construct_generator_fn (Args &&... args) |
| void | set_generator_fn (const fn::MultiFunction &fn) |
| void | set_socket (fn::MFOutputSocket &socket) |
| fn::MFOutputSocket * | built_socket () |
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 socket implementations to define how an unlinked input socket is handled in a multi-function network.
Definition at line 250 of file NOD_node_tree_multi_function.hh.
|
inline |
Definition at line 256 of file NOD_node_tree_multi_function.hh.
|
inline |
Returns the socket that is currently being built.
Definition at line 264 of file NOD_node_tree_multi_function.hh.
Referenced by blender::nodes::socket_expand_in_mf_network().
|
inline |
Definition at line 313 of file NOD_node_tree_multi_function.hh.
|
inline |
Definition at line 290 of file NOD_node_tree_multi_function.hh.
References set_generator_fn().
|
inline |
Definition at line 284 of file NOD_node_tree_multi_function.hh.
References type.
|
inline |
Builds a function node for that socket that outputs the given constant value.
Definition at line 280 of file NOD_node_tree_multi_function.hh.
Referenced by blender::nodes::socket_expand_in_mf_network().
|
inline |
Uses the first output of the given multi-function as value of the socket.
Definition at line 299 of file NOD_node_tree_multi_function.hh.
References blender::fn::MFNetwork::add_function(), blender::nodes::MFNetworkBuilderBase::common_, blender::nodes::CommonMFNetworkBuilderData::network, node, blender::fn::MFNode::output(), and set_socket().
Referenced by construct_generator_fn().
|
inline |
Define a multi-function socket that outputs the value of the bsocket.
Definition at line 308 of file NOD_node_tree_multi_function.hh.
Referenced by set_generator_fn().
|
inline |
Utility method that returns bsocket->default_value for the current socket.
Definition at line 272 of file NOD_node_tree_multi_function.hh.
References bNodeSocket::default_value, and T.