|
Blender
V3.3
|
#include <NOD_derived_node_tree.hh>
Public Member Functions | |
| DInputSocket ()=default | |
| DOutputSocket | get_corresponding_group_node_output () const |
| Vector< DOutputSocket, 4 > | get_corresponding_group_input_sockets () const |
| void | foreach_origin_socket (FunctionRef< void(DSocket)> origin_fn) const |
#DInputSocket Inline Methods | |
| DInputSocket (const DTreeContext *context, const InputSocketRef *socket) | |
| DInputSocket (const DSocket &base_socket) | |
| const InputSocketRef * | socket_ref () const |
| const InputSocketRef * | operator-> () const |
Public Member Functions inherited from blender::nodes::DSocket | |
| DSocket ()=default | |
| DSocket (const DTreeContext *context, const SocketRef *socket) | |
| DSocket (const DInputSocket &input_socket) | |
| DSocket (const DOutputSocket &output_socket) | |
| const DTreeContext * | context () const |
| const SocketRef * | socket_ref () const |
| const SocketRef * | operator-> () const |
| operator bool () const | |
| uint64_t | hash () const |
| DNode | node () const |
Additional Inherited Members | |
Protected Attributes inherited from blender::nodes::DSocket | |
| const DTreeContext * | context_ = nullptr |
| const SocketRef * | socket_ref_ = nullptr |
A (nullable) reference to an input socket and the context it is in.
Definition at line 123 of file NOD_derived_node_tree.hh.
|
default |
|
inline |
Definition at line 397 of file NOD_derived_node_tree.hh.
|
inlineexplicit |
Definition at line 402 of file NOD_derived_node_tree.hh.
References BLI_assert, and blender::nodes::SocketRef::is_input().
| void blender::nodes::DInputSocket::foreach_origin_socket | ( | FunctionRef< void(DSocket)> | origin_fn | ) | const |
Call origin_fn for every "real" origin socket. "Real" means that reroutes, muted nodes and node groups are handled by this function. Origin sockets are ones where a node gets its inputs from.
Definition at line 165 of file derived_node_tree.cc.
References blender::nodes::SocketRef::as_input(), BLI_assert, blender::nodes::DSocket::context_, foreach_origin_socket(), blender::nodes::NodeRef::is_group_input_node(), blender::nodes::NodeRef::is_group_node(), blender::nodes::SocketRef::is_logically_linked(), blender::nodes::DTreeContext::is_root(), blender::nodes::InputSocketRef::logically_linked_sockets(), and blender::nodes::DSocket::socket_ref_.
Referenced by foreach_origin_socket(), blender::modifiers::geometry_nodes::GeometryNodesEvaluator::initialize_node_state(), blender::modifiers::geometry_nodes::GeometryNodesEvaluator::set_input_required(), and blender::modifiers::geometry_nodes::GeometryNodesEvaluator::set_input_unused().
| Vector< DOutputSocket > blender::nodes::DInputSocket::get_corresponding_group_input_sockets | ( | ) | const |
Definition at line 109 of file derived_node_tree.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, blender::nodes::DTreeContext::child_context(), blender::nodes::DSocket::context_, blender::nodes::SocketRef::index(), blender::nodes::NodeRef::is_group_node(), blender::nodes::SocketRef::node(), blender::nodes::NodeTreeRef::nodes_by_type(), blender::nodes::DSocket::socket_ref_, and blender::nodes::DTreeContext::tree().
| DOutputSocket blender::nodes::DInputSocket::get_corresponding_group_node_output | ( | ) | const |
Definition at line 94 of file derived_node_tree.cc.
References BLI_assert, blender::nodes::DSocket::context_, blender::nodes::SocketRef::index(), blender::nodes::NodeRef::inputs(), blender::nodes::NodeRef::is_group_output_node(), blender::nodes::SocketRef::node(), blender::nodes::NodeRef::output(), blender::nodes::DTreeContext::parent_context(), blender::nodes::DTreeContext::parent_node(), and blender::nodes::DSocket::socket_ref_.
|
inline |
Definition at line 412 of file NOD_derived_node_tree.hh.
References blender::nodes::DSocket::socket_ref_.
|
inline |
Definition at line 407 of file NOD_derived_node_tree.hh.
References blender::nodes::DSocket::socket_ref_.