Blender  V2.59
Classes | Defines | Typedefs | Functions
node_draw.c File Reference
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_node_types.h"
#include "DNA_material_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_space_types.h"
#include "DNA_screen_types.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_threads.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_main.h"
#include "BKE_node.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_node.h"
#include "ED_gpencil.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "RNA_access.h"
#include "CMP_node.h"
#include "SHD_node.h"
#include "node_intern.h"

Go to the source code of this file.

Classes

struct  SocketVectorMenuArgs

Defines

#define NODE_GROUP_FRAME   120

Typedefs

typedef struct SocketVectorMenuArgs SocketVectorMenuArgs

Functions

void ui_dropshadow (rctf *rct, float radius, float aspect, int select)
void ED_node_changed_update (ID *id, bNode *node)
static int has_nodetree (bNodeTree *ntree, bNodeTree *lookup)
void ED_node_generic_update (Main *bmain, bNodeTree *ntree, bNode *node)
static void do_node_internal_buttons (bContext *C, void *node_v, int event)
static void node_scaling_widget (int color_id, float aspect, float xmin, float ymin, float xmax, float ymax)
static void node_uiblocks_init (const bContext *C, bNodeTree *ntree)
static void node_update (const bContext *C, bNodeTree *ntree, bNode *node)
static void node_update_hidden (bNode *node)
static int node_get_colorid (bNode *node)
static void node_update_group (const bContext *C, bNodeTree *UNUSED(ntree), bNode *gnode)
static void node_draw_mute_line (View2D *v2d, SpaceNode *snode, bNode *node)
static void circle_draw (float x, float y, float size, int col[3])
static void socket_circle_draw (bNodeSocket *sock, float size)
static void node_sync_cb (bContext *UNUSED(C), void *snode_v, void *node_v)
static void node_draw_preview (bNodePreview *preview, rctf *prv)
static uiBlock * socket_vector_menu (bContext *C, ARegion *ar, void *args_v)
static void node_draw_socket_button (bNodeTree *ntree, bNodeSocket *sock, const char *name, uiBlock *block, int x, int y, int width, uiButHandleFunc cb, void *arg1, void *arg2)
static void node_draw_basis (const bContext *C, ARegion *ar, SpaceNode *snode, bNodeTree *ntree, bNode *node)
static void node_draw_hidden (const bContext *C, ARegion *ar, SpaceNode *snode, bNode *node)
static void node_draw_nodetree (const bContext *C, ARegion *ar, SpaceNode *snode, bNodeTree *ntree)
static void group_verify_cb (bContext *UNUSED(C), void *UNUSED(snode_v), void *ngroup_v)
static void node_draw_group (const bContext *C, ARegion *ar, SpaceNode *snode, bNodeTree *ntree, bNode *gnode)
void drawnodespace (const bContext *C, ARegion *ar, View2D *v2d)

Detailed Description

Definition in file node_draw.c.


Define Documentation

#define NODE_GROUP_FRAME   120

Definition at line 79 of file node_draw.c.

Referenced by node_draw_group(), and node_update_group().


Typedef Documentation


Function Documentation

static void circle_draw ( float  x,
float  y,
float  size,
int  col[3] 
) [static]

Definition at line 517 of file node_draw.c.

References co, and si.

Referenced by socket_circle_draw().

static void do_node_internal_buttons ( bContext *  C,
void *  node_v,
int  event 
) [static]

Definition at line 149 of file node_draw.c.

References B_NODE_EXEC, CTX_wm_space_node(), ED_node_changed_update(), and SpaceNode::id.

Referenced by node_uiblocks_init().

void drawnodespace ( const bContext *  C,
ARegion *  ar,
View2D *  v2d 
)
void ED_node_changed_update ( ID *  id,
bNode *  node 
)
void ED_node_generic_update ( Main *  bmain,
bNodeTree *  ntree,
bNode *  node 
)
static void group_verify_cb ( bContext *  UNUSEDC,
void *  UNUSEDsnode_v,
void *  ngroup_v 
) [static]

Definition at line 1040 of file node_draw.c.

References nodeGroupVerify().

Referenced by node_draw_group().

static int has_nodetree ( bNodeTree *  ntree,
bNodeTree *  lookup 
) [static]

Definition at line 111 of file node_draw.c.

References ListBase::first, bNode::id, bNode::next, NODE_GROUP, bNodeTree::nodes, and bNode::type.

Referenced by ED_node_generic_update().

static void node_draw_basis ( const bContext *  C,
ARegion *  ar,
SpaceNode *  snode,
bNodeTree *  ntree,
bNode *  node 
) [static]
static void node_draw_group ( const bContext *  C,
ARegion *  ar,
SpaceNode *  snode,
bNodeTree *  ntree,
bNode *  gnode 
) [static]
static void node_draw_hidden ( const bContext *  C,
ARegion *  ar,
SpaceNode *  snode,
bNode *  node 
) [static]
static void node_draw_mute_line ( View2D *  v2d,
SpaceNode *  snode,
bNode *  node 
) [static]
static void node_draw_nodetree ( const bContext *  C,
ARegion *  ar,
SpaceNode *  snode,
bNodeTree *  ntree 
) [static]
static void node_draw_preview ( bNodePreview *  preview,
rctf *  prv 
) [static]
static void node_draw_socket_button ( bNodeTree *  ntree,
bNodeSocket *  sock,
const char *  name,
uiBlock *  block,
int  x,
int  y,
int  width,
uiButHandleFunc  cb,
void *  arg1,
void *  arg2 
) [static]
static int node_get_colorid ( bNode *  node) [static]
static void node_scaling_widget ( int  color_id,
float  aspect,
float  xmin,
float  ymin,
float  xmax,
float  ymax 
) [static]

Definition at line 159 of file node_draw.c.

References fdrawline(), and UI_ThemeColorShade().

Referenced by node_draw_basis().

static void node_sync_cb ( bContext *  UNUSEDC,
void *  snode_v,
void *  node_v 
) [static]

Definition at line 576 of file node_draw.c.

References nodeShaderSynchronizeID(), NTREE_SHADER, and SpaceNode::treetype.

Referenced by node_draw_basis().

static void node_uiblocks_init ( const bContext *  C,
bNodeTree *  ntree 
) [static]
static void node_update ( const bContext *  C,
bNodeTree *  ntree,
bNode *  node 
) [static]
static void node_update_group ( const bContext *  C,
bNodeTree *  UNUSEDntree,
bNode *  gnode 
) [static]
static void node_update_hidden ( bNode *  node) [static]
static void socket_circle_draw ( bNodeSocket *  sock,
float  size 
) [static]
static uiBlock* socket_vector_menu ( bContext *  C,
ARegion *  ar,
void *  args_v 
) [static]
void ui_dropshadow ( rctf *  rct,
float  radius,
float  aspect,
int  select 
)