Blender
V3.3
|
#include <NOD_socket_declarations.hh>
Public Types | |
using | Builder = FloatBuilder |
Public Member Functions | |
#Float | |
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 |
![]() | |
virtual | ~SocketDeclaration ()=default |
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 16 of file NOD_socket_declarations.hh.
Definition at line 26 of file NOD_socket_declarations.hh.
|
overridevirtual |
Implements blender::nodes::SocketDeclaration.
Definition at line 71 of file node_socket_declarations.cc.
References bNodeSocket::default_value, blender::nodes::SocketDeclaration::identifier_, blender::nodes::SocketDeclaration::in_out_, bNodeSocketValueFloat::max, bNodeSocketValueFloat::min, blender::nodes::SocketDeclaration::name_, node, nodeAddStaticSocket(), ntree, blender::nodes::SocketDeclaration::set_common_flags(), SOCK_FLOAT, and bNodeSocketValueFloat::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 104 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 83 of file node_socket_declarations.cc.
References bNodeSocket::default_value, if(), blender::nodes::SocketDeclaration::matches_common_data(), bNodeSocketValueFloat::max, bNodeSocketValueFloat::min, SOCK_FLOAT, bNodeSocketType::subtype, bNodeSocket::type, and bNodeSocket::typeinfo.
|
overridevirtual |
Reimplemented from blender::nodes::SocketDeclaration.
Definition at line 112 of file node_socket_declarations.cc.
References BLI_assert, build(), bNodeSocket::default_value, bNodeSocket::in_out, blender::nodes::SocketDeclaration::in_out_, bNodeSocketValueFloat::max, bNodeSocketValueFloat::min, blender::nodes::decl::modify_subtype_except_for_storage(), node, blender::nodes::SocketDeclaration::set_common_flags(), SOCK_FLOAT, bNodeSocketType::subtype, bNodeSocketValueFloat::subtype, bNodeSocket::type, and bNodeSocket::typeinfo.