Blender V2.61 - r43446
Defines | Functions

NOD_socket.h File Reference

#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 bNodeSocketnodeAddInputInt (struct bNodeTree *ntree, struct bNode *node, const char *name, PropertySubType subtype, int value, int min, int max)
struct bNodeSocketnodeAddOutputInt (struct bNodeTree *ntree, struct bNode *node, const char *name)
struct bNodeSocketnodeAddInputFloat (struct bNodeTree *ntree, struct bNode *node, const char *name, PropertySubType subtype, float value, float min, float max)
struct bNodeSocketnodeAddOutputFloat (struct bNodeTree *ntree, struct bNode *node, const char *name)
struct bNodeSocketnodeAddInputBoolean (struct bNodeTree *ntree, struct bNode *node, const char *name, char value)
struct bNodeSocketnodeAddOutputBoolean (struct bNodeTree *ntree, struct bNode *node, const char *name)
struct bNodeSocketnodeAddInputVector (struct bNodeTree *ntree, struct bNode *node, const char *name, PropertySubType subtype, float x, float y, float z, float min, float max)
struct bNodeSocketnodeAddOutputVector (struct bNodeTree *ntree, struct bNode *node, const char *name)
struct bNodeSocketnodeAddInputRGBA (struct bNodeTree *ntree, struct bNode *node, const char *name, float r, float g, float b, float a)
struct bNodeSocketnodeAddOutputRGBA (struct bNodeTree *ntree, struct bNode *node, const char *name)
struct bNodeSocketnodeAddInputShader (struct bNodeTree *ntree, struct bNode *node, const char *name)
struct bNodeSocketnodeAddOutputShader (struct bNodeTree *ntree, struct bNode *node, const char *name)
struct bNodeSocketnodeAddInputMesh (struct bNodeTree *ntree, struct bNode *node, const char *name)
struct bNodeSocketnodeAddOutputMesh (struct bNodeTree *ntree, struct bNode *node, const char *name)
struct bNodeSocketnode_add_input_from_template (struct bNodeTree *ntree, struct bNode *node, struct bNodeSocketTemplate *stemp)
struct bNodeSocketnode_add_output_from_template (struct bNodeTree *ntree, struct bNode *node, struct bNodeSocketTemplate *stemp)
void node_verify_socket_templates (struct bNodeTree *ntree, struct bNode *node)

Detailed Description

Definition in file NOD_socket.h.


Define Documentation

#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.


Function Documentation

struct bNodeSocket* node_add_input_from_template ( struct bNodeTree ntree,
struct bNode node,
struct bNodeSocketTemplate stemp 
) [read]
struct bNodeSocket* node_add_output_from_template ( struct bNodeTree ntree,
struct bNode node,
struct bNodeSocketTemplate stemp 
) [read]
void node_socket_type_init ( struct bNodeSocketType types[])

Definition at line 160 of file node_socket.c.

References INIT_TYPE.

Referenced by ntreeGetSocketType().

void node_verify_socket_templates ( struct bNodeTree ntree,
struct bNode node 
)
struct bNodeSocket* nodeAddInputBoolean ( struct bNodeTree ntree,
struct bNode node,
const char *  name,
char  value 
) [read]
struct bNodeSocket* nodeAddInputFloat ( struct bNodeTree ntree,
struct bNode node,
const char *  name,
PropertySubType  subtype,
float  value,
float  min,
float  max 
) [read]
struct bNodeSocket* nodeAddInputInt ( struct bNodeTree ntree,
struct bNode node,
const char *  name,
PropertySubType  subtype,
int  value,
int  min,
int  max 
) [read]
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]
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]
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().