42 : m_editorNodeTree(nullptr),
43 m_editorNode(editorNode),
44 m_inActiveGroup(false),
49 while (input !=
nullptr) {
62 while (
output !=
nullptr) {
79 while (!this->
outputs.is_empty()) {
80 delete (this->
outputs.pop_last());
82 while (!this->
inputs.is_empty()) {
83 delete (this->
inputs.pop_last());
95 this->
inputs.append(socket);
122 while (bSock !=
nullptr) {
123 if (index == editorNodeInputSocketIndex) {
135 while (bSock !=
nullptr) {
136 if (index == editorNodeOutputSocketIndex) {
150 :
m_node(
node), m_editorSocket(b_socket), m_datatype(datatype), m_link(nullptr)
185 :
m_node(
node), m_editorSocket(b_socket), m_datatype(datatype)
const bNodeInstanceKey NODE_INSTANCE_KEY_NONE
struct btDbvtNode * m_node
NodeOutput are sockets that can send data/input.
bNodeSocket * getbNodeSocket() const
void getEditorValueColor(float *value)
NodeOutput(Node *node, bNodeSocket *b_socket, DataType datatype)
void getEditorValueVector(float *value)
float getEditorValueFloat()
Vector< NodeInput * > inputs
the list of actual input-sockets
Vector< NodeOutput * > outputs
the list of actual output-sockets
NodeOutput * getOutputSocket(const unsigned int index=0) const
bNodeSocket * getEditorInputSocket(int editorNodeInputSocketIndex)
bNode * getbNode() const
get the reference to the SDNA bNode struct
Node(bNode *editorNode, bool create_sockets=true)
NodeInput * getInputSocket(const unsigned int index) const
bNodeSocket * getEditorOutputSocket(int editorNodeOutputSocketIndex)
void addOutputSocket(DataType datatype)
add an NodeOutput to the collection of output-sockets
void addInputSocket(DataType datatype)
add an NodeInput to the collection of input-sockets
DataType
possible data types for sockets
@ Vector
Vector data type.
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