Blender V2.61 - r43446
Functions

node_common.c File Reference

#include <string.h>
#include "DNA_action_types.h"
#include "DNA_anim_types.h"
#include "DNA_node_types.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BKE_action.h"
#include "BKE_animsys.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BLI_math.h"
#include "BKE_node.h"
#include "BKE_utildefines.h"
#include "RNA_access.h"
#include "RNA_types.h"
#include "MEM_guardedalloc.h"
#include "node_common.h"
#include "node_exec.h"
#include "NOD_socket.h"

Go to the source code of this file.

Functions

bNodeSocketnode_group_find_input (bNode *gnode, bNodeSocket *gsock)
bNodeSocketnode_group_find_output (bNode *gnode, bNodeSocket *gsock)
bNodeSocketnode_group_add_extern_socket (bNodeTree *UNUSED(ntree), ListBase *lb, int in_out, bNodeSocket *gsock)
bNodenode_group_make_from_selected (bNodeTree *ntree)
static void convert_socket_value (bNodeSocket *from, bNodeSocket *to)
static void copy_socket_value (bNodeSocket *from, bNodeSocket *to)
int node_group_ungroup (bNodeTree *ntree, bNode *gnode)
bNodeSocketnode_group_add_socket (bNodeTree *ngroup, const char *name, int type, int in_out)
bNodeSocketnode_group_expose_socket (bNodeTree *ngroup, bNodeSocket *sock, int in_out)
void node_group_expose_all_sockets (bNodeTree *ngroup)
void node_group_remove_socket (bNodeTree *ngroup, bNodeSocket *gsock, int in_out)
const char * node_group_label (bNode *node)
int node_group_valid (bNodeTree *ntree, bNodeTemplate *ntemp)
bNodeTemplate node_group_template (bNode *node)
void node_group_init (bNodeTree *ntree, bNode *node, bNodeTemplate *ntemp)
static bNodeSocketgroup_verify_socket (bNodeTree *ntree, ListBase *lb, int in_out, bNodeSocket *gsock)
static void group_verify_socket_list (bNodeTree *ntree, bNode *node, ListBase *lb, int in_out, ListBase *glb)
void node_group_verify (struct bNodeTree *ntree, struct bNode *node, struct ID *id)
struct bNodeTreenode_group_edit_get (bNode *node)
struct bNodeTreenode_group_edit_set (bNode *node, int edit)
void node_group_edit_clear (bNode *node)
void node_group_link (bNodeTree *ntree, bNodeSocket *sock, int in_out)
bNodeTemplate node_forloop_template (bNode *node)
void node_forloop_init (bNodeTree *ntree, bNode *node, bNodeTemplate *ntemp)
void node_forloop_init_tree (bNodeTree *ntree)
static void loop_sync (bNodeTree *ntree, int sync_in_out)
void node_loop_update_tree (bNodeTree *ngroup)
void node_whileloop_init (bNodeTree *ntree, bNode *node, bNodeTemplate *ntemp)
void node_whileloop_init_tree (bNodeTree *ntree)
bNodeTemplate node_whileloop_template (bNode *node)
void register_node_type_frame (bNodeTreeType *ttype)

Detailed Description

Definition in file node_common.c.


Function Documentation

static void convert_socket_value ( bNodeSocket from,
bNodeSocket to 
) [static]
static void copy_socket_value ( bNodeSocket from,
bNodeSocket to 
) [static]
static bNodeSocket* group_verify_socket ( bNodeTree ntree,
ListBase lb,
int  in_out,
bNodeSocket gsock 
) [static]
static void group_verify_socket_list ( bNodeTree ntree,
bNode node,
ListBase lb,
int  in_out,
ListBase glb 
) [static]
static void loop_sync ( bNodeTree ntree,
int  sync_in_out 
) [static]
void node_forloop_init ( bNodeTree ntree,
bNode node,
bNodeTemplate ntemp 
)
void node_forloop_init_tree ( bNodeTree ntree)
bNodeTemplate node_forloop_template ( bNode node) [read]

Definition at line 825 of file node_common.c.

References bNode::id, bNodeTemplate::ngroup, NODE_FORLOOP, and bNodeTemplate::type.

bNodeSocket* node_group_add_extern_socket ( bNodeTree UNUSEDntree,
ListBase lb,
int  in_out,
bNodeSocket gsock 
)
bNodeSocket* node_group_add_socket ( bNodeTree ngroup,
const char *  name,
int  type,
int  in_out 
) [read]
void node_group_edit_clear ( bNode node)
struct bNodeTree* node_group_edit_get ( bNode node) [read]
struct bNodeTree* node_group_edit_set ( bNode node,
int  edit 
) [read]
void node_group_expose_all_sockets ( bNodeTree ngroup)
bNodeSocket* node_group_expose_socket ( bNodeTree ngroup,
bNodeSocket sock,
int  in_out 
) [read]
bNodeSocket* node_group_find_input ( bNode gnode,
bNodeSocket gsock 
) [read]

Definition at line 63 of file node_common.c.

References ListBase::first, bNodeSocket::groupsock, bNode::inputs, bNodeSocket::next, and NULL.

Referenced by node_group_ungroup().

bNodeSocket* node_group_find_output ( bNode gnode,
bNodeSocket gsock 
) [read]
void node_group_init ( bNodeTree ntree,
bNode node,
bNodeTemplate ntemp 
)
const char* node_group_label ( bNode node)
void node_group_link ( bNodeTree ntree,
bNodeSocket sock,
int  in_out 
)

Definition at line 812 of file node_common.c.

References node_group_expose_socket().

bNode* node_group_make_from_selected ( bNodeTree ntree) [read]
void node_group_remove_socket ( bNodeTree ngroup,
bNodeSocket gsock,
int  in_out 
)
bNodeTemplate node_group_template ( bNode node) [read]
int node_group_ungroup ( bNodeTree ntree,
bNode gnode 
)
int node_group_valid ( bNodeTree ntree,
bNodeTemplate ntemp 
)
void node_group_verify ( struct bNodeTree ntree,
struct bNode node,
struct ID id 
)
void node_loop_update_tree ( bNodeTree ngroup)
void node_whileloop_init ( bNodeTree ntree,
bNode node,
bNodeTemplate ntemp 
)
void node_whileloop_init_tree ( bNodeTree ntree)
bNodeTemplate node_whileloop_template ( bNode node) [read]

Definition at line 969 of file node_common.c.

References bNode::id, bNodeTemplate::ngroup, NODE_WHILELOOP, and bNodeTemplate::type.

void register_node_type_frame ( bNodeTreeType ttype)