Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

node_templates.c File Reference

#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLF_translation.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_node.h"
#include "BKE_scene.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "../interface/interface_intern.h"
#include "ED_node.h"

Go to the source code of this file.

Classes

struct  NodeLinkArg

Defines

#define UI_NODE_LINK_ADD   0
#define UI_NODE_LINK_DISCONNECT   -1
#define UI_NODE_LINK_REMOVE   -2

Typedefs

typedef struct NodeLinkArg NodeLinkArg

Functions

static void node_tag_recursive (bNode *node)
static void node_clear_recursive (bNode *node)
static void node_remove_linked (bNodeTree *ntree, bNode *rem_node)
static void node_socket_disconnect (Main *bmain, bNodeTree *ntree, bNode *node_to, bNodeSocket *sock_to)
static void node_socket_remove (Main *bmain, bNodeTree *ntree, bNode *node_to, bNodeSocket *sock_to)
static void node_socket_add_replace (Main *bmain, bNodeTree *ntree, bNode *node_to, bNodeSocket *sock_to, bNodeTemplate *ntemp, int sock_num)
static void ui_node_link (bContext *UNUSED(C), void *arg_p, void *event_p)
static void ui_node_sock_name (bNodeSocket *sock, char name[UI_MAX_NAME_STR])
static int ui_compatible_sockets (int typeA, int typeB)
static void ui_node_menu_column (NodeLinkArg *arg, int nclass, const char *cname)
static void node_menu_column_foreach_cb (void *calldata, int nclass, const char *name)
static void ui_template_node_link_menu (bContext *C, uiLayout *layout, void *but_p)
void uiTemplateNodeLink (uiLayout *layout, bNodeTree *ntree, bNode *node, bNodeSocket *sock)
static void ui_node_draw_input (uiLayout *layout, bContext *C, bNodeTree *ntree, bNode *node, bNodeSocket *input, int depth)
static void ui_node_draw_node (uiLayout *layout, bContext *C, bNodeTree *ntree, bNode *node, int depth)
void uiTemplateNodeView (uiLayout *layout, bContext *C, bNodeTree *ntree, bNode *node, bNodeSocket *input)

Define Documentation

#define UI_NODE_LINK_ADD   0

Definition at line 236 of file node_templates.c.

#define UI_NODE_LINK_DISCONNECT   -1

Definition at line 237 of file node_templates.c.

Referenced by ui_node_link(), and ui_template_node_link_menu().

#define UI_NODE_LINK_REMOVE   -2

Definition at line 238 of file node_templates.c.

Referenced by ui_node_link(), and ui_template_node_link_menu().


Typedef Documentation

typedef struct NodeLinkArg NodeLinkArg

Function Documentation

static void node_clear_recursive ( bNode node) [static]
static void node_menu_column_foreach_cb ( void *  calldata,
int  nclass,
const char *  name 
) [static]

Definition at line 436 of file node_templates.c.

References ELEM, NODE_CLASS_GROUP, NODE_CLASS_LAYOUT, and ui_node_menu_column().

Referenced by ui_template_node_link_menu().

static void node_remove_linked ( bNodeTree ntree,
bNode rem_node 
) [static]
static void node_socket_add_replace ( Main bmain,
bNodeTree ntree,
bNode node_to,
bNodeSocket sock_to,
bNodeTemplate ntemp,
int  sock_num 
) [static]
static void node_socket_disconnect ( Main bmain,
bNodeTree ntree,
bNode node_to,
bNodeSocket sock_to 
) [static]
static void node_socket_remove ( Main bmain,
bNodeTree ntree,
bNode node_to,
bNodeSocket sock_to 
) [static]
static void node_tag_recursive ( bNode node) [static]
static int ui_compatible_sockets ( int  typeA,
int  typeB 
) [static]

Definition at line 299 of file node_templates.c.

Referenced by ui_node_menu_column().

static void ui_node_draw_input ( uiLayout layout,
bContext C,
bNodeTree ntree,
bNode node,
bNodeSocket input,
int  depth 
) [static]
static void ui_node_draw_node ( uiLayout layout,
bContext C,
bNodeTree ntree,
bNode node,
int  depth 
) [static]
static void ui_node_link ( bContext UNUSEDC,
void *  arg_p,
void *  event_p 
) [static]
static void ui_node_menu_column ( NodeLinkArg arg,
int  nclass,
const char *  cname 
) [static]
static void ui_node_sock_name ( bNodeSocket sock,
char  name[UI_MAX_NAME_STR] 
) [static]
static void ui_template_node_link_menu ( bContext C,
uiLayout layout,
void *  but_p 
) [static]
void uiTemplateNodeLink ( uiLayout layout,
bNodeTree ntree,
bNode node,
bNodeSocket sock 
)
void uiTemplateNodeView ( uiLayout layout,
bContext C,
bNodeTree ntree,
bNode node,
bNodeSocket input 
)