7 #include "RNA_prototypes.h"
18 : editor_node_tree_(nullptr),
19 editor_node_(editor_node),
20 in_active_group_(false),
25 while (
input !=
nullptr) {
38 while (
output !=
nullptr) {
98 while (bSock !=
nullptr) {
99 if (index == editor_node_input_socket_index) {
111 while (bSock !=
nullptr) {
112 if (index == editor_node_output_socket_index) {
126 : node_(
node), editor_socket_(b_socket), datatype_(datatype), link_(nullptr)
161 : node_(
node), editor_socket_(b_socket), datatype_(datatype)
const bNodeInstanceKey NODE_INSTANCE_KEY_NONE
NodeOutput are sockets that can send data/input.
void get_editor_value_vector(float *value)
NodeOutput(Node *node, bNodeSocket *b_socket, DataType datatype)
bNodeSocket * get_bnode_socket() const
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
bNode * get_bnode() const
get the reference to the SDNA bNode struct
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
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.
ccl_global KernelShaderEvalInput ccl_global float * output
ccl_global KernelShaderEvalInput * input
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
void RNA_float_get_array(PointerRNA *ptr, const char *name, float *values)
float RNA_float_get(PointerRNA *ptr, const char *name)
struct bNodeSocket * next