8#include "RNA_prototypes.hh"
19 : editor_node_tree_(nullptr),
20 editor_node_(editor_node),
21 in_active_group_(
false),
22 instance_key_(bke::NODE_INSTANCE_KEY_NONE)
26 while (input !=
nullptr) {
39 while (output !=
nullptr) {
49 output = output->next;
99 while (bSock !=
nullptr) {
100 if (index == editor_node_input_socket_index) {
112 while (bSock !=
nullptr) {
113 if (index == editor_node_output_socket_index) {
127 : node_(node), editor_socket_(b_socket), datatype_(datatype), link_(nullptr)
162 : node_(node), editor_socket_(b_socket), datatype_(datatype)
NodeOutput are sockets that can send data/input.
bNodeSocket * get_bnode_socket() const
void get_editor_value_vector(float *value)
NodeOutput(Node *node, bNodeSocket *b_socket, DataType datatype)
void get_editor_value_color(float *value)
float get_editor_value_float()
NodeOutput * get_output_socket(unsigned int index=0) const
void add_output_socket(DataType datatype)
add an NodeOutput to the collection of output-sockets
NodeInput * get_input_socket(unsigned int index) const
void add_input_socket(DataType datatype)
add an NodeInput to the collection of input-sockets
bNodeSocket * get_editor_output_socket(int editor_node_output_socket_index)
Vector< NodeInput * > inputs_
the list of actual input-sockets
const bNode * get_bnode() const
get the reference to the SDNA bNode struct
Node(bNode *editor_node, bool create_sockets=true)
Vector< NodeOutput * > outputs_
the list of actual output-sockets
bNodeSocket * get_editor_input_socket(int editor_node_input_socket_index)
DataType
possible data types for sockets
@ Vector
Vector data type.
void RNA_float_get_array(PointerRNA *ptr, const char *name, float *values)
float RNA_float_get(PointerRNA *ptr, const char *name)
PointerRNA RNA_pointer_create(ID *id, StructRNA *type, void *data)
struct bNodeSocket * next