|
Blender V5.0
|
#include <NOD_node_declaration.hh>
Inherits blender::nodes::ItemDeclaration.
Inherited by blender::nodes::decl::Bool, blender::nodes::decl::Bundle, blender::nodes::decl::Closure, blender::nodes::decl::Color, blender::nodes::decl::Custom, blender::nodes::decl::Extend, blender::nodes::decl::Float, blender::nodes::decl::Geometry, blender::nodes::decl::IDSocketDeclaration, blender::nodes::decl::Int, blender::nodes::decl::Matrix, blender::nodes::decl::Menu, blender::nodes::decl::Rotation, blender::nodes::decl::Shader, blender::nodes::decl::String, and blender::nodes::decl::Vector.
Public Member Functions | |
| ~SocketDeclaration () override=default | |
| virtual bNodeSocket & | build (bNodeTree &ntree, bNode &node) const=0 |
| virtual bool | matches (const bNodeSocket &socket) const=0 |
| virtual bNodeSocket & | update_or_build (bNodeTree &ntree, bNode &node, bNodeSocket &socket) const |
| virtual bool | can_connect (const bNodeSocket &socket) const=0 |
| void | make_available (bNode &node) const |
| const CompositorInputRealizationMode & | compositor_realization_mode () const |
| int | compositor_domain_priority () const |
| Public Member Functions inherited from blender::nodes::ItemDeclaration | |
| virtual | ~ItemDeclaration ()=default |
Protected Member Functions | |
| void | set_common_flags (bNodeSocket &socket) const |
| bool | matches_common_data (const bNodeSocket &socket) const |
Friends | |
| class | BaseSocketDeclarationBuilder |
| template<typename SocketDecl> | |
| class | SocketDeclarationBuilder |
Describes a single input or output socket. This is subclassed for different socket types.
Definition at line 206 of file NOD_node_declaration.hh.
|
overridedefault |
|
pure virtual |
|
pure virtual |
Determine if a new socket described by this declaration could have a valid connection the other socket.
Definition at line 998 of file node_declaration.cc.
| const CompositorInputRealizationMode & blender::nodes::SocketDeclaration::compositor_realization_mode | ( | ) | const |
Definition at line 993 of file node_declaration.cc.
Referenced by blender::compositor::input_descriptor_from_input_socket().
| void blender::nodes::SocketDeclaration::make_available | ( | bNode & | node | ) | const |
Change the node such that the socket will become visible. The node type's update method should be called afterwards.
Definition at line 1003 of file node_declaration.cc.
|
pure virtual |
|
protected |
Definition at line 291 of file node_declaration.cc.
|
protected |
Definition at line 284 of file node_declaration.cc.
|
virtual |
Definition at line 274 of file node_declaration.cc.
|
friend |
Definition at line 276 of file NOD_node_declaration.hh.
|
friend |
Definition at line 277 of file NOD_node_declaration.hh.
Puts this socket on the same line as the previous one in the UI.
Definition at line 231 of file NOD_node_declaration.hh.
Definition at line 224 of file NOD_node_declaration.hh.
| std::unique_ptr<CustomSocketDrawFn> blender::nodes::SocketDeclaration::custom_draw_fn |
Draw function that overrides how the socket is drawn for a specific node.
Definition at line 268 of file NOD_node_declaration.hh.
| NodeDefaultInputType blender::nodes::SocketDeclaration::default_input_type = NodeDefaultInputType::NODE_DEFAULT_INPUT_VALUE |
Some input sockets can have non-trivial values in the case when they are unlinked.
Definition at line 259 of file NOD_node_declaration.hh.
| std::string blender::nodes::SocketDeclaration::description |
Definition at line 211 of file NOD_node_declaration.hh.
Definition at line 223 of file NOD_node_declaration.hh.
| std::string blender::nodes::SocketDeclaration::identifier |
Definition at line 210 of file NOD_node_declaration.hh.
Defined by whether the socket is part of the node's input or output socket declaration list. Included here for convenience.
Definition at line 215 of file NOD_node_declaration.hh.
Index in the list of inputs or outputs of the node.
Definition at line 238 of file NOD_node_declaration.hh.
| InputSocketFieldType blender::nodes::SocketDeclaration::input_field_type = InputSocketFieldType::None |
Definition at line 240 of file NOD_node_declaration.hh.
Definition at line 228 of file NOD_node_declaration.hh.
Definition at line 227 of file NOD_node_declaration.hh.
Definition at line 229 of file NOD_node_declaration.hh.
Definition at line 234 of file NOD_node_declaration.hh.
Definition at line 225 of file NOD_node_declaration.hh.
This socket is used as a toggle for the parent panel.
Definition at line 233 of file NOD_node_declaration.hh.
Definition at line 235 of file NOD_node_declaration.hh.
| std::string blender::nodes::SocketDeclaration::name |
Definition at line 208 of file NOD_node_declaration.hh.
Referenced by blender::ed::space_node::ui_node_link_items().
Definition at line 226 of file NOD_node_declaration.hh.
Definition at line 275 of file NOD_node_declaration.hh.
Indicates that the meaning of the socket values is clear even if the label is not shown. This can result in cleaner UIs in some cases. The drawing code will still draw the label sometimes.
Definition at line 222 of file NOD_node_declaration.hh.
Definition at line 241 of file NOD_node_declaration.hh.
| std::string blender::nodes::SocketDeclaration::short_label |
Definition at line 209 of file NOD_node_declaration.hh.
| std::unique_ptr<SocketNameRNA> blender::nodes::SocketDeclaration::socket_name_rna |
Property that stores the name of the socket so that it can be modified directly from the node without going to the side-bar.
Definition at line 264 of file NOD_node_declaration.hh.
Socket type that corresponds to this socket declaration.
Definition at line 217 of file NOD_node_declaration.hh.
Referenced by blender::ed::space_node::ui_node_link_items().
| StructureType blender::nodes::SocketDeclaration::structure_type = StructureType::Single |
Definition at line 243 of file NOD_node_declaration.hh.
Referenced by blender::compositor::input_descriptor_from_input_socket().
| std::optional<std::string> blender::nodes::SocketDeclaration::translation_context |
Definition at line 212 of file NOD_node_declaration.hh.
| std::unique_ptr<InputSocketUsageInferenceFn> blender::nodes::SocketDeclaration::usage_inference_fn |
Determines whether this input socket is used based on other input values and based on which outputs are used.
Definition at line 273 of file NOD_node_declaration.hh.