|
Blender V4.5
|
#include <NOD_socket_declarations.hh>
Inherits blender::nodes::SocketDeclaration.
Public Types | |
| using | Builder = ColorBuilder |
Public Member Functions | |
#Color | |
| bNodeSocket & | build (bNodeTree &ntree, bNode &node) const override |
| bool | matches (const bNodeSocket &socket) const override |
| bNodeSocket & | update_or_build (bNodeTree &ntree, bNode &node, bNodeSocket &socket) const override |
| bool | can_connect (const bNodeSocket &socket) const override |
Public Member Functions inherited from blender::nodes::SocketDeclaration | |
| ~SocketDeclaration () override=default | |
| void | make_available (bNode &node) const |
| const CompositorInputRealizationMode & | compositor_realization_mode () const |
| int | compositor_domain_priority () const |
| bool | compositor_expects_single_value () const |
Public Member Functions inherited from blender::nodes::ItemDeclaration | |
| virtual | ~ItemDeclaration ()=default |
Static Public Attributes | |
| static constexpr eNodeSocketDatatype | static_socket_type = SOCK_RGBA |
Additional Inherited Members | |
Protected Member Functions inherited from blender::nodes::SocketDeclaration | |
| void | set_common_flags (bNodeSocket &socket) const |
| bool | matches_common_data (const bNodeSocket &socket) const |
Definition at line 133 of file NOD_socket_declarations.hh.
| using blender::nodes::decl::Color::Builder = ColorBuilder |
Definition at line 141 of file NOD_socket_declarations.hh.
|
overridevirtual |
Implements blender::nodes::SocketDeclaration.
Definition at line 352 of file node_socket_declarations.cc.
References copy_v4_v4(), bNodeSocket::default_value, blender::nodes::SocketDeclaration::identifier, blender::nodes::SocketDeclaration::in_out, node, blender::bke::node_add_static_socket(), PROP_NONE, blender::nodes::SocketDeclaration::set_common_flags(), SOCK_RGBA, this, and value.
Referenced by update_or_build().
|
overridevirtual |
Determine if a new socket described by this declaration could have a valid connection the other socket.
Implements blender::nodes::SocketDeclaration.
Definition at line 378 of file node_socket_declarations.cc.
References blender::nodes::decl::basic_types_can_connect(), and blender::nodes::decl::sockets_can_connect().
|
overridevirtual |
Implements blender::nodes::SocketDeclaration.
Definition at line 367 of file node_socket_declarations.cc.
References blender::nodes::SocketDeclaration::matches_common_data(), SOCK_RGBA, and bNodeSocket::type.
|
overridevirtual |
Reimplemented from blender::nodes::SocketDeclaration.
Definition at line 386 of file node_socket_declarations.cc.
References BLI_assert, build(), bNodeSocket::in_out, node, blender::nodes::SocketDeclaration::set_common_flags(), SOCK_RGBA, this, and bNodeSocket::type.
| friend blender::nodes::decl::Color::ColorBuilder |
Definition at line 139 of file NOD_socket_declarations.hh.
| ColorGeometry4f blender::nodes::decl::Color::default_value {0.8f, 0.8f, 0.8f, 1.0f} |
Definition at line 137 of file NOD_socket_declarations.hh.
|
staticconstexpr |
Definition at line 135 of file NOD_socket_declarations.hh.