Blender
V3.3
|
#include <NOD_socket_declarations.hh>
Public Types | |
using | Builder = StringBuilder |
Public Member Functions | |
#String | |
bNodeSocket & | build (bNodeTree &ntree, bNode &node) const override |
bool | matches (const bNodeSocket &socket) const override |
bool | can_connect (const bNodeSocket &socket) const override |
![]() | |
virtual | ~SocketDeclaration ()=default |
virtual bNodeSocket & | update_or_build (bNodeTree &ntree, bNode &node, bNodeSocket &socket) const |
void | make_available (bNode &node) const |
StringRefNull | name () const |
StringRefNull | description () const |
StringRefNull | identifier () const |
eNodeSocketInOut | in_out () const |
bool | is_attribute_name () const |
bool | is_default_link_socket () const |
InputSocketFieldType | input_field_type () const |
const OutputFieldDependency & | output_field_dependency () const |
Additional Inherited Members | |
![]() | |
void | set_common_flags (bNodeSocket &socket) const |
bool | matches_common_data (const bNodeSocket &socket) const |
![]() | |
std::string | name_ |
std::string | identifier_ |
std::string | description_ |
eNodeSocketInOut | in_out_ |
bool | hide_label_ = false |
bool | hide_value_ = false |
bool | compact_ = false |
bool | is_multi_input_ = false |
bool | no_mute_links_ = false |
bool | is_unavailable_ = false |
bool | is_attribute_name_ = false |
bool | is_default_link_socket_ = false |
InputSocketFieldType | input_field_type_ = InputSocketFieldType::None |
OutputFieldDependency | output_field_dependency_ |
std::function< void(bNode &)> | make_available_fn_ |
friend | NodeDeclarationBuilder |
Definition at line 142 of file NOD_socket_declarations.hh.
Definition at line 149 of file NOD_socket_declarations.hh.
|
overridevirtual |
Implements blender::nodes::SocketDeclaration.
Definition at line 330 of file node_socket_declarations.cc.
References bNodeSocket::default_value, blender::nodes::SocketDeclaration::identifier_, blender::nodes::SocketDeclaration::in_out_, blender::nodes::SocketDeclaration::name_, node, nodeAddStaticSocket(), ntree, PROP_NONE, blender::nodes::SocketDeclaration::set_common_flags(), SOCK_STRING, and STRNCPY.
|
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 350 of file node_socket_declarations.cc.
References SOCK_STRING, blender::nodes::decl::sockets_can_connect(), and bNodeSocket::type.
|
overridevirtual |
Implements blender::nodes::SocketDeclaration.
Definition at line 339 of file node_socket_declarations.cc.
References blender::nodes::SocketDeclaration::matches_common_data(), SOCK_STRING, and bNodeSocket::type.