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

drawnode.c File Reference

#include <math.h>
#include <stdio.h>
#include <string.h>
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.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 "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_node.h"
#include "NOD_composite.h"
#include "NOD_shader.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "BLF_api.h"
#include "MEM_guardedalloc.h"
#include "RNA_access.h"
#include "ED_node.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "node_intern.h"

Go to the source code of this file.

Classes

struct  SocketComponentMenuArgs

Defines

#define NODE_GROUP_FRAME   120
#define LINK_RESOL   24

Typedefs

typedef struct
SocketComponentMenuArgs 
SocketComponentMenuArgs

Functions

void ui_dropshadow (rctf *rct, float radius, float aspect, int select)
static void node_sync_cb (bContext *UNUSED(C), void *snode_v, void *node_v)
static void node_socket_button_label (const bContext *UNUSED(C), uiBlock *block, bNodeTree *UNUSED(ntree), bNode *UNUSED(node), bNodeSocket *sock, const char *UNUSED(name), int x, int y, int width)
static void node_socket_button_default (const bContext *C, uiBlock *block, bNodeTree *ntree, bNode *node, bNodeSocket *sock, const char *name, int x, int y, int width)
static uiBlocksocket_component_menu (bContext *C, ARegion *ar, void *args_v)
static void node_socket_button_components (const bContext *C, uiBlock *block, bNodeTree *ntree, bNode *node, bNodeSocket *sock, const char *name, int x, int y, int width)
static void node_socket_button_color (const bContext *C, uiBlock *block, bNodeTree *ntree, bNode *node, bNodeSocket *sock, const char *name, int x, int y, int width)
static void node_buts_value (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_buts_rgb (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_buts_mix_rgb (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_buts_time (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_buts_colorramp (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_buts_curvevec (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_buts_curvecol (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_normal_cb (bContext *C, void *ntree_v, void *node_v)
static void node_buts_normal (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_dynamic_update_cb (bContext *C, void *UNUSED(ntree_v), void *node_v)
static void node_buts_texture (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_buts_math (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static int node_resize_area_default (bNode *node, int x, int y)
static void node_update_group (const bContext *C, bNodeTree *ntree, bNode *gnode)
static void update_group_input_cb (bContext *UNUSED(C), void *UNUSED(snode_v), void *ngroup_v)
static void update_group_output_cb (bContext *UNUSED(C), void *UNUSED(snode_v), void *ngroup_v)
static void draw_group_socket_name (SpaceNode *snode, bNode *gnode, bNodeSocket *sock, int in_out, float xoffset, float yoffset)
static void draw_group_socket (const bContext *C, SpaceNode *snode, bNodeTree *ntree, bNode *gnode, bNodeSocket *sock, bNodeSocket *gsock, int index, int in_out)
static void node_draw_group (const bContext *C, ARegion *ar, SpaceNode *snode, bNodeTree *ntree, bNode *gnode)
void node_uifunc_group (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_common_buts_whileloop (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_update_frame (const bContext *UNUSED(C), bNodeTree *UNUSED(ntree), bNode *node)
static void node_common_set_butfunc (bNodeType *ntype)
static void node_browse_text_cb (bContext *C, void *ntree_v, void *node_v)
static void node_shader_buts_material (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_shader_buts_mapping (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_shader_buts_vect_math (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_shader_buts_geometry (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_shader_buts_attribute (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_shader_buts_tex_image (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_shader_buts_tex_sky (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_shader_buts_tex_gradient (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_shader_buts_tex_magic (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_shader_buts_tex_wave (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_shader_buts_tex_musgrave (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_shader_buts_tex_voronoi (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_shader_buts_glossy (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_shader_buts_dynamic (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_shader_set_butfunc (bNodeType *ntype)
static void node_composit_buts_image (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_composit_buts_renderlayers (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_composit_buts_blur (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_dblur (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_bilateralblur (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_defocus (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_glare (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_tonemap (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_lensdist (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_vecblur (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_filter (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_flip (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_crop (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_splitviewer (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_double_edge_mask (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_map_value (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_alphaover (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_zcombine (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_hue_sat (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_dilateerode (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_diff_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_distance_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_color_spill (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_chroma_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_color_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_channel_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_luma_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_map_uv (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_id_mask (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_file_output (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_scale (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_rotate (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_invert (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_premulkey (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_view_levels (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_colorbalance (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_colorbalance_but (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_huecorrect (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_ycc (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_movieclip (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_composit_buts_stabilize2d (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_composit_buts_transform (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_composit_buts_moviedistortion (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_composit_set_butfunc (bNodeType *ntype)
static void node_texture_buts_bricks (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_texture_buts_proc (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_texture_buts_image (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_texture_buts_output (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
static void node_texture_set_butfunc (bNodeType *ntype)
void ED_init_node_butfuncs (void)
void draw_nodespace_back_pix (ARegion *ar, SpaceNode *snode, int color_manage)
int node_link_bezier_points (View2D *v2d, SpaceNode *snode, bNodeLink *link, float coord_array[][2], int resol)
void node_draw_link_bezier (View2D *v2d, SpaceNode *snode, bNodeLink *link, int th_col1, int do_shaded, int th_col2, int do_triple, int th_col3)
static void node_link_straight_points (View2D *UNUSED(v2d), SpaceNode *snode, bNodeLink *link, float coord_array[][2])
void node_draw_link_straight (View2D *v2d, SpaceNode *snode, bNodeLink *link, int th_col1, int do_shaded, int th_col2, int do_triple, int th_col3)
void node_draw_link (View2D *v2d, SpaceNode *snode, bNodeLink *link)

Variables

static float * _sample_col = NULL

Detailed Description

Definition in file drawnode.c.


Define Documentation

#define LINK_RESOL   24

Definition at line 2379 of file drawnode.c.

Referenced by node_draw_link_bezier(), and node_draw_link_straight().

#define NODE_GROUP_FRAME   120

Definition at line 457 of file drawnode.c.

Referenced by draw_group_socket(), node_draw_group(), and node_update_group().


Typedef Documentation


Function Documentation

static void draw_group_socket ( const bContext C,
SpaceNode snode,
bNodeTree ntree,
bNode gnode,
bNodeSocket sock,
bNodeSocket gsock,
int  index,
int  in_out 
) [static]
static void draw_group_socket_name ( SpaceNode snode,
bNode gnode,
bNodeSocket sock,
int  in_out,
float  xoffset,
float  yoffset 
) [static]
void draw_nodespace_back_pix ( ARegion ar,
SpaceNode snode,
int  color_manage 
)
void ED_init_node_butfuncs ( void  )
static void node_browse_text_cb ( bContext C,
void *  ntree_v,
void *  node_v 
) [static]
static void node_buts_colorramp ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_buts_curvecol ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_buts_curvevec ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 296 of file drawnode.c.

References uiTemplateCurveMapping().

Referenced by node_composit_set_butfunc(), and node_shader_set_butfunc().

static void node_buts_math ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 431 of file drawnode.c.

References uiItemR().

Referenced by node_composit_set_butfunc(), node_shader_set_butfunc(), and node_texture_set_butfunc().

static void node_buts_mix_rgb ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_buts_normal ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_buts_rgb ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_buts_texture ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_buts_time ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_buts_value ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_common_buts_whileloop ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 869 of file drawnode.c.

References NULL, and uiItemR().

Referenced by node_common_set_butfunc().

static void node_common_set_butfunc ( bNodeType ntype) [static]
static void node_composit_buts_alphaover ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1508 of file drawnode.c.

References NULL, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_bilateralblur ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1314 of file drawnode.c.

References NULL, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_blur ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_composit_buts_channel_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_composit_buts_chroma_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1585 of file drawnode.c.

References NULL, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_color_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1599 of file drawnode.c.

References NULL, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_color_spill ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_composit_buts_colorbalance ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_composit_buts_colorbalance_but ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1746 of file drawnode.c.

References NULL, RNA_enum_get(), uiItemR(), and uiTemplateColorWheel().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_crop ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1444 of file drawnode.c.

References NULL, RNA_boolean_get(), uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_dblur ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1290 of file drawnode.c.

References NULL, uiItemL(), uiItemR(), uiItemS(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_defocus ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_composit_buts_diff_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1541 of file drawnode.c.

References NULL, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_dilateerode ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1536 of file drawnode.c.

References NULL, and uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_distance_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1550 of file drawnode.c.

References NULL, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_double_edge_mask ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1475 of file drawnode.c.

References uiItemL(), uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_file_output ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_composit_buts_filter ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1434 of file drawnode.c.

References uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_flip ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1439 of file drawnode.c.

References uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_glare ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1356 of file drawnode.c.

References NULL, RNA_enum_get(), UI_ITEM_R_SLIDER, and uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_hue_sat ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1526 of file drawnode.c.

References NULL, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_huecorrect ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1773 of file drawnode.c.

References uiTemplateCurveMapping().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_id_mask ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1649 of file drawnode.c.

References NULL, and uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_image ( uiLayout layout,
bContext C,
PointerRNA ptr 
) [static]
static void node_composit_buts_invert ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1683 of file drawnode.c.

References NULL, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_lensdist ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1405 of file drawnode.c.

References NULL, RNA_boolean_get(), uiItemR(), uiLayoutColumn(), and uiLayoutSetActive().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_luma_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1635 of file drawnode.c.

References NULL, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_map_uv ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1644 of file drawnode.c.

References NULL, and uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_map_value ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1487 of file drawnode.c.

References NULL, RNA_boolean_get(), uiItemR(), uiLayoutColumn(), and uiLayoutSetActive().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_movieclip ( uiLayout layout,
bContext C,
PointerRNA ptr 
) [static]

Definition at line 1783 of file drawnode.c.

References NULL, and uiTemplateID().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_moviedistortion ( uiLayout layout,
bContext C,
PointerRNA ptr 
) [static]

Definition at line 1805 of file drawnode.c.

References PointerRNA::data, bNode::id, NULL, uiItemR(), and uiTemplateID().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_premulkey ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1692 of file drawnode.c.

References uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_renderlayers ( uiLayout layout,
bContext C,
PointerRNA ptr 
) [static]
static void node_composit_buts_rotate ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1678 of file drawnode.c.

References uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_scale ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1673 of file drawnode.c.

References uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_splitviewer ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1465 of file drawnode.c.

References NULL, UI_ITEM_R_EXPAND, uiItemR(), uiLayoutColumn(), and uiLayoutRow().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_stabilize2d ( uiLayout layout,
bContext C,
PointerRNA ptr 
) [static]

Definition at line 1788 of file drawnode.c.

References PointerRNA::data, bNode::id, NULL, uiItemR(), and uiTemplateID().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_tonemap ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1386 of file drawnode.c.

References NULL, RNA_enum_get(), UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_transform ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1800 of file drawnode.c.

References uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_vecblur ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1418 of file drawnode.c.

References NULL, uiItemL(), uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_view_levels ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1697 of file drawnode.c.

References NULL, UI_ITEM_R_EXPAND, and uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_ycc ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1778 of file drawnode.c.

References uiItemR().

Referenced by node_composit_set_butfunc().

static void node_composit_buts_zcombine ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1517 of file drawnode.c.

References NULL, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

static void node_composit_set_butfunc ( bNodeType ntype) [static]

Definition at line 1818 of file drawnode.c.

References CMP_NODE_ALPHAOVER, CMP_NODE_BILATERALBLUR, CMP_NODE_BLUR, CMP_NODE_CHANNEL_MATTE, CMP_NODE_CHROMA_MATTE, CMP_NODE_COLOR_MATTE, CMP_NODE_COLOR_SPILL, CMP_NODE_COLORBALANCE, CMP_NODE_COMBYCCA, CMP_NODE_CROP, CMP_NODE_CURVE_RGB, CMP_NODE_CURVE_VEC, CMP_NODE_DBLUR, CMP_NODE_DEFOCUS, CMP_NODE_DIFF_MATTE, CMP_NODE_DILATEERODE, CMP_NODE_DIST_MATTE, CMP_NODE_DOUBLEEDGEMASK, CMP_NODE_FILTER, CMP_NODE_FLIP, CMP_NODE_GLARE, CMP_NODE_HUE_SAT, CMP_NODE_HUECORRECT, CMP_NODE_ID_MASK, CMP_NODE_IMAGE, CMP_NODE_INVERT, CMP_NODE_LENSDIST, CMP_NODE_LUMA_MATTE, CMP_NODE_MAP_UV, CMP_NODE_MAP_VALUE, CMP_NODE_MATH, CMP_NODE_MIX_RGB, CMP_NODE_MOVIECLIP, CMP_NODE_MOVIEDISTORTION, CMP_NODE_NORMAL, CMP_NODE_OUTPUT_FILE, CMP_NODE_PREMULKEY, CMP_NODE_R_LAYERS, CMP_NODE_RGB, CMP_NODE_ROTATE, CMP_NODE_SCALE, CMP_NODE_SEPYCCA, CMP_NODE_SPLITVIEWER, CMP_NODE_STABILIZE2D, CMP_NODE_TEXTURE, CMP_NODE_TIME, CMP_NODE_TONEMAP, CMP_NODE_TRANSFORM, CMP_NODE_VALTORGB, CMP_NODE_VALUE, CMP_NODE_VECBLUR, CMP_NODE_VIEW_LEVELS, CMP_NODE_ZCOMBINE, node_buts_colorramp(), node_buts_curvecol(), node_buts_curvevec(), node_buts_math(), node_buts_mix_rgb(), node_buts_normal(), node_buts_rgb(), node_buts_texture(), node_buts_time(), node_buts_value(), node_composit_buts_alphaover(), node_composit_buts_bilateralblur(), node_composit_buts_blur(), node_composit_buts_channel_matte(), node_composit_buts_chroma_matte(), node_composit_buts_color_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_colorbalance_but(), node_composit_buts_crop(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_diff_matte(), node_composit_buts_dilateerode(), node_composit_buts_distance_matte(), node_composit_buts_double_edge_mask(), node_composit_buts_file_output(), node_composit_buts_filter(), node_composit_buts_flip(), node_composit_buts_glare(), node_composit_buts_hue_sat(), node_composit_buts_huecorrect(), node_composit_buts_id_mask(), node_composit_buts_image(), node_composit_buts_invert(), node_composit_buts_lensdist(), node_composit_buts_luma_matte(), node_composit_buts_map_uv(), node_composit_buts_map_value(), node_composit_buts_movieclip(), node_composit_buts_moviedistortion(), node_composit_buts_premulkey(), node_composit_buts_renderlayers(), node_composit_buts_rotate(), node_composit_buts_scale(), node_composit_buts_splitviewer(), node_composit_buts_stabilize2d(), node_composit_buts_tonemap(), node_composit_buts_transform(), node_composit_buts_vecblur(), node_composit_buts_view_levels(), node_composit_buts_ycc(), node_composit_buts_zcombine(), NULL, bNodeType::type, bNodeType::uifunc, and bNodeType::uifuncbut.

Referenced by ED_init_node_butfuncs().

static void node_draw_group ( const bContext C,
ARegion ar,
SpaceNode snode,
bNodeTree ntree,
bNode gnode 
) [static]
void node_draw_link ( View2D v2d,
SpaceNode snode,
bNodeLink link 
)
void node_draw_link_bezier ( View2D v2d,
SpaceNode snode,
bNodeLink link,
int  th_col1,
int  do_shaded,
int  th_col2,
int  do_triple,
int  th_col3 
)
void node_draw_link_straight ( View2D v2d,
SpaceNode snode,
bNodeLink link,
int  th_col1,
int  do_shaded,
int  th_col2,
int  do_triple,
int  th_col3 
)
static void node_dynamic_update_cb ( bContext C,
void *  UNUSEDntree_v,
void *  node_v 
) [static]
int node_link_bezier_points ( View2D v2d,
SpaceNode snode,
bNodeLink link,
float  coord_array[][2],
int  resol 
)
static void node_link_straight_points ( View2D UNUSEDv2d,
SpaceNode snode,
bNodeLink link,
float  coord_array[][2] 
) [static]
static void node_normal_cb ( bContext C,
void *  ntree_v,
void *  node_v 
) [static]
static int node_resize_area_default ( bNode node,
int  x,
int  y 
) [static]
static void node_shader_buts_attribute ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1007 of file drawnode.c.

References uiItemR().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_dynamic ( uiLayout layout,
bContext C,
PointerRNA ptr 
) [static]
static void node_shader_buts_geometry ( uiLayout layout,
bContext C,
PointerRNA ptr 
) [static]
static void node_shader_buts_glossy ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1049 of file drawnode.c.

References uiItemR().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_mapping ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 958 of file drawnode.c.

References uiItemL(), uiItemR(), and uiLayoutRow().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_material ( uiLayout layout,
bContext C,
PointerRNA ptr 
) [static]

Definition at line 943 of file drawnode.c.

References PointerRNA::data, bNode::id, NULL, uiItemR(), uiLayoutColumn(), and uiTemplateID().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_tex_gradient ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1024 of file drawnode.c.

References uiItemR().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_tex_image ( uiLayout layout,
bContext C,
PointerRNA ptr 
) [static]

Definition at line 1012 of file drawnode.c.

References NULL, uiItemR(), and uiTemplateID().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_tex_magic ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1029 of file drawnode.c.

References NULL, and uiItemR().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_tex_musgrave ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1039 of file drawnode.c.

References uiItemR().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_tex_sky ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1018 of file drawnode.c.

References NULL, and uiItemR().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_tex_voronoi ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1044 of file drawnode.c.

References uiItemR().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_tex_wave ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1034 of file drawnode.c.

References uiItemR().

Referenced by node_shader_set_butfunc().

static void node_shader_buts_vect_math ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 983 of file drawnode.c.

References uiItemR().

Referenced by node_shader_set_butfunc().

static void node_shader_set_butfunc ( bNodeType ntype) [static]
static void node_socket_button_color ( const bContext C,
uiBlock block,
bNodeTree ntree,
bNode node,
bNodeSocket sock,
const char *  name,
int  x,
int  y,
int  width 
) [static]
static void node_socket_button_components ( const bContext C,
uiBlock block,
bNodeTree ntree,
bNode node,
bNodeSocket sock,
const char *  name,
int  x,
int  y,
int  width 
) [static]
static void node_socket_button_default ( const bContext C,
uiBlock block,
bNodeTree ntree,
bNode node,
bNodeSocket sock,
const char *  name,
int  x,
int  y,
int  width 
) [static]
static void node_socket_button_label ( const bContext UNUSEDC,
uiBlock block,
bNodeTree UNUSEDntree,
bNode UNUSEDnode,
bNodeSocket sock,
const char *  UNUSEDname,
int  x,
int  y,
int  width 
) [static]

Definition at line 98 of file drawnode.c.

References LABEL, bNodeSocket::name, NODE_DY, NULL, and uiDefBut().

Referenced by ED_init_node_butfuncs().

static void node_sync_cb ( bContext UNUSEDC,
void *  snode_v,
void *  node_v 
) [static]
static void node_texture_buts_bricks ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 1991 of file drawnode.c.

References uiItemR(), and uiLayoutColumn().

Referenced by node_texture_set_butfunc().

static void node_texture_buts_image ( uiLayout layout,
bContext C,
PointerRNA ptr 
) [static]

Definition at line 2084 of file drawnode.c.

References NULL, and uiTemplateID().

Referenced by node_texture_set_butfunc().

static void node_texture_buts_output ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]

Definition at line 2089 of file drawnode.c.

References uiItemR().

Referenced by node_texture_set_butfunc().

static void node_texture_buts_proc ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
) [static]
static void node_texture_set_butfunc ( bNodeType ntype) [static]
void node_uifunc_group ( uiLayout layout,
bContext C,
PointerRNA ptr 
)

Definition at line 864 of file drawnode.c.

References NULL, and uiTemplateIDBrowse().

Referenced by node_common_set_butfunc().

static void node_update_frame ( const bContext UNUSEDC,
bNodeTree UNUSEDntree,
bNode node 
) [static]
static void node_update_group ( const bContext C,
bNodeTree ntree,
bNode gnode 
) [static]
static uiBlock* socket_component_menu ( bContext C,
ARegion ar,
void *  args_v 
) [static]
void ui_dropshadow ( rctf rct,
float  radius,
float  aspect,
int  select 
)
static void update_group_input_cb ( bContext UNUSEDC,
void *  UNUSEDsnode_v,
void *  ngroup_v 
) [static]

Definition at line 610 of file drawnode.c.

References NTREE_UPDATE_GROUP_IN, ntreeUpdateTree(), and bNodeTree::update.

Referenced by draw_group_socket_name().

static void update_group_output_cb ( bContext UNUSEDC,
void *  UNUSEDsnode_v,
void *  ngroup_v 
) [static]

Definition at line 618 of file drawnode.c.

References NTREE_UPDATE_GROUP_OUT, ntreeUpdateTree(), and bNodeTree::update.

Referenced by draw_group_socket_name().


Variable Documentation

float* _sample_col = NULL [static]

Definition at line 301 of file drawnode.c.