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

node_intern.h File Reference

#include <stddef.h>
#include "UI_interface.h"

Go to the source code of this file.

Classes

struct  bNodeLinkDrag

Defines

#define HIDDEN_RAD   15.0f
#define BASIS_RAD   8.0f
#define NODE_DYS   (U.widget_unit/2)
#define NODE_DY   U.widget_unit
#define NODE_SOCKSIZE   5

Typedefs

typedef struct bNodeLinkDrag bNodeLinkDrag

Enumerations

enum  {
  B_NOP = 0, B_REDR = 1, B_NODE_USEMAT, B_NODE_USESCENE,
  B_NODE_USETEX, B_TEXBROWSE, B_TEXALONE, B_TEXLOCAL,
  B_TEXDELETE, B_TEXPRV, B_AUTOTEXNAME, B_KEEPDATA,
  B_NODE_EXEC, B_MATPRV, B_NODE_LOADIMAGE, B_NODE_SETIMAGE
}

Functions

ARegionnode_has_buttons_region (ScrArea *sa)
void node_header_buttons (const bContext *C, ARegion *ar)
void node_menus_register (void)
void node_socket_circle_draw (struct bNodeTree *ntree, struct bNodeSocket *sock, float size)
void node_draw_default (const struct bContext *C, struct ARegion *ar, struct SpaceNode *snode, struct bNodeTree *ntree, struct bNode *node)
void node_update_default (const struct bContext *C, struct bNodeTree *ntree, struct bNode *node)
void node_update_nodetree (const struct bContext *C, struct bNodeTree *ntree, float offsetx, float offsety)
void node_draw_nodetree (const struct bContext *C, struct ARegion *ar, struct SpaceNode *snode, struct bNodeTree *ntree)
void drawnodespace (const bContext *C, ARegion *ar, View2D *v2d)
void node_buttons_register (struct ARegionType *art)
void NODE_OT_properties (struct wmOperatorType *ot)
void node_operatortypes (void)
void node_keymap (wmKeyConfig *keyconf)
void node_deselect_all (struct SpaceNode *snode)
int node_select_same_type (struct SpaceNode *snode)
int node_select_same_type_np (struct SpaceNode *snode, int dir)
void node_select_single (struct bContext *C, struct bNode *node)
void NODE_OT_select (struct wmOperatorType *ot)
void NODE_OT_select_all (wmOperatorType *ot)
void NODE_OT_select_linked_to (wmOperatorType *ot)
void NODE_OT_select_linked_from (wmOperatorType *ot)
void NODE_OT_select_border (struct wmOperatorType *ot)
void NODE_OT_select_same_type (struct wmOperatorType *ot)
void NODE_OT_select_same_type_next (wmOperatorType *ot)
void NODE_OT_select_same_type_prev (wmOperatorType *ot)
void NODE_OT_view_all (struct wmOperatorType *ot)
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)
int node_link_bezier_points (View2D *v2d, SpaceNode *snode, bNodeLink *link, float coord_array[][2], int resol)
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 draw_nodespace_back_pix (ARegion *ar, SpaceNode *snode, int color_manage)
void draw_nodespace_color_info (struct ARegion *ar, int color_manage, int channels, int x, int y, const char cp[4], const float fp[4])
void node_tree_from_ID (ID *id, bNodeTree **ntree, bNodeTree **edittree, int *treetype)
void snode_notify (bContext *C, SpaceNode *snode)
void snode_dag_update (bContext *C, SpaceNode *snode)
bNodenode_add_node (struct SpaceNode *snode, struct Main *bmain, struct Scene *scene, struct bNodeTemplate *ntemp, float locx, float locy)
void snode_set_context (SpaceNode *snode, Scene *scene)
void snode_make_group_editable (SpaceNode *snode, bNode *gnode)
void snode_composite_job (const struct bContext *C, ScrArea *sa)
bNodenode_tree_get_editgroup (bNodeTree *ntree)
void node_tree_verify_groups (bNodeTree *nodetree)
void snode_autoconnect (SpaceNode *snode, int allow_multiple, int replace)
int node_has_hidden_sockets (bNode *node, short flag)
void node_set_hidden_sockets (SpaceNode *snode, bNode *node, short flag, int set)
int node_render_changed_exec (bContext *, wmOperator *)
void NODE_OT_duplicate (struct wmOperatorType *ot)
void NODE_OT_delete (struct wmOperatorType *ot)
void NODE_OT_delete_reconnect (struct wmOperatorType *ot)
void NODE_OT_resize (struct wmOperatorType *ot)
void NODE_OT_link (struct wmOperatorType *ot)
void NODE_OT_link_make (struct wmOperatorType *ot)
void NODE_OT_links_cut (struct wmOperatorType *ot)
void NODE_OT_group_make (struct wmOperatorType *ot)
void NODE_OT_group_ungroup (struct wmOperatorType *ot)
void NODE_OT_group_edit (struct wmOperatorType *ot)
void NODE_OT_group_socket_add (struct wmOperatorType *ot)
void NODE_OT_group_socket_remove (struct wmOperatorType *ot)
void NODE_OT_group_socket_move_up (struct wmOperatorType *ot)
void NODE_OT_group_socket_move_down (struct wmOperatorType *ot)
void NODE_OT_mute_toggle (struct wmOperatorType *ot)
void NODE_OT_hide_toggle (struct wmOperatorType *ot)
void NODE_OT_hide_socket_toggle (struct wmOperatorType *ot)
void NODE_OT_preview_toggle (struct wmOperatorType *ot)
void NODE_OT_options_toggle (struct wmOperatorType *ot)
void NODE_OT_show_cyclic_dependencies (struct wmOperatorType *ot)
void NODE_OT_link_viewer (struct wmOperatorType *ot)
void NODE_OT_read_fullsamplelayers (struct wmOperatorType *ot)
void NODE_OT_read_renderlayers (struct wmOperatorType *ot)
void NODE_OT_render_changed (struct wmOperatorType *ot)
void NODE_OT_backimage_move (struct wmOperatorType *ot)
void NODE_OT_backimage_zoom (struct wmOperatorType *ot)
void NODE_OT_backimage_sample (wmOperatorType *ot)
void NODE_OT_add_file (struct wmOperatorType *ot)
void NODE_OT_new_node_tree (struct wmOperatorType *ot)

Variables

const char * node_context_dir []
enum { ... }  eNodeSpace_ButEvents

Detailed Description

Definition in file node_intern.h.


Define Documentation

#define BASIS_RAD   8.0f

Definition at line 168 of file node_intern.h.

Referenced by node_draw_basis(), and node_draw_group().

#define HIDDEN_RAD   15.0f

Definition at line 167 of file node_intern.h.

Referenced by node_update_hidden().

#define NODE_DY   U.widget_unit
#define NODE_DYS   (U.widget_unit/2)
#define NODE_SOCKSIZE   5

Typedef Documentation

typedef struct bNodeLinkDrag bNodeLinkDrag

Enumeration Type Documentation

anonymous enum
Enumerator:
B_NOP 
B_REDR 
B_NODE_USEMAT 
B_NODE_USESCENE 
B_NODE_USETEX 
B_TEXBROWSE 
B_TEXALONE 
B_TEXLOCAL 
B_TEXDELETE 
B_TEXPRV 
B_AUTOTEXNAME 
B_KEEPDATA 
B_NODE_EXEC 
B_MATPRV 
B_NODE_LOADIMAGE 
B_NODE_SETIMAGE 

Definition at line 174 of file node_intern.h.


Function Documentation

void draw_nodespace_back_pix ( ARegion ar,
SpaceNode snode,
int  color_manage 
)
void draw_nodespace_color_info ( struct ARegion ar,
int  color_manage,
int  channels,
int  x,
int  y,
const char  cp[4],
const float  fp[4] 
)
void drawnodespace ( const bContext C,
ARegion ar,
View2D v2d 
)
bNode* node_add_node ( struct SpaceNode snode,
struct Main bmain,
struct Scene scene,
struct bNodeTemplate ntemp,
float  locx,
float  locy 
)
void node_buttons_register ( struct ARegionType art)
void node_deselect_all ( struct SpaceNode snode)
void node_draw_default ( const struct bContext C,
struct ARegion ar,
struct SpaceNode snode,
struct bNodeTree ntree,
struct bNode node 
)
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 
)
void node_draw_nodetree ( const struct bContext C,
struct ARegion ar,
struct SpaceNode snode,
struct bNodeTree ntree 
)
ARegion* node_has_buttons_region ( ScrArea sa)
int node_has_hidden_sockets ( bNode node,
short  flag 
)
void node_header_buttons ( const bContext C,
ARegion ar 
)
void node_keymap ( wmKeyConfig keyconf)
int node_link_bezier_points ( View2D v2d,
SpaceNode snode,
bNodeLink link,
float  coord_array[][2],
int  resol 
)
void node_menus_register ( void  )
void node_operatortypes ( void  )
void NODE_OT_add_file ( struct wmOperatorType ot)
void NODE_OT_backimage_move ( struct wmOperatorType ot)
void NODE_OT_backimage_sample ( wmOperatorType ot)
void NODE_OT_backimage_zoom ( struct wmOperatorType ot)
void NODE_OT_delete ( struct wmOperatorType ot)
void NODE_OT_delete_reconnect ( struct wmOperatorType ot)
void NODE_OT_duplicate ( struct wmOperatorType ot)
void NODE_OT_group_edit ( struct wmOperatorType ot)
void NODE_OT_group_make ( struct wmOperatorType ot)
void NODE_OT_group_socket_add ( struct wmOperatorType ot)
void NODE_OT_group_socket_move_down ( struct wmOperatorType ot)
void NODE_OT_group_socket_move_up ( struct wmOperatorType ot)
void NODE_OT_group_socket_remove ( struct wmOperatorType ot)
void NODE_OT_group_ungroup ( struct wmOperatorType ot)
void NODE_OT_hide_socket_toggle ( struct wmOperatorType ot)
void NODE_OT_hide_toggle ( struct wmOperatorType ot)
void NODE_OT_link ( struct wmOperatorType ot)
void NODE_OT_link_make ( struct wmOperatorType ot)
void NODE_OT_link_viewer ( struct wmOperatorType ot)
void NODE_OT_links_cut ( struct wmOperatorType ot)
void NODE_OT_mute_toggle ( struct wmOperatorType ot)
void NODE_OT_new_node_tree ( struct wmOperatorType ot)
void NODE_OT_options_toggle ( struct wmOperatorType ot)
void NODE_OT_preview_toggle ( struct wmOperatorType ot)
void NODE_OT_properties ( struct wmOperatorType ot)
void NODE_OT_read_fullsamplelayers ( struct wmOperatorType ot)
void NODE_OT_read_renderlayers ( struct wmOperatorType ot)
void NODE_OT_render_changed ( struct wmOperatorType ot)
void NODE_OT_resize ( struct wmOperatorType ot)
void NODE_OT_select ( struct wmOperatorType ot)
void NODE_OT_select_all ( wmOperatorType ot)
void NODE_OT_select_border ( struct wmOperatorType ot)
void NODE_OT_select_linked_from ( wmOperatorType ot)
void NODE_OT_select_linked_to ( wmOperatorType ot)
void NODE_OT_select_same_type ( struct wmOperatorType ot)
void NODE_OT_select_same_type_next ( wmOperatorType ot)
void NODE_OT_select_same_type_prev ( wmOperatorType ot)
void NODE_OT_show_cyclic_dependencies ( struct wmOperatorType ot)
void NODE_OT_view_all ( struct wmOperatorType ot)
int node_render_changed_exec ( bContext ,
wmOperator  
)
int node_select_same_type ( struct SpaceNode snode)
int node_select_same_type_np ( struct SpaceNode snode,
int  dir 
)
void node_select_single ( struct bContext C,
struct bNode node 
)
void node_set_hidden_sockets ( SpaceNode snode,
bNode node,
short  flag,
int  set 
)
void node_socket_circle_draw ( struct bNodeTree ntree,
struct bNodeSocket sock,
float  size 
)
void node_tree_from_ID ( ID id,
bNodeTree **  ntree,
bNodeTree **  edittree,
int *  treetype 
)
bNode* node_tree_get_editgroup ( bNodeTree ntree)
void node_tree_verify_groups ( bNodeTree nodetree)
void node_update_default ( const struct bContext C,
struct bNodeTree ntree,
struct bNode node 
)
void node_update_nodetree ( const struct bContext C,
struct bNodeTree ntree,
float  offsetx,
float  offsety 
)
void snode_autoconnect ( SpaceNode snode,
int  allow_multiple,
int  replace 
)
void snode_composite_job ( const struct bContext C,
ScrArea sa 
)
void snode_dag_update ( bContext C,
SpaceNode snode 
)
void snode_make_group_editable ( SpaceNode snode,
bNode gnode 
)
void snode_notify ( bContext C,
SpaceNode snode 
)
void snode_set_context ( SpaceNode snode,
Scene scene 
)

Variable Documentation

enum { ... } eNodeSpace_ButEvents
const char* node_context_dir[]

Definition at line 452 of file space_node.c.