Blender V5.0
NodeDeclaration Class Reference

#include <NOD_node_declaration.hh>

Public Member Functions

void assert_valid () const
bool matches (const bNode &node) const
Span< SocketDeclaration * > sockets (eNodeSocketInOut in_out) const
const aal::RelationsInNode * anonymous_attribute_relations () const

Public Attributes

Vector< ItemDeclarationPtr > all_items
Vector< ItemDeclaration * > root_items
Vector< SocketDeclaration * > inputs
Vector< SocketDeclaration * > outputs
Vector< PanelDeclaration * > panels
std::unique_ptr< aal::RelationsInNode > anonymous_attribute_relations_
bool skip_updating_sockets = false
bool use_custom_socket_order = false
bool allow_any_socket_order = false
bool is_context_dependent = false
friend NodeDeclarationBuilder

Detailed Description

Definition at line 618 of file NOD_node_declaration.hh.

Member Function Documentation

◆ anonymous_attribute_relations()

const aal::RelationsInNode * blender::nodes::NodeDeclaration::anonymous_attribute_relations ( ) const
inline

Definition at line 656 of file NOD_node_declaration.hh.

◆ assert_valid()

Asserts that the declaration is considered valid.

Definition at line 207 of file node_declaration.cc.

◆ matches()

bool blender::nodes::NodeDeclaration::matches ( const bNode & node) const

Definition at line 222 of file node_declaration.cc.

◆ sockets()

Member Data Documentation

◆ all_items

Contains all items including recursive children.

Definition at line 621 of file NOD_node_declaration.hh.

◆ allow_any_socket_order

Usually output sockets come before input sockets currently. Only some specific nodes are exempt from that rule for now.

Definition at line 641 of file NOD_node_declaration.hh.

◆ anonymous_attribute_relations_

Definition at line 628 of file NOD_node_declaration.hh.

◆ inputs

◆ is_context_dependent

True if any context was used to build this declaration.

Definition at line 646 of file NOD_node_declaration.hh.

◆ NodeDeclarationBuilder

◆ outputs

◆ panels

◆ root_items

Contains only the items in the root.

Definition at line 623 of file NOD_node_declaration.hh.

◆ skip_updating_sockets

Leave the sockets in place, even if they don't match the declaration. Used for dynamic declarations when the information used to build the declaration is missing, but might become available again in the future.

Definition at line 633 of file NOD_node_declaration.hh.

◆ use_custom_socket_order

Use order of socket declarations for socket order instead of conventional outputs | buttons | inputs order. Panels are only supported when using custom socket order.

Definition at line 637 of file NOD_node_declaration.hh.


The documentation for this class was generated from the following files: