110 #define HIDDEN_RAD (0.75f * U.widget_unit)
111 #define BASIS_RAD (0.2f * U.widget_unit)
112 #define NODE_DYS (U.widget_unit / 2)
113 #define NODE_DY U.widget_unit
114 #define NODE_SOCKDY (0.1f * U.widget_unit)
115 #define NODE_WIDTH(node) (node.width * UI_DPI_FAC)
116 #define NODE_HEIGHT(node) (node.height * UI_DPI_FAC)
117 #define NODE_MARGIN_X (1.2f * U.widget_unit)
118 #define NODE_SOCKSIZE (0.25f * U.widget_unit)
119 #define NODE_SOCKSIZE_DRAW_MULIPLIER 2.25f
120 #define NODE_SOCK_OUTLINE_SCALE 1.0f
121 #define NODE_MULTI_INPUT_LINK_GAP (0.25f * U.widget_unit)
122 #define NODE_RESIZE_MARGIN (0.20f * U.widget_unit)
123 #define NODE_LINK_RESOL 12
232 float coord_array[][2],
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
void NODE_OT_parent_set(wmOperatorType *ot)
void NODE_OT_delete(wmOperatorType *ot)
void NODE_OT_cryptomatte_layer_add(wmOperatorType *ot)
void NODE_OT_add_object(wmOperatorType *ot)
float node_socket_calculate_height(const bNodeSocket &socket)
void NODE_OT_read_viewlayers(wmOperatorType *ot)
void node_sort(bNodeTree &ntree)
void node_socket_add_tooltip(bNodeTree *ntree, bNode *node, bNodeSocket *sock, uiLayout *layout)
void NODE_OT_clipboard_copy(wmOperatorType *ot)
int node_get_resize_cursor(NodeResizeDirection directions)
void node_set_cursor(wmWindow &win, SpaceNode &snode, const float2 &cursor)
bool node_or_socket_isect_event(bContext *C, const wmEvent *event)
void NODE_OT_select_circle(wmOperatorType *ot)
void NODE_OT_tree_socket_add(wmOperatorType *ot)
void NODE_OT_add_mask(wmOperatorType *ot)
bool space_node_view_flag(bContext &C, SpaceNode &snode, ARegion ®ion, int node_flag, int smooth_viewtx)
void NODE_OT_backimage_sample(wmOperatorType *ot)
void invoke_node_link_drag_add_menu(bContext &C, bNode &node, bNodeSocket &socket, const float2 &cursor)
void NODE_OT_add_reroute(wmOperatorType *ot)
void NODE_OT_node_copy_color(wmOperatorType *ot)
void node_draw_link_bezier(const bContext &C, const View2D &v2d, const SpaceNode &snode, const bNodeLink &link, const int th_col1, const int th_col2, const int th_col3, const bool selected)
void NODE_OT_detach(wmOperatorType *ot)
bool composite_node_editable(bContext *C)
void node_geometry_add_attribute_search_button(const bContext &UNUSED(C), const bNode &node, PointerRNA &socket_ptr, uiLayout &layout)
void NODE_OT_viewer_border(wmOperatorType *ot)
void nodelink_batch_end(SpaceNode &snode)
void NODE_OT_tree_socket_move(wmOperatorType *ot)
void NODE_OT_find_node(wmOperatorType *ot)
void NODE_OT_select_lasso(wmOperatorType *ot)
void NODE_OT_add_collection(wmOperatorType *ot)
void node_socket_select(bNode *node, bNodeSocket &sock)
void NODE_OT_backimage_zoom(wmOperatorType *ot)
void NODE_OT_tree_socket_remove(wmOperatorType *ot)
void NODE_OT_select(wmOperatorType *ot)
void node_socket_color_get(const bContext &C, const bNodeTree &ntree, PointerRNA &node_ptr, const bNodeSocket &sock, float r_color[4])
void NODE_OT_insert_offset(wmOperatorType *ot)
void NODE_OT_group_make(wmOperatorType *ot)
void node_draw_link(const bContext &C, const View2D &v2d, const SpaceNode &snode, const bNodeLink &link, const bool selected)
float2 node_link_calculate_multi_input_position(const float2 &socket_position, const int index, const int total_inputs)
void NODE_OT_resize(wmOperatorType *ot)
void NODE_OT_backimage_move(wmOperatorType *ot)
void NODE_OT_clipboard_paste(wmOperatorType *ot)
void NODE_OT_render_changed(wmOperatorType *ot)
void NODE_OT_links_detach(wmOperatorType *ot)
bool node_link_bezier_points(const View2D *v2d, const SpaceNode *snode, const bNodeLink &link, float coord_array[][2], const int resol)
void NODE_OT_group_insert(wmOperatorType *ot)
void node_socket_deselect(bNode *node, bNodeSocket &sock, bool deselect_node)
bNode * node_add_node(const bContext &C, const char *idname, int type, float locx, float locy)
void NODE_OT_delete_reconnect(wmOperatorType *ot)
void NODE_OT_shader_script_update(wmOperatorType *ot)
void node_select_all(ListBase *lb, int action)
void NODE_GGT_backdrop_corner_pin(wmGizmoGroupType *gzgt)
void NODE_OT_links_cut(wmOperatorType *ot)
void node_deselect_all(SpaceNode &snode)
void NODE_OT_hide_socket_toggle(wmOperatorType *ot)
void NODE_OT_select_grouped(wmOperatorType *ot)
void draw_nodespace_back_pix(const bContext &C, ARegion ®ion, SpaceNode &snode, bNodeInstanceKey parent_key)
void node_set_hidden_sockets(SpaceNode *snode, bNode *node, int set)
float node_link_dim_factor(const View2D &v2d, const bNodeLink &link)
void NODE_OT_output_file_remove_active_socket(wmOperatorType *ot)
void NODE_OT_join(wmOperatorType *ot)
void node_deselect_all_output_sockets(SpaceNode &snode, bool deselect_nodes)
NodeResizeDirection node_get_resize_direction(const bNode *node, const int x, const int y)
void nodelink_batch_start(SpaceNode &UNUSED(snode))
void NODE_OT_attach(wmOperatorType *ot)
bool node_link_is_hidden_or_dimmed(const View2D &v2d, const bNodeLink &link)
void NODE_OT_view_selected(wmOperatorType *ot)
void NODE_OT_link_viewer(wmOperatorType *ot)
void NODE_GGT_backdrop_crop(wmGizmoGroupType *gzgt)
void NODE_OT_select_linked_from(wmOperatorType *ot)
bool node_find_indicated_socket(SpaceNode &snode, bNode **nodep, bNodeSocket **sockp, const float2 &cursor, const eNodeSocketInOut in_out)
const char * node_group_idname(bContext *C)
Vector< ui::ContextPathItem > context_path_for_space_node(const bContext &C)
void NODE_OT_select_same_type_step(wmOperatorType *ot)
void node_select_single(bContext &C, bNode &node)
float2 space_node_group_offset(const SpaceNode &snode)
void NODE_OT_preview_toggle(wmOperatorType *ot)
void NODE_OT_clear_viewer_border(wmOperatorType *ot)
void NODE_OT_select_linked_to(wmOperatorType *ot)
void NODE_OT_link_make(wmOperatorType *ot)
void NODE_OT_view_all(wmOperatorType *ot)
void NODE_OT_group_edit(wmOperatorType *ot)
void node_operatortypes()
void NODE_GGT_backdrop_transform(wmGizmoGroupType *gzgt)
void NODE_OT_group_separate(wmOperatorType *ot)
float2 node_to_view(const bNode &node, const float2 &co)
void snode_set_context(const bContext &C)
void NODE_OT_duplicate(wmOperatorType *ot)
bool node_has_hidden_sockets(bNode *node)
void NODE_GGT_backdrop_sun_beams(wmGizmoGroupType *gzgt)
void sort_multi_input_socket_links(SpaceNode &snode, bNode &node, bNodeLink *drag_link, const float2 *cursor)
void NODE_OT_output_file_add_socket(wmOperatorType *ot)
rctf node_frame_rect_inside(const bNode &node)
void NODE_OT_options_toggle(wmOperatorType *ot)
void node_keymap(wmKeyConfig *keyconf)
void NODE_OT_add_group(wmOperatorType *ot)
void NODE_OT_add_file(wmOperatorType *ot)
void node_to_updated_rect(const bNode &node, rctf &r_rect)
bool composite_node_active(bContext *C)
bool node_link_bezier_handles(const View2D *v2d, const SpaceNode *snode, const bNodeLink &link, float vec[4][2])
void node_draw_space(const bContext &C, ARegion ®ion)
void NODE_OT_link(wmOperatorType *ot)
void NODE_OT_switch_view_update(wmOperatorType *ot)
void node_deselect_all_input_sockets(SpaceNode &snode, bool deselect_nodes)
int node_render_changed_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_links_mute(wmOperatorType *ot)
void NODE_OT_hide_toggle(wmOperatorType *ot)
ENUM_OPERATORS(NodeResizeDirection, NODE_RESIZE_LEFT)
void NODE_OT_select_box(wmOperatorType *ot)
void NODE_OT_select_all(wmOperatorType *ot)
void NODE_OT_group_ungroup(wmOperatorType *ot)
void NODE_OT_new_node_tree(wmOperatorType *ot)
float2 node_from_view(const bNode &node, const float2 &co)
void NODE_OT_cryptomatte_layer_remove(wmOperatorType *ot)
void NODE_OT_backimage_fit(wmOperatorType *ot)
void NODE_OT_tree_socket_change_type(wmOperatorType *ot)
void NODE_OT_output_file_move_active_socket(wmOperatorType *ot)
void NODE_OT_mute_toggle(wmOperatorType *ot)
const char * node_context_dir[]
bool recalc_regular_compositing
struct NodeInsertOfsData * iofsd
std::unique_ptr< bNodeLinkDrag > linkdrag
bool recalc_auto_compositing
bool from_multi_input_socket
Vector< bNodeLink * > links
View2DEdgePanData pan_data
bNodeLink * last_picked_multi_input_socket_link
bNode * last_node_hovered_while_dragging_a_link
std::array< int, 2 > cursor
bNodeSocket * start_socket