Blender
V3.3
|
#include <NOD_socket_declarations.hh>
Public Types | |
using | Builder = BoolBuilder |
Public Member Functions | |
#Bool | |
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 101 of file NOD_socket_declarations.hh.
Definition at line 107 of file NOD_socket_declarations.hh.
|
overridevirtual |
Implements blender::nodes::SocketDeclaration.
Definition at line 255 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_BOOLEAN, and bNodeSocketValueBoolean::value.
|
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 276 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 265 of file node_socket_declarations.cc.
References blender::nodes::SocketDeclaration::matches_common_data(), SOCK_BOOLEAN, and bNodeSocket::type.