|
Blender
V2.59
|
#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 "CMP_node.h"#include "SHD_node.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.
Definition in file drawnode.c.
| #define LINK_RESOL 24 |
Definition at line 1794 of file drawnode.c.
Referenced by node_draw_link_bezier().
Definition at line 1418 of file drawnode.c.
References B_ENDIAN, BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_image_verify_viewer(), ENDIAN_ORDER, SpaceNode::flag, glaDefine2DArea(), glaDrawPixelsSafe(), IB_PROFILE_LINEAR_RGB, IB_PROFILE_NONE, IMA_TYPE_COMPOSITE, IMB_rect_from_float(), NTREE_COMPOSIT, NULL, ImBuf::profile, ImBuf::rect, SNODE_BACKDRAW, SNODE_SHOW_ALPHA, SNODE_USE_ALPHA, SpaceNode::treetype, ARegion::winrct, ARegion::winx, ARegion::winy, wmOrtho2(), ImBuf::x, SpaceNode::xof, ImBuf::y, SpaceNode::yof, and SpaceNode::zoom.
Referenced by drawnodespace().
| void draw_nodespace_color_info | ( | ARegion * | ar, |
| int | color_manage, | ||
| int | channels, | ||
| int | x, | ||
| int | y, | ||
| char * | cp, | ||
| float * | fp | ||
| ) |
Definition at line 1492 of file drawnode.c.
References BLF_draw_ascii(), blf_mono_font, BLF_position(), BLF_size(), BLF_width(), copy_v3_v3(), copy_v4_v4(), linearrgb_to_srgb_v3_v3(), rgb_to_hsv(), rgb_to_yuv(), str, simple_enum_gen::val, ARegion::winrct, rcti::xmax, rcti::xmin, zero_v3(), and zero_v4().
Referenced by sample_draw().
| void ED_init_node_butfuncs | ( | void | ) |
Definition at line 1393 of file drawnode.c.
References ListBase::first, bNodeType::next, node_all_composit, node_all_shaders, node_all_textures, node_composit_set_butfunc(), node_shader_set_butfunc(), and node_texture_set_butfunc().
Referenced by WM_init().
| static void node_browse_text_cb | ( | bContext * | C, |
| void * | ntree_v, | ||
| void * | node_v | ||
| ) | [static] |
Definition at line 292 of file drawnode.c.
References BLI_findlink(), BLI_strncpy(), BSET, CTX_data_main(), bNode::custom1, bNode::id, id_us_plus(), bNode::menunr, ID::name, bNode::name, NODE_DYNAMIC_NEW, nodeSetActive(), Main::text, and ID::us.
Referenced by node_shader_buts_dynamic().
| static void node_buts_colorramp | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 147 of file drawnode.c.
References uiTemplateColorRamp().
Referenced by node_composit_set_butfunc(), node_shader_set_butfunc(), and node_texture_set_butfunc().
| static void node_buts_curvecol | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 165 of file drawnode.c.
References CUMA_DRAW_SAMPLE, PointerRNA::data, CurveMapping::flag, CurveMapping::sample, bNode::storage, uiTemplateCurveMapping(), and VECCOPY.
Referenced by node_composit_set_butfunc(), node_shader_set_butfunc(), and node_texture_set_butfunc().
| static void node_buts_curvevec | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 152 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 285 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] |
Definition at line 113 of file drawnode.c.
References PointerRNA::data, PointerRNA::id, NTREE_COMPOSIT, bNodeTree::type, uiItemR(), and uiLayoutRow().
Referenced by node_composit_set_butfunc(), node_shader_set_butfunc(), and node_texture_set_butfunc().
| static void node_buts_normal | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 188 of file drawnode.c.
References B_NODE_EXEC, BUT_NORMAL, bNode::butr, PointerRNA::data, ListBase::first, PointerRNA::id, node_normal_cb(), bNodeSocket::ns, bNode::outputs, uiButSetFunc(), uiDefButF(), uiLayoutAbsoluteBlock(), bNodeStack::vec, rctf::xmax, and rctf::xmin.
Referenced by node_composit_set_butfunc(), and node_shader_set_butfunc().
| static void node_buts_rgb | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 98 of file drawnode.c.
References RNA_property_collection_lookup_int(), RNA_struct_find_property(), uiItemR(), uiLayoutColumn(), and uiTemplateColorWheel().
Referenced by node_composit_set_butfunc(), and node_shader_set_butfunc().
| static void node_buts_texture | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 266 of file drawnode.c.
References CMP_NODE_TEXTURE, PointerRNA::data, bNode::id, TEX_NODE_TEXTURE, bNode::type, and uiItemR().
Referenced by node_composit_set_butfunc(), node_shader_set_butfunc(), and node_texture_set_butfunc().
| static void node_buts_time | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 125 of file drawnode.c.
References CFRA, CUMA_DRAW_CFRA, bNode::custom1, bNode::custom2, PointerRNA::data, CurveMapping::flag, CurveMapping::sample, bNode::storage, uiItemR(), uiLayoutRow(), and uiTemplateCurveMapping().
Referenced by node_composit_set_butfunc(), and node_texture_set_butfunc().
| static void node_buts_value | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 86 of file drawnode.c.
References RNA_property_collection_lookup_int(), RNA_struct_find_property(), and uiItemR().
Referenced by node_composit_set_butfunc(), and node_shader_set_butfunc().
| static void node_composit_buts_alphaover | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 797 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 615 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] |
Definition at line 561 of file drawnode.c.
References NULL, R_FILTER_FAST_GAUSS, RNA_boolean_get(), RNA_enum_get(), UI_ITEM_R_EXPAND, uiItemL(), uiItemR(), uiLayoutColumn(), and uiLayoutRow().
Referenced by node_composit_set_butfunc().
| static void node_composit_buts_channel_matte | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 898 of file drawnode.c.
References NULL, RNA_enum_get(), UI_ITEM_R_EXPAND, UI_ITEM_R_SLIDER, uiItemL(), uiItemR(), uiLayoutColumn(), and uiLayoutRow().
Referenced by node_composit_set_butfunc().
| static void node_composit_buts_chroma_matte | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 874 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 888 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] |
Definition at line 848 of file drawnode.c.
References NULL, RNA_boolean_get(), RNA_enum_get(), UI_ITEM_R_EXPAND, UI_ITEM_R_SLIDER, uiItemL(), uiItemR(), uiLayoutColumn(), and uiLayoutRow().
Referenced by node_composit_set_butfunc().
| static void node_composit_buts_colorbalance | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 997 of file drawnode.c.
References NULL, RNA_enum_get(), split(), uiItemR(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSplit(), and uiTemplateColorWheel().
Referenced by node_composit_set_butfunc().
| static void node_composit_buts_colorbalance_but | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 1041 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 745 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 591 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] |
Definition at line 625 of file drawnode.c.
References NULL, RNA_boolean_get(), uiItemL(), uiItemR(), uiLayoutColumn(), and uiLayoutSetActive().
Referenced by node_composit_set_butfunc().
| static void node_composit_buts_diff_matte | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 830 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 825 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 839 of file drawnode.c.
References NULL, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().
Referenced by node_composit_set_butfunc().
| static void node_composit_buts_file_output | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 943 of file drawnode.c.
References NULL, R_JPEG90, R_OPENEXR, R_PNG, RNA_enum_get(), UI_ITEM_R_SLIDER, uiItemR(), uiLayoutColumn(), and uiLayoutRow().
Referenced by node_composit_set_butfunc().
| static void node_composit_buts_filter | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 735 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 740 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 657 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 815 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 1068 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 938 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] |
Definition at line 481 of file drawnode.c.
References BKE_image_user_get_frame(), BLI_snprintf(), CFRA, CTX_data_scene(), PointerRNA::data, ELEM, bNode::id, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMA_TYPE_MULTILAYER, NULL, PROP_POINTER, RNA_enum_get(), RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), bNode::storage, UI_ITEM_R_ICON_ONLY, uiItemL(), uiItemR(), uiLayoutColumn(), and uiTemplateID().
Referenced by node_composit_set_butfunc().
| static void node_composit_buts_invert | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 978 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 706 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 924 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 933 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 776 of file drawnode.c.
References NULL, RNA_boolean_get(), uiItemR(), uiLayoutColumn(), and uiLayoutSetActive().
Referenced by node_composit_set_butfunc().
| static void node_composit_buts_premulkey | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 987 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] |
Definition at line 528 of file drawnode.c.
References PointerRNA::data, bNode::id, MAX_ID_NAME, NULL, RNA_pointer_get(), RNA_property_enum_get(), RNA_property_enum_identifier(), RNA_string_get(), RNA_string_set(), RNA_struct_find_property(), uiItemFullO(), uiItemR(), uiLayoutColumn(), uiLayoutRow(), uiTemplateID(), WM_OP_INVOKE_DEFAULT, and WM_operator_properties_create().
Referenced by node_composit_set_butfunc().
| static void node_composit_buts_rotate | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 973 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 968 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 766 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_tonemap | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 687 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_vecblur | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 719 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 992 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 1073 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 806 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 1079 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_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_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_TEXTURE, CMP_NODE_TIME, CMP_NODE_TONEMAP, 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_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_premulkey(), node_composit_buts_renderlayers(), node_composit_buts_rotate(), node_composit_buts_scale(), node_composit_buts_splitviewer(), node_composit_buts_tonemap(), 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().
Definition at line 1844 of file drawnode.c.
References bNodeSocket::flag, bNode::flag, bNodeLink::flag, bNodeLink::fromnode, bNodeLink::fromsock, bNode::level, node_draw_link_bezier(), NODE_LINKFLAG_HILITE, NULL, SELECT, SOCK_UNAVAIL, TH_ACTIVE, TH_BACK, TH_EDGE_SELECT, TH_HEADER, TH_REDALERT, TH_WIRE, bNodeLink::tonode, bNodeLink::tosock, and UI_ThemeColorBlend().
Referenced by drawnodespace(), and node_draw_nodetree().
| 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 | ||
| ) |
Definition at line 1795 of file drawnode.c.
References i, LINK_RESOL, node_link_bezier_points(), UI_ThemeColor(), UI_ThemeColorBlend(), and UI_ThemeColorShadeAlpha().
Referenced by node_draw_link(), and node_draw_mute_line().
| static void node_dynamic_update_cb | ( | bContext * | C, |
| void * | UNUSEDntree_v, | ||
| void * | node_v | ||
| ) | [static] |
Definition at line 234 of file drawnode.c.
References BSET, BTST, CTX_data_main(), bNode::custom1, error(), ListBase::first, Material::id, bNode::id, Main::mat, bNode::menunr, ID::next, bNode::next, NODE_DYNAMIC, NODE_DYNAMIC_ERROR, NODE_DYNAMIC_REPARSE, bNodeTree::nodes, Material::nodetree, and bNode::type.
Referenced by node_shader_buts_dynamic().
| int node_link_bezier_points | ( | View2D * | v2d, |
| SpaceNode * | snode, | ||
| bNodeLink * | link, | ||
| float | coord_array[][2], | ||
| int | resol | ||
| ) |
Definition at line 1748 of file drawnode.c.
References ABS, View2D::cur, forward_diff_bezier(), bNodeLink::fromsock, bNodeSocket::locx, bNodeSocket::locy, MAX4, MIN4, SpaceNode::mx, SpaceNode::my, NULL, TH_NODE_CURVING, bNodeLink::tosock, UI_GetThemeValue(), rctf::xmax, and rctf::xmin.
Referenced by cut_links_intersect(), and node_draw_link_bezier().
| static void node_normal_cb | ( | bContext * | C, |
| void * | ntree_v, | ||
| void * | node_v | ||
| ) | [static] |
Definition at line 180 of file drawnode.c.
References CTX_data_main(), ED_node_generic_update(), NA_EDITED, NC_NODE, and WM_event_add_notifier().
Referenced by node_buts_normal().
| static void node_shader_buts_dynamic | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 384 of file drawnode.c.
References B_NODE_EXEC, B_NOP, BTST, BUT, bNode::butr, CTX_data_main(), bNode::custom1, PointerRNA::data, PointerRNA::id, bNode::id, IDnames_to_pupstring(), MEM_freeN(), MENU, bNode::menunr, node_browse_text_cb(), NODE_DYNAMIC_ERROR, node_dynamic_update_cb(), NULL, Main::text, uiButSetFunc(), uiDefBut(), uiDefButS(), uiLayoutAbsoluteBlock(), rctf::xmin, and rctf::ymin.
Referenced by node_shader_set_butfunc().
| static void node_shader_buts_geometry | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 365 of file drawnode.c.
References CTX_data_pointer_get(), PointerRNA::data, OB_MESH, RNA_enum_get(), RNA_pointer_get(), uiItemPointerR(), uiItemR(), and uiLayoutColumn().
Referenced by node_shader_set_butfunc().
| static void node_shader_buts_mapping | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 334 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 319 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_vect_math | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 360 of file drawnode.c.
References uiItemR().
Referenced by node_shader_set_butfunc().
| static void node_shader_set_butfunc | ( | bNodeType * | ntype | ) | [static] |
Definition at line 424 of file drawnode.c.
References 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_value(), NODE_DYNAMIC, node_shader_buts_dynamic(), node_shader_buts_geometry(), node_shader_buts_mapping(), node_shader_buts_material(), node_shader_buts_vect_math(), NULL, SH_NODE_CURVE_RGB, SH_NODE_CURVE_VEC, SH_NODE_GEOMETRY, SH_NODE_MAPPING, SH_NODE_MATERIAL, SH_NODE_MATERIAL_EXT, SH_NODE_MATH, SH_NODE_MIX_RGB, SH_NODE_NORMAL, SH_NODE_RGB, SH_NODE_TEXTURE, SH_NODE_VALTORGB, SH_NODE_VALUE, SH_NODE_VECT_MATH, bNodeType::type, bNodeType::uifunc, and bNodeType::uifuncbut.
Referenced by ED_init_node_butfuncs().
| static void node_texture_buts_bricks | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr | ||
| ) | [static] |
Definition at line 1237 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 1330 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 1335 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] |
Definition at line 1250 of file drawnode.c.
References PointerRNA::data, PointerRNA::id, NULL, RNA_enum_get(), RNA_pointer_create(), RNA_Texture, bNode::storage, TEX_BAND, TEX_BLEND, TEX_CLOUDS, TEX_DISTNOISE, TEX_MAGIC, TEX_MARBLE, TEX_MINKOVSKY, TEX_MUSGRAVE, TEX_RING, TEX_STUCCI, TEX_VORONOI, TEX_WOOD, Tex::type, UI_ITEM_R_EXPAND, uiItemR(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetActive(), and Tex::vn_distm.
Referenced by node_texture_set_butfunc().
| static void node_texture_set_butfunc | ( | bNodeType * | ntype | ) | [static] |
Definition at line 1341 of file drawnode.c.
References node_buts_colorramp(), node_buts_curvecol(), node_buts_math(), node_buts_mix_rgb(), node_buts_texture(), node_buts_time(), node_texture_buts_bricks(), node_texture_buts_image(), node_texture_buts_output(), node_texture_buts_proc(), NULL, TEX_NODE_BRICKS, TEX_NODE_CURVE_RGB, TEX_NODE_CURVE_TIME, TEX_NODE_IMAGE, TEX_NODE_MATH, TEX_NODE_MIX_RGB, TEX_NODE_OUTPUT, TEX_NODE_PROC, TEX_NODE_PROC_MAX, TEX_NODE_TEXTURE, TEX_NODE_VALTORGB, bNodeType::type, bNodeType::uifunc, and bNodeType::uifuncbut.
Referenced by ED_init_node_butfuncs().
float* _sample_col = NULL [static] |
Definition at line 157 of file drawnode.c.