Blender  V2.93
Classes | Macros | Typedefs | Functions | Variables
node_intern.h File Reference
#include "BKE_node.h"
#include "UI_interface.h"
#include <stddef.h>

Go to the source code of this file.

Classes

struct  bNodeLinkDrag
 
struct  SpaceNode_Runtime
 

Macros

#define HIDDEN_RAD   (0.75f * U.widget_unit)
 
#define BASIS_RAD   (0.2f * U.widget_unit)
 
#define NODE_DYS   (U.widget_unit / 2)
 
#define NODE_DY   U.widget_unit
 
#define NODE_SOCKDY   (0.08f * U.widget_unit)
 
#define NODE_WIDTH(node)   (node->width * UI_DPI_FAC)
 
#define NODE_HEIGHT(node)   (node->height * UI_DPI_FAC)
 
#define NODE_MARGIN_X   (1.10f * U.widget_unit)
 
#define NODE_SOCKSIZE   (0.25f * U.widget_unit)
 
#define NODE_MULTI_INPUT_LINK_GAP   (0.25f * U.widget_unit)
 
#define NODE_RESIZE_MARGIN   (0.20f * U.widget_unit)
 
#define NODE_LINK_RESOL   12
 

Typedefs

typedef struct bNodeLinkDrag bNodeLinkDrag
 
typedef struct SpaceNode_Runtime SpaceNode_Runtime
 

Functions

void space_node_group_offset (struct SpaceNode *snode, float *x, float *y)
 
float node_socket_calculate_height (const bNodeSocket *socket)
 
void node_link_calculate_multi_input_position (const float socket_x, const float socket_y, const int index, const int total_inputs, float r[2])
 
int node_get_colorid (struct bNode *node)
 
int node_get_resize_cursor (int directions)
 
void node_draw_shadow (const struct SpaceNode *snode, const struct bNode *node, float radius, float alpha)
 
void node_draw_default (const struct bContext *C, struct ARegion *region, struct SpaceNode *snode, struct bNodeTree *ntree, struct bNode *node, bNodeInstanceKey key)
 
void node_draw_sockets (const struct View2D *v2d, const struct bContext *C, struct bNodeTree *ntree, struct bNode *node, bool draw_outputs, bool select_all)
 
void node_update_default (const struct bContext *C, struct bNodeTree *ntree, struct bNode *node)
 
int node_select_area_default (struct bNode *node, int x, int y)
 
int node_tweak_area_default (struct bNode *node, int x, int y)
 
void node_socket_color_get (struct bContext *C, struct bNodeTree *ntree, struct PointerRNA *node_ptr, struct bNodeSocket *sock, float r_color[4])
 
void node_update_nodetree (const struct bContext *C, struct bNodeTree *ntree)
 
void node_draw_nodetree (const struct bContext *C, struct ARegion *region, struct SpaceNode *snode, struct bNodeTree *ntree, bNodeInstanceKey parent_key)
 
void node_draw_space (const bContext *C, ARegion *region)
 
void node_set_cursor (struct wmWindow *win, struct SpaceNode *snode, float cursor[2])
 
void node_to_view (const struct bNode *node, float x, float y, float *rx, float *ry)
 
void node_to_updated_rect (const struct bNode *node, rctf *r_rect)
 
void node_from_view (const struct bNode *node, float x, float y, float *rx, float *ry)
 
void node_buttons_register (struct ARegionType *art)
 
void node_toolbar_register (struct ARegionType *art)
 
void node_operatortypes (void)
 
void node_keymap (struct wmKeyConfig *keyconf)
 
void node_deselect_all (struct SpaceNode *snode)
 
void node_socket_select (struct bNode *node, struct bNodeSocket *sock)
 
void node_socket_deselect (struct bNode *node, struct bNodeSocket *sock, const bool deselect_node)
 
void node_deselect_all_input_sockets (struct SpaceNode *snode, const bool deselect_nodes)
 
void node_deselect_all_output_sockets (struct SpaceNode *snode, const bool deselect_nodes)
 
void node_select_single (struct bContext *C, struct bNode *node)
 
void NODE_OT_select (struct wmOperatorType *ot)
 
void NODE_OT_select_all (struct wmOperatorType *ot)
 
void NODE_OT_select_linked_to (struct wmOperatorType *ot)
 
void NODE_OT_select_linked_from (struct wmOperatorType *ot)
 
void NODE_OT_select_box (struct wmOperatorType *ot)
 
void NODE_OT_select_circle (struct wmOperatorType *ot)
 
void NODE_OT_select_lasso (struct wmOperatorType *ot)
 
void NODE_OT_select_grouped (struct wmOperatorType *ot)
 
void NODE_OT_select_same_type_step (struct wmOperatorType *ot)
 
void NODE_OT_find_node (struct wmOperatorType *ot)
 
int space_node_view_flag (struct bContext *C, struct SpaceNode *snode, ARegion *region, const int node_flag, const int smooth_viewtx)
 
void NODE_OT_view_all (struct wmOperatorType *ot)
 
void NODE_OT_view_selected (struct wmOperatorType *ot)
 
void NODE_OT_backimage_move (struct wmOperatorType *ot)
 
void NODE_OT_backimage_zoom (struct wmOperatorType *ot)
 
void NODE_OT_backimage_fit (struct wmOperatorType *ot)
 
void NODE_OT_backimage_sample (struct wmOperatorType *ot)
 
void nodelink_batch_start (struct SpaceNode *snode)
 
void nodelink_batch_end (struct SpaceNode *snode)
 
void node_draw_link (struct View2D *v2d, struct SpaceNode *snode, struct bNodeLink *link)
 
void node_draw_link_bezier (const struct View2D *v2d, const struct SpaceNode *snode, const struct bNodeLink *link, int th_col1, int th_col2, int th_col3)
 
bool node_link_bezier_points (const struct View2D *v2d, const struct SpaceNode *snode, const struct bNodeLink *link, float coord_array[][2], const int resol)
 
bool node_link_bezier_handles (const struct View2D *v2d, const struct SpaceNode *snode, const struct bNodeLink *link, float vec[4][2])
 
void draw_nodespace_back_pix (const struct bContext *C, struct ARegion *region, struct SpaceNode *snode, bNodeInstanceKey parent_key)
 
bNodenode_add_node (const struct bContext *C, const char *idname, int type, float locx, float locy)
 
void NODE_OT_add_reroute (struct wmOperatorType *ot)
 
void NODE_OT_add_group (struct wmOperatorType *ot)
 
void NODE_OT_add_object (struct wmOperatorType *ot)
 
void NODE_OT_add_collection (struct wmOperatorType *ot)
 
void NODE_OT_add_texture (struct wmOperatorType *ot)
 
void NODE_OT_add_file (struct wmOperatorType *ot)
 
void NODE_OT_add_mask (struct wmOperatorType *ot)
 
void NODE_OT_new_node_tree (struct wmOperatorType *ot)
 
const char * node_group_idname (struct bContext *C)
 
void NODE_OT_group_make (struct wmOperatorType *ot)
 
void NODE_OT_group_insert (struct wmOperatorType *ot)
 
void NODE_OT_group_ungroup (struct wmOperatorType *ot)
 
void NODE_OT_group_separate (struct wmOperatorType *ot)
 
void NODE_OT_group_edit (struct wmOperatorType *ot)
 
void sort_multi_input_socket_links (struct SpaceNode *snode, struct bNode *node, struct bNodeLink *drag_link, float cursor[2])
 
bool node_connected_to_output (struct Main *bmain, struct bNodeTree *ntree, struct bNode *node)
 
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_links_detach (struct wmOperatorType *ot)
 
void NODE_OT_links_mute (struct wmOperatorType *ot)
 
void NODE_OT_parent_set (struct wmOperatorType *ot)
 
void NODE_OT_join (struct wmOperatorType *ot)
 
void NODE_OT_attach (struct wmOperatorType *ot)
 
void NODE_OT_detach (struct wmOperatorType *ot)
 
void NODE_OT_link_viewer (struct wmOperatorType *ot)
 
void NODE_OT_insert_offset (struct wmOperatorType *ot)
 
void snode_notify (struct bContext *C, struct SpaceNode *snode)
 
void snode_dag_update (struct bContext *C, struct SpaceNode *snode)
 
void snode_set_context (const struct bContext *C)
 
void snode_update (struct SpaceNode *snode, struct bNode *node)
 
bool composite_node_active (struct bContext *C)
 
bool composite_node_editable (struct bContext *C)
 
bool node_has_hidden_sockets (struct bNode *node)
 
void node_set_hidden_sockets (struct SpaceNode *snode, bNode *node, int set)
 
int node_render_changed_exec (bContext *, struct wmOperator *)
 
int node_find_indicated_socket (struct SpaceNode *snode, struct bNode **nodep, struct bNodeSocket **sockp, const float cursor[2], int in_out)
 
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_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_active_preview_toggle (struct wmOperatorType *ot)
 
void NODE_OT_node_copy_color (struct wmOperatorType *ot)
 
void NODE_OT_read_viewlayers (struct wmOperatorType *ot)
 
void NODE_OT_render_changed (struct wmOperatorType *ot)
 
void NODE_OT_output_file_add_socket (struct wmOperatorType *ot)
 
void NODE_OT_output_file_remove_active_socket (struct wmOperatorType *ot)
 
void NODE_OT_output_file_move_active_socket (struct wmOperatorType *ot)
 
void NODE_OT_switch_view_update (struct wmOperatorType *ot)
 
void NODE_OT_clipboard_copy (struct wmOperatorType *ot)
 
void NODE_OT_clipboard_paste (struct wmOperatorType *ot)
 
void NODE_OT_tree_socket_add (struct wmOperatorType *ot)
 
void NODE_OT_tree_socket_remove (struct wmOperatorType *ot)
 
void NODE_OT_tree_socket_move (struct wmOperatorType *ot)
 
void NODE_OT_shader_script_update (struct wmOperatorType *ot)
 
void NODE_OT_viewer_border (struct wmOperatorType *ot)
 
void NODE_OT_clear_viewer_border (struct wmOperatorType *ot)
 
void NODE_GGT_backdrop_transform (struct wmGizmoGroupType *gzgt)
 
void NODE_GGT_backdrop_crop (struct wmGizmoGroupType *gzgt)
 
void NODE_GGT_backdrop_sun_beams (struct wmGizmoGroupType *gzgt)
 
void NODE_GGT_backdrop_corner_pin (struct wmGizmoGroupType *gzgt)
 
void NODE_OT_cryptomatte_layer_add (struct wmOperatorType *ot)
 
void NODE_OT_cryptomatte_layer_remove (struct wmOperatorType *ot)
 
void node_geometry_add_attribute_search_button (const struct bContext *C, const struct bNodeTree *node_tree, const struct bNode *node, struct PointerRNA *socket_ptr, struct uiLayout *layout)
 

Variables

const char * node_context_dir []
 

Macro Definition Documentation

◆ BASIS_RAD

#define BASIS_RAD   (0.2f * U.widget_unit)

Definition at line 325 of file node_intern.h.

◆ HIDDEN_RAD

#define HIDDEN_RAD   (0.75f * U.widget_unit)

Definition at line 324 of file node_intern.h.

◆ NODE_DY

#define NODE_DY   U.widget_unit

Definition at line 327 of file node_intern.h.

◆ NODE_DYS

#define NODE_DYS   (U.widget_unit / 2)

Definition at line 326 of file node_intern.h.

◆ NODE_HEIGHT

#define NODE_HEIGHT (   node)    (node->height * UI_DPI_FAC)

Definition at line 330 of file node_intern.h.

◆ NODE_LINK_RESOL

#define NODE_LINK_RESOL   12

Definition at line 335 of file node_intern.h.

◆ NODE_MARGIN_X

#define NODE_MARGIN_X   (1.10f * U.widget_unit)

Definition at line 331 of file node_intern.h.

◆ NODE_MULTI_INPUT_LINK_GAP

#define NODE_MULTI_INPUT_LINK_GAP   (0.25f * U.widget_unit)

Definition at line 333 of file node_intern.h.

◆ NODE_RESIZE_MARGIN

#define NODE_RESIZE_MARGIN   (0.20f * U.widget_unit)

Definition at line 334 of file node_intern.h.

◆ NODE_SOCKDY

#define NODE_SOCKDY   (0.08f * U.widget_unit)

Definition at line 328 of file node_intern.h.

◆ NODE_SOCKSIZE

#define NODE_SOCKSIZE   (0.25f * U.widget_unit)

Definition at line 332 of file node_intern.h.

◆ NODE_WIDTH

#define NODE_WIDTH (   node)    (node->width * UI_DPI_FAC)

Definition at line 329 of file node_intern.h.

Typedef Documentation

◆ bNodeLinkDrag

typedef struct bNodeLinkDrag bNodeLinkDrag

◆ SpaceNode_Runtime

Function Documentation

◆ composite_node_active()

bool composite_node_active ( struct bContext C)

◆ composite_node_editable()

bool composite_node_editable ( struct bContext C)

◆ draw_nodespace_back_pix()

void draw_nodespace_back_pix ( const struct bContext C,
struct ARegion region,
struct SpaceNode snode,
bNodeInstanceKey  parent_key 
)

◆ node_add_node()

bNode* node_add_node ( const struct bContext C,
const char *  idname,
int  type,
float  locx,
float  locy 
)

◆ node_buttons_register()

void node_buttons_register ( struct ARegionType art)

◆ node_connected_to_output()

bool node_connected_to_output ( struct Main bmain,
struct bNodeTree ntree,
struct bNode node 
)

◆ node_deselect_all()

void node_deselect_all ( struct SpaceNode snode)

◆ node_deselect_all_input_sockets()

void node_deselect_all_input_sockets ( struct SpaceNode snode,
const bool  deselect_nodes 
)

◆ node_deselect_all_output_sockets()

void node_deselect_all_output_sockets ( struct SpaceNode snode,
const bool  deselect_nodes 
)

◆ node_draw_default()

void node_draw_default ( const struct bContext C,
struct ARegion region,
struct SpaceNode snode,
struct bNodeTree ntree,
struct bNode node,
bNodeInstanceKey  key 
)

◆ node_draw_link()

void node_draw_link ( struct View2D v2d,
struct SpaceNode snode,
struct bNodeLink link 
)

◆ node_draw_link_bezier()

void node_draw_link_bezier ( const struct View2D v2d,
const struct SpaceNode snode,
const struct bNodeLink link,
int  th_col1,
int  th_col2,
int  th_col3 
)

◆ node_draw_nodetree()

void node_draw_nodetree ( const struct bContext C,
struct ARegion region,
struct SpaceNode snode,
struct bNodeTree ntree,
bNodeInstanceKey  parent_key 
)

◆ node_draw_shadow()

void node_draw_shadow ( const struct SpaceNode snode,
const struct bNode node,
float  radius,
float  alpha 
)

◆ node_draw_sockets()

void node_draw_sockets ( const struct View2D v2d,
const struct bContext C,
struct bNodeTree ntree,
struct bNode node,
bool  draw_outputs,
bool  select_all 
)

◆ node_draw_space()

void node_draw_space ( const bContext C,
ARegion region 
)

Definition at line 1939 of file node_draw.cc.

References BLI_strncpy(), C, center, copy_v2_v2(), CTX_wm_space_node(), CTX_wm_window(), SpaceNode_Runtime::cursor, bNodeTreePath::display_name, draw_group_overlay(), draw_nodespace_back_pix(), draw_nodetree(), draw_tree_path(), ED_annotation_draw_view2d(), ED_node_grid_size(), ED_region_draw_cb_draw(), SpaceNode::edittree, wmWindow::eventstate, SpaceNode::flag, ARegion::gizmo_map, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_DEPTH_NONE, GPU_depth_test(), GPU_framebuffer_bind_no_srgb(), GPU_line_smooth(), GPU_matrix_identity_set(), GPU_matrix_pop(), GPU_matrix_projection_get, GPU_matrix_projection_set, GPU_matrix_push(), GPU_scissor_test(), GPU_viewport_framebuffer_overlay_get(), bNodeTree::id, SpaceNode::id, ListBase::last, SpaceNode_Runtime::linkdrag, LISTBASE_FOREACH, bNodeTreePath::next, node_draw_link(), NODE_GRID_STEPS, NODE_INSTANCE_KEY_NONE, bNodeTreePath::nodetree, SpaceNode::nodetree, ntree, bNodeTreePath::parent_key, bNodeTreePath::prev, REGION_DRAW_POST_VIEW, REGION_DRAW_PRE_VIEW, SpaceNode::runtime, snode_set_context(), snode_setup_v2d(), SNODE_SHOW_GPENCIL, SPACE_NODE, STREQ, TH_BACK, TH_GRID, TH_NODE_GRID_LEVELS, TH_NODE_GROUP, SpaceNode::treepath, UI_DPI_FAC, UI_GetThemeValueType(), UI_ThemeClearColor(), UI_view2d_center_get(), UI_view2d_multi_grid_draw(), UI_view2d_region_to_view(), UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), UI_view2d_view_restore(), UNLIKELY, ARegion::v2d, bNodeTree::view_center, bNodeTreePath::view_center, ARegion::winrct, ARegion::winx, ARegion::winy, WM_draw_region_get_viewport(), WM_gizmomap_draw(), WM_GIZMOMAP_DRAWSTEP_2D, wmOrtho2_pixelspace(), wmEvent::x, rcti::xmin, wmEvent::y, and rcti::ymin.

Referenced by node_main_region_draw().

◆ node_find_indicated_socket()

int node_find_indicated_socket ( struct SpaceNode snode,
struct bNode **  nodep,
struct bNodeSocket **  sockp,
const float  cursor[2],
int  in_out 
)

◆ node_from_view()

void node_from_view ( const struct bNode node,
float  x,
float  y,
float rx,
float ry 
)

◆ node_geometry_add_attribute_search_button()

void node_geometry_add_attribute_search_button ( const struct bContext C,
const struct bNodeTree node_tree,
const struct bNode node,
struct PointerRNA socket_ptr,
struct uiLayout layout 
)

◆ node_get_colorid()

int node_get_colorid ( struct bNode node)

◆ node_get_resize_cursor()

int node_get_resize_cursor ( int  directions)

◆ NODE_GGT_backdrop_corner_pin()

void NODE_GGT_backdrop_corner_pin ( struct wmGizmoGroupType gzgt)

◆ NODE_GGT_backdrop_crop()

void NODE_GGT_backdrop_crop ( struct wmGizmoGroupType gzgt)

◆ NODE_GGT_backdrop_sun_beams()

void NODE_GGT_backdrop_sun_beams ( struct wmGizmoGroupType gzgt)

◆ NODE_GGT_backdrop_transform()

void NODE_GGT_backdrop_transform ( struct wmGizmoGroupType gzgt)

◆ node_group_idname()

const char* node_group_idname ( struct bContext C)

◆ node_has_hidden_sockets()

bool node_has_hidden_sockets ( struct bNode node)

Definition at line 1087 of file node_edit.c.

References bNodeSocket::flag, LISTBASE_FOREACH, node, and SOCK_HIDDEN.

Referenced by node_socket_toggle_exec().

◆ node_keymap()

void node_keymap ( struct wmKeyConfig keyconf)

Definition at line 204 of file node_ops.c.

References SPACE_NODE, and WM_keymap_ensure().

Referenced by ED_spacetype_node().

◆ node_link_bezier_handles()

bool node_link_bezier_handles ( const struct View2D v2d,
const struct SpaceNode snode,
const struct bNodeLink link,
float  vec[4][2] 
)

◆ node_link_bezier_points()

bool node_link_bezier_points ( const struct View2D v2d,
const struct SpaceNode snode,
const struct bNodeLink link,
float  coord_array[][2],
const int  resol 
)

◆ node_link_calculate_multi_input_position()

void node_link_calculate_multi_input_position ( const float  socket_x,
const float  socket_y,
const int  index,
const int  total_inputs,
float  r[2] 
)

Definition at line 111 of file node_edit.c.

References NODE_MULTI_INPUT_LINK_GAP, NODE_SOCKSIZE, and r.

Referenced by node_link_bezier_handles(), and sort_multi_input_socket_links().

◆ node_operatortypes()

void node_operatortypes ( void  )

Definition at line 38 of file node_ops.c.

References NODE_OT_add_collection(), NODE_OT_add_file(), NODE_OT_add_group(), NODE_OT_add_mask(), NODE_OT_add_object(), NODE_OT_add_reroute(), NODE_OT_add_texture(), NODE_OT_attach(), NODE_OT_backimage_fit(), NODE_OT_backimage_move(), NODE_OT_backimage_sample(), NODE_OT_backimage_zoom(), NODE_OT_clear_viewer_border(), NODE_OT_clipboard_copy(), NODE_OT_clipboard_paste(), NODE_OT_cryptomatte_layer_add(), NODE_OT_cryptomatte_layer_remove(), NODE_OT_delete(), NODE_OT_delete_reconnect(), NODE_OT_detach(), NODE_OT_duplicate(), NODE_OT_find_node(), NODE_OT_group_edit(), NODE_OT_group_insert(), NODE_OT_group_make(), NODE_OT_group_separate(), NODE_OT_group_ungroup(), NODE_OT_hide_socket_toggle(), NODE_OT_hide_toggle(), NODE_OT_insert_offset(), NODE_OT_join(), NODE_OT_link(), NODE_OT_link_make(), NODE_OT_link_viewer(), NODE_OT_links_cut(), NODE_OT_links_detach(), NODE_OT_links_mute(), NODE_OT_mute_toggle(), NODE_OT_new_node_tree(), NODE_OT_node_copy_color(), NODE_OT_options_toggle(), NODE_OT_output_file_add_socket(), NODE_OT_output_file_move_active_socket(), NODE_OT_output_file_remove_active_socket(), NODE_OT_parent_set(), NODE_OT_preview_toggle(), NODE_OT_read_viewlayers(), NODE_OT_render_changed(), NODE_OT_resize(), NODE_OT_select(), NODE_OT_select_all(), NODE_OT_select_box(), NODE_OT_select_circle(), NODE_OT_select_grouped(), NODE_OT_select_lasso(), NODE_OT_select_linked_from(), NODE_OT_select_linked_to(), NODE_OT_select_same_type_step(), NODE_OT_shader_script_update(), NODE_OT_switch_view_update(), NODE_OT_tree_socket_add(), NODE_OT_tree_socket_move(), NODE_OT_tree_socket_remove(), NODE_OT_view_all(), NODE_OT_view_selected(), NODE_OT_viewer_border(), and WM_operatortype_append().

Referenced by ED_spacetype_node().

◆ NODE_OT_active_preview_toggle()

void NODE_OT_active_preview_toggle ( struct wmOperatorType ot)

◆ NODE_OT_add_collection()

void NODE_OT_add_collection ( struct wmOperatorType ot)

◆ NODE_OT_add_file()

void NODE_OT_add_file ( struct wmOperatorType ot)

◆ NODE_OT_add_group()

void NODE_OT_add_group ( struct wmOperatorType ot)

◆ NODE_OT_add_mask()

void NODE_OT_add_mask ( struct wmOperatorType ot)

◆ NODE_OT_add_object()

void NODE_OT_add_object ( struct wmOperatorType ot)

◆ NODE_OT_add_reroute()

void NODE_OT_add_reroute ( struct wmOperatorType ot)

◆ NODE_OT_add_texture()

void NODE_OT_add_texture ( struct wmOperatorType ot)

◆ NODE_OT_attach()

void NODE_OT_attach ( struct wmOperatorType ot)

◆ NODE_OT_backimage_fit()

void NODE_OT_backimage_fit ( struct wmOperatorType ot)

◆ NODE_OT_backimage_move()

void NODE_OT_backimage_move ( struct wmOperatorType ot)

◆ NODE_OT_backimage_sample()

void NODE_OT_backimage_sample ( struct wmOperatorType ot)

◆ NODE_OT_backimage_zoom()

void NODE_OT_backimage_zoom ( struct wmOperatorType ot)

◆ NODE_OT_clear_viewer_border()

void NODE_OT_clear_viewer_border ( struct wmOperatorType ot)

◆ NODE_OT_clipboard_copy()

void NODE_OT_clipboard_copy ( struct wmOperatorType ot)

◆ NODE_OT_clipboard_paste()

void NODE_OT_clipboard_paste ( struct wmOperatorType ot)

◆ NODE_OT_cryptomatte_layer_add()

void NODE_OT_cryptomatte_layer_add ( struct wmOperatorType ot)

◆ NODE_OT_cryptomatte_layer_remove()

void NODE_OT_cryptomatte_layer_remove ( struct wmOperatorType ot)

◆ NODE_OT_delete()

void NODE_OT_delete ( struct wmOperatorType ot)

◆ NODE_OT_delete_reconnect()

void NODE_OT_delete_reconnect ( struct wmOperatorType ot)

◆ NODE_OT_detach()

void NODE_OT_detach ( struct wmOperatorType ot)

◆ NODE_OT_duplicate()

void NODE_OT_duplicate ( struct wmOperatorType ot)

◆ NODE_OT_find_node()

void NODE_OT_find_node ( struct wmOperatorType ot)

◆ NODE_OT_group_edit()

void NODE_OT_group_edit ( struct wmOperatorType ot)

◆ NODE_OT_group_insert()

void NODE_OT_group_insert ( struct wmOperatorType ot)

◆ NODE_OT_group_make()

void NODE_OT_group_make ( struct wmOperatorType ot)

◆ NODE_OT_group_separate()

void NODE_OT_group_separate ( struct wmOperatorType ot)

◆ NODE_OT_group_ungroup()

void NODE_OT_group_ungroup ( struct wmOperatorType ot)

◆ NODE_OT_hide_socket_toggle()

void NODE_OT_hide_socket_toggle ( struct wmOperatorType ot)

◆ NODE_OT_hide_toggle()

void NODE_OT_hide_toggle ( struct wmOperatorType ot)

◆ NODE_OT_insert_offset()

void NODE_OT_insert_offset ( struct wmOperatorType ot)

◆ NODE_OT_join()

void NODE_OT_join ( struct wmOperatorType ot)

◆ NODE_OT_link()

void NODE_OT_link ( struct wmOperatorType ot)

◆ NODE_OT_link_make()

void NODE_OT_link_make ( struct wmOperatorType ot)

◆ NODE_OT_link_viewer()

void NODE_OT_link_viewer ( struct wmOperatorType ot)

◆ NODE_OT_links_cut()

void NODE_OT_links_cut ( struct wmOperatorType ot)

◆ NODE_OT_links_detach()

void NODE_OT_links_detach ( struct wmOperatorType ot)

◆ NODE_OT_links_mute()

void NODE_OT_links_mute ( struct wmOperatorType ot)

◆ NODE_OT_mute_toggle()

void NODE_OT_mute_toggle ( struct wmOperatorType ot)

◆ NODE_OT_new_node_tree()

void NODE_OT_new_node_tree ( struct wmOperatorType ot)

◆ NODE_OT_node_copy_color()

void NODE_OT_node_copy_color ( struct wmOperatorType ot)

◆ NODE_OT_options_toggle()

void NODE_OT_options_toggle ( struct wmOperatorType ot)

◆ NODE_OT_output_file_add_socket()

void NODE_OT_output_file_add_socket ( struct wmOperatorType ot)

◆ NODE_OT_output_file_move_active_socket()

void NODE_OT_output_file_move_active_socket ( struct wmOperatorType ot)

◆ NODE_OT_output_file_remove_active_socket()

void NODE_OT_output_file_remove_active_socket ( struct wmOperatorType ot)

◆ NODE_OT_parent_set()

void NODE_OT_parent_set ( struct wmOperatorType ot)

◆ NODE_OT_preview_toggle()

void NODE_OT_preview_toggle ( struct wmOperatorType ot)

◆ NODE_OT_read_viewlayers()

void NODE_OT_read_viewlayers ( struct wmOperatorType ot)

◆ NODE_OT_render_changed()

void NODE_OT_render_changed ( struct wmOperatorType ot)

◆ NODE_OT_resize()

void NODE_OT_resize ( struct wmOperatorType ot)

◆ NODE_OT_select()

void NODE_OT_select ( struct wmOperatorType ot)

◆ NODE_OT_select_all()

void NODE_OT_select_all ( struct wmOperatorType ot)

◆ NODE_OT_select_box()

void NODE_OT_select_box ( struct wmOperatorType ot)

◆ NODE_OT_select_circle()

void NODE_OT_select_circle ( struct wmOperatorType ot)

◆ NODE_OT_select_grouped()

void NODE_OT_select_grouped ( struct wmOperatorType ot)

◆ NODE_OT_select_lasso()

void NODE_OT_select_lasso ( struct wmOperatorType ot)

◆ NODE_OT_select_linked_from()

void NODE_OT_select_linked_from ( struct wmOperatorType ot)

◆ NODE_OT_select_linked_to()

void NODE_OT_select_linked_to ( struct wmOperatorType ot)

◆ NODE_OT_select_same_type_step()

void NODE_OT_select_same_type_step ( struct wmOperatorType ot)

◆ NODE_OT_shader_script_update()

void NODE_OT_shader_script_update ( struct wmOperatorType ot)

◆ NODE_OT_switch_view_update()

void NODE_OT_switch_view_update ( struct wmOperatorType ot)

◆ NODE_OT_tree_socket_add()

void NODE_OT_tree_socket_add ( struct wmOperatorType ot)

◆ NODE_OT_tree_socket_move()

void NODE_OT_tree_socket_move ( struct wmOperatorType ot)

◆ NODE_OT_tree_socket_remove()

void NODE_OT_tree_socket_remove ( struct wmOperatorType ot)

◆ NODE_OT_view_all()

void NODE_OT_view_all ( struct wmOperatorType ot)

◆ NODE_OT_view_selected()

void NODE_OT_view_selected ( struct wmOperatorType ot)

◆ NODE_OT_viewer_border()

void NODE_OT_viewer_border ( struct wmOperatorType ot)

◆ node_render_changed_exec()

int node_render_changed_exec ( bContext ,
struct wmOperator  
)

◆ node_select_area_default()

int node_select_area_default ( struct bNode node,
int  x,
int  y 
)

Definition at line 651 of file node_draw.cc.

References BLI_rctf_isect_pt(), node, x, and y.

Referenced by ED_init_custom_node_type(), and ED_node_init_butfuncs().

◆ node_select_single()

void node_select_single ( struct bContext C,
struct bNode node 
)

◆ node_set_cursor()

void node_set_cursor ( struct wmWindow win,
struct SpaceNode snode,
float  cursor[2] 
)

◆ node_set_hidden_sockets()

void node_set_hidden_sockets ( struct SpaceNode snode,
bNode node,
int  set 
)

◆ node_socket_calculate_height()

float node_socket_calculate_height ( const bNodeSocket socket)

◆ node_socket_color_get()

void node_socket_color_get ( struct bContext C,
struct bNodeTree ntree,
struct PointerRNA node_ptr,
struct bNodeSocket sock,
float  r_color[4] 
)

◆ node_socket_deselect()

void node_socket_deselect ( struct bNode node,
struct bNodeSocket sock,
const bool  deselect_node 
)

Definition at line 166 of file node_select.c.

References bNodeSocket::flag, bNodeSocket::next, node, and SELECT.

Referenced by node_mouse_select(), and node_socket_toggle().

◆ node_socket_select()

void node_socket_select ( struct bNode node,
struct bNodeSocket sock 
)

Definition at line 156 of file node_select.c.

References bNodeSocket::flag, node, and SELECT.

Referenced by node_mouse_select(), and node_socket_toggle().

◆ node_to_updated_rect()

void node_to_updated_rect ( const struct bNode node,
rctf r_rect 
)

◆ node_to_view()

void node_to_view ( const struct bNode node,
float  x,
float  y,
float rx,
float ry 
)

◆ node_toolbar_register()

void node_toolbar_register ( struct ARegionType art)

Referenced by ED_spacetype_node().

◆ node_tweak_area_default()

int node_tweak_area_default ( struct bNode node,
int  x,
int  y 
)

Definition at line 656 of file node_draw.cc.

References BLI_rctf_isect_pt(), node, x, and y.

Referenced by ED_init_custom_node_type(), and ED_node_init_butfuncs().

◆ node_update_default()

void node_update_default ( const struct bContext C,
struct bNodeTree ntree,
struct bNode node 
)

◆ node_update_nodetree()

void node_update_nodetree ( const struct bContext C,
struct bNodeTree ntree 
)

◆ nodelink_batch_end()

void nodelink_batch_end ( struct SpaceNode snode)

Definition at line 3976 of file drawnode.c.

References g_batch_link, and nodelink_batch_draw().

Referenced by node_draw_nodetree().

◆ nodelink_batch_start()

void nodelink_batch_start ( struct SpaceNode snode)

◆ snode_dag_update()

void snode_dag_update ( struct bContext C,
struct SpaceNode snode 
)

◆ snode_notify()

void snode_notify ( struct bContext C,
struct SpaceNode snode 
)

◆ snode_set_context()

void snode_set_context ( const struct bContext C)

◆ snode_update()

void snode_update ( struct SpaceNode snode,
struct bNode node 
)

◆ sort_multi_input_socket_links()

void sort_multi_input_socket_links ( struct SpaceNode snode,
struct bNode node,
struct bNodeLink drag_link,
float  cursor[2] 
)

◆ space_node_group_offset()

void space_node_group_offset ( struct SpaceNode snode,
float x,
float y 
)

◆ space_node_view_flag()

int space_node_view_flag ( struct bContext C,
struct SpaceNode snode,
ARegion region,
const int  node_flag,
const int  smooth_viewtx 
)

Variable Documentation

◆ node_context_dir

const char* node_context_dir[]
extern

Definition at line 870 of file space_node.c.

Referenced by node_context().