Blender V2.61 - r43446
|
#include "DNA_listBase.h"
#include "BLI_utildefines.h"
#include "BKE_node.h"
#include "RNA_types.h"
Go to the source code of this file.
Defines | |
#define | SOCK_VECTOR_X 1 |
#define | SOCK_VECTOR_Y 2 |
#define | SOCK_VECTOR_Z 3 |
#define | SOCK_RGBA_R 1 |
#define | SOCK_RGBA_G 2 |
#define | SOCK_RGBA_B 3 |
#define | SOCK_RGBA_A 4 |
#define | SOCK_MESH_VERT_CO 1 |
#define | SOCK_MESH_VERT_NO 2 |
Functions | |
void | node_socket_type_init (struct bNodeSocketType *types[]) |
struct bNodeSocket * | nodeAddInputInt (struct bNodeTree *ntree, struct bNode *node, const char *name, PropertySubType subtype, int value, int min, int max) |
struct bNodeSocket * | nodeAddOutputInt (struct bNodeTree *ntree, struct bNode *node, const char *name) |
struct bNodeSocket * | nodeAddInputFloat (struct bNodeTree *ntree, struct bNode *node, const char *name, PropertySubType subtype, float value, float min, float max) |
struct bNodeSocket * | nodeAddOutputFloat (struct bNodeTree *ntree, struct bNode *node, const char *name) |
struct bNodeSocket * | nodeAddInputBoolean (struct bNodeTree *ntree, struct bNode *node, const char *name, char value) |
struct bNodeSocket * | nodeAddOutputBoolean (struct bNodeTree *ntree, struct bNode *node, const char *name) |
struct bNodeSocket * | nodeAddInputVector (struct bNodeTree *ntree, struct bNode *node, const char *name, PropertySubType subtype, float x, float y, float z, float min, float max) |
struct bNodeSocket * | nodeAddOutputVector (struct bNodeTree *ntree, struct bNode *node, const char *name) |
struct bNodeSocket * | nodeAddInputRGBA (struct bNodeTree *ntree, struct bNode *node, const char *name, float r, float g, float b, float a) |
struct bNodeSocket * | nodeAddOutputRGBA (struct bNodeTree *ntree, struct bNode *node, const char *name) |
struct bNodeSocket * | nodeAddInputShader (struct bNodeTree *ntree, struct bNode *node, const char *name) |
struct bNodeSocket * | nodeAddOutputShader (struct bNodeTree *ntree, struct bNode *node, const char *name) |
struct bNodeSocket * | nodeAddInputMesh (struct bNodeTree *ntree, struct bNode *node, const char *name) |
struct bNodeSocket * | nodeAddOutputMesh (struct bNodeTree *ntree, struct bNode *node, const char *name) |
struct bNodeSocket * | node_add_input_from_template (struct bNodeTree *ntree, struct bNode *node, struct bNodeSocketTemplate *stemp) |
struct bNodeSocket * | node_add_output_from_template (struct bNodeTree *ntree, struct bNode *node, struct bNodeSocketTemplate *stemp) |
void | node_verify_socket_templates (struct bNodeTree *ntree, struct bNode *node) |
Definition in file NOD_socket.h.
#define SOCK_MESH_VERT_CO 1 |
Definition at line 88 of file NOD_socket.h.
#define SOCK_MESH_VERT_NO 2 |
Definition at line 89 of file NOD_socket.h.
#define SOCK_RGBA_A 4 |
Definition at line 86 of file NOD_socket.h.
#define SOCK_RGBA_B 3 |
Definition at line 85 of file NOD_socket.h.
#define SOCK_RGBA_G 2 |
Definition at line 84 of file NOD_socket.h.
#define SOCK_RGBA_R 1 |
Definition at line 83 of file NOD_socket.h.
#define SOCK_VECTOR_X 1 |
Definition at line 79 of file NOD_socket.h.
#define SOCK_VECTOR_Y 2 |
Definition at line 80 of file NOD_socket.h.
#define SOCK_VECTOR_Z 3 |
Definition at line 81 of file NOD_socket.h.
struct bNodeSocket* node_add_input_from_template | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
struct bNodeSocketTemplate * | stemp | ||
) | [read] |
Definition at line 280 of file node_socket.c.
References bNodeSocketTemplate::flag, bNodeSocket::flag, bNodeSocketTemplate::max, bNodeSocketTemplate::min, bNodeSocketTemplate::name, nodeAddInputBoolean(), nodeAddInputFloat(), nodeAddInputInt(), nodeAddInputMesh(), nodeAddInputRGBA(), nodeAddInputShader(), nodeAddInputVector(), nodeAddSocket(), SOCK_BOOLEAN, SOCK_FLOAT, SOCK_IN, SOCK_INT, SOCK_MESH, SOCK_RGBA, SOCK_SHADER, SOCK_VECTOR, bNodeSocketTemplate::subtype, bNodeSocketTemplate::type, bNodeSocketTemplate::val1, bNodeSocketTemplate::val2, bNodeSocketTemplate::val3, and bNodeSocketTemplate::val4.
Referenced by node_add_sockets_from_type(), and verify_socket_template().
struct bNodeSocket* node_add_output_from_template | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
struct bNodeSocketTemplate * | stemp | ||
) | [read] |
Definition at line 312 of file node_socket.c.
References bNodeSocketTemplate::name, nodeAddOutputBoolean(), nodeAddOutputFloat(), nodeAddOutputInt(), nodeAddOutputMesh(), nodeAddOutputRGBA(), nodeAddOutputShader(), nodeAddOutputVector(), nodeAddSocket(), SOCK_BOOLEAN, SOCK_FLOAT, SOCK_INT, SOCK_MESH, SOCK_OUT, SOCK_RGBA, SOCK_SHADER, SOCK_VECTOR, and bNodeSocketTemplate::type.
Referenced by node_add_sockets_from_type(), and verify_socket_template().
void node_socket_type_init | ( | struct bNodeSocketType * | types[] | ) |
Definition at line 160 of file node_socket.c.
References INIT_TYPE.
Referenced by ntreeGetSocketType().
Definition at line 455 of file node_socket.c.
References bNode::inputs, bNodeType::inputs, bNode::outputs, bNodeType::outputs, SOCK_IN, SOCK_OUT, bNodeSocketTemplate::type, bNode::typeinfo, and verify_socket_template_list().
Referenced by lib_nodetree_init_types_cb().
struct bNodeSocket* nodeAddInputBoolean | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name, | ||
char | value | ||
) | [read] |
Definition at line 209 of file node_socket.c.
References bNodeSocket::default_value, nodeAddSocket(), SOCK_BOOLEAN, SOCK_IN, and bNodeSocketValueBoolean::value.
Referenced by node_add_input_from_template().
struct bNodeSocket* nodeAddInputFloat | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name, | ||
PropertySubType | subtype, | ||
float | value, | ||
float | min, | ||
float | max | ||
) | [read] |
Definition at line 192 of file node_socket.c.
References bNodeSocket::default_value, bNodeSocketValueFloat::max, bNodeSocketValueFloat::min, nodeAddSocket(), SOCK_FLOAT, SOCK_IN, bNodeSocketValueFloat::subtype, and bNodeSocketValueFloat::value.
Referenced by node_add_input_from_template(), node_forloop_init(), and node_whileloop_init().
struct bNodeSocket* nodeAddInputInt | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name, | ||
PropertySubType | subtype, | ||
int | value, | ||
int | min, | ||
int | max | ||
) | [read] |
Definition at line 175 of file node_socket.c.
References bNodeSocket::default_value, bNodeSocketValueInt::max, bNodeSocketValueInt::min, nodeAddSocket(), SOCK_IN, SOCK_INT, bNodeSocketValueInt::subtype, and bNodeSocketValueInt::value.
Referenced by node_add_input_from_template().
struct bNodeSocket* nodeAddInputMesh | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name | ||
) | [read] |
Definition at line 269 of file node_socket.c.
References nodeAddSocket(), SOCK_IN, and SOCK_MESH.
Referenced by node_add_input_from_template().
struct bNodeSocket* nodeAddInputRGBA | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | a | ||
) | [read] |
Definition at line 241 of file node_socket.c.
References bNodeSocket::default_value, nodeAddSocket(), SOCK_IN, SOCK_RGBA, and bNodeSocketValueRGBA::value.
Referenced by node_add_input_from_template().
struct bNodeSocket* nodeAddInputShader | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name | ||
) | [read] |
Definition at line 258 of file node_socket.c.
References nodeAddSocket(), SOCK_IN, and SOCK_SHADER.
Referenced by node_add_input_from_template().
struct bNodeSocket* nodeAddInputVector | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name, | ||
PropertySubType | subtype, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | min, | ||
float | max | ||
) | [read] |
Definition at line 222 of file node_socket.c.
References bNodeSocket::default_value, bNodeSocketValueVector::max, bNodeSocketValueVector::min, nodeAddSocket(), SOCK_IN, SOCK_VECTOR, bNodeSocketValueVector::subtype, and bNodeSocketValueVector::value.
Referenced by node_add_input_from_template().
struct bNodeSocket* nodeAddOutputBoolean | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name | ||
) | [read] |
Definition at line 216 of file node_socket.c.
References nodeAddSocket(), SOCK_BOOLEAN, and SOCK_OUT.
Referenced by node_add_output_from_template().
struct bNodeSocket* nodeAddOutputFloat | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name | ||
) | [read] |
Definition at line 203 of file node_socket.c.
References nodeAddSocket(), SOCK_FLOAT, and SOCK_OUT.
Referenced by node_add_output_from_template().
struct bNodeSocket* nodeAddOutputInt | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name | ||
) | [read] |
Definition at line 186 of file node_socket.c.
References nodeAddSocket(), SOCK_INT, and SOCK_OUT.
Referenced by node_add_output_from_template().
struct bNodeSocket* nodeAddOutputMesh | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name | ||
) | [read] |
Definition at line 274 of file node_socket.c.
References nodeAddSocket(), SOCK_MESH, and SOCK_OUT.
Referenced by node_add_output_from_template().
struct bNodeSocket* nodeAddOutputRGBA | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name | ||
) | [read] |
Definition at line 252 of file node_socket.c.
References nodeAddSocket(), SOCK_OUT, and SOCK_RGBA.
Referenced by node_add_output_from_template().
struct bNodeSocket* nodeAddOutputShader | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name | ||
) | [read] |
Definition at line 263 of file node_socket.c.
References nodeAddSocket(), SOCK_OUT, and SOCK_SHADER.
Referenced by node_add_output_from_template().
struct bNodeSocket* nodeAddOutputVector | ( | struct bNodeTree * | ntree, |
struct bNode * | node, | ||
const char * | name | ||
) | [read] |
Definition at line 235 of file node_socket.c.
References nodeAddSocket(), SOCK_OUT, and SOCK_VECTOR.
Referenced by node_add_output_from_template().