Blender V4.3
blender::nodes::DInputSocket Class Reference

#include <NOD_derived_node_tree.hh>

Inherits blender::nodes::DSocket.

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 bNodeSocket *socket)
 
 DInputSocket (const DSocket &base_socket)
 
- Public Member Functions inherited from blender::nodes::DSocket
 DSocket ()=default
 
 DSocket (const DTreeContext *context, const bNodeSocket *socket)
 
 DSocket (const DInputSocket &input_socket)
 
 DSocket (const DOutputSocket &output_socket)
 
const DTreeContextcontext () const
 
const bNodeSocketbsocket () const
 
const bNodeSocketoperator-> () const
 
const bNodeSocketoperator* () const
 
 operator bool () const
 
uint64_t hash () const
 
DNode node () const
 

Additional Inherited Members

- Protected Attributes inherited from blender::nodes::DSocket
const DTreeContextcontext_ = nullptr
 
const bNodeSocketbsocket_ = nullptr
 

Detailed Description

A (nullable) reference to an input socket and the context it is in.

Definition at line 132 of file NOD_derived_node_tree.hh.

Constructor & Destructor Documentation

◆ DInputSocket() [1/3]

blender::nodes::DInputSocket::DInputSocket ( )
default

◆ DInputSocket() [2/3]

blender::nodes::DInputSocket::DInputSocket ( const DTreeContext * context,
const bNodeSocket * socket )
inline

Definition at line 405 of file NOD_derived_node_tree.hh.

◆ DInputSocket() [3/3]

blender::nodes::DInputSocket::DInputSocket ( const DSocket & base_socket)
inlineexplicit

Definition at line 410 of file NOD_derived_node_tree.hh.

References BLI_assert.

Member Function Documentation

◆ foreach_origin_socket()

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 175 of file derived_node_tree.cc.

References BLI_assert, blender::nodes::DSocket::bsocket_, blender::nodes::DSocket::context_, foreach_origin_socket(), and blender::nodes::DTreeContext::is_root().

Referenced by foreach_origin_socket().

◆ get_corresponding_group_input_sockets()

◆ get_corresponding_group_node_output()


The documentation for this class was generated from the following files: