|
Blender V5.0
|
lower level node drawing for nodes (boarders, headers etc), also node layout. More...
#include "BLI_color.hh"#include "BLI_listbase.h"#include "BLI_string_utf8.h"#include "BLI_threads.h"#include "DNA_node_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "DNA_userdef_types.h"#include "BKE_context.hh"#include "BKE_curve.hh"#include "BKE_image.hh"#include "BKE_main.hh"#include "BKE_main_invariants.hh"#include "BKE_node.hh"#include "BKE_node_enum.hh"#include "BKE_node_legacy_types.hh"#include "BKE_node_runtime.hh"#include "BKE_node_tree_update.hh"#include "BKE_scene.hh"#include "BKE_tracking.h"#include "BLT_translation.hh"#include "BIF_glutil.hh"#include "GPU_batch.hh"#include "GPU_batch_presets.hh"#include "GPU_capabilities.hh"#include "GPU_framebuffer.hh"#include "GPU_immediate.hh"#include "GPU_matrix.hh"#include "GPU_shader_shared.hh"#include "GPU_state.hh"#include "GPU_uniform_buffer.hh"#include "DRW_engine.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_prototypes.hh"#include "ED_node.hh"#include "ED_space_api.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "IMB_colormanagement.hh"#include "IMB_imbuf_types.hh"#include "NOD_composite.hh"#include "NOD_geometry.hh"#include "NOD_geometry_nodes_gizmos.hh"#include "NOD_node_declaration.hh"#include "NOD_partial_eval.hh"#include "NOD_socket.hh"#include "NOD_socket_declarations.hh"#include "node_intern.hh"Go to the source code of this file.
Classes | |
| struct | blender::ed::space_node::GBatchNodesocket |
| struct | blender::ed::space_node::NodeLinkDrawConfig |
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::space_node |
Macros | |
| #define | DEFAULT_FLAGS UI_ITEM_R_SPLIT_EMPTY_NAME |
| #define | SAMPLE_FLT_ISNONE FLT_MAX |
Typedefs | |
| using | blender::ed::space_node::SocketColorFn = void (*)(bContext *C, PointerRNA *ptr, PointerRNA *node_ptr, float *r_color) |
Variables | |
| static float | _sample_col [4] = {SAMPLE_FLT_ISNONE} |
| static const float | blender::ed::space_node::virtual_node_socket_color [4] = {0.2, 0.2, 0.2, 1.0} |
| static const float | blender::ed::space_node::std_node_socket_colors [][4] |
| static const SocketColorFn | blender::ed::space_node::std_node_socket_color_funcs [] |
Node Socket Drawing | |
| #define | MAX_SOCKET_PARAMETERS 4 |
| #define | MAX_SOCKET_INSTANCE 32 |
| static GBatchNodesocket & | blender::ed::space_node::g_batch_nodesocket () |
| static gpu::Batch * | blender::ed::space_node::nodesocket_batch_init () |
| static void | blender::ed::space_node::nodesocket_cache_flush () |
| void | blender::ed::space_node::nodesocket_batch_start () |
| void | blender::ed::space_node::nodesocket_batch_end () |
| static void | blender::ed::space_node::draw_node_socket_batch (const NodeSocketShaderParameters &socket_params) |
| void | blender::ed::space_node::node_draw_nodesocket (const rctf *rect, const float color_inner[4], const float color_outline[4], float outline_thickness, int shape, float aspect) |
lower level node drawing for nodes (boarders, headers etc), also node layout.
Definition in file drawnode.cc.
| #define ARROW_SIZE (7 * UI_SCALE_FAC) |
Definition at line 1848 of file drawnode.cc.
Referenced by blender::ed::space_node::nodelink_batch_draw().
| #define DEFAULT_FLAGS UI_ITEM_R_SPLIT_EMPTY_NAME |
Definition at line 78 of file drawnode.cc.
Referenced by blender::ed::space_node::node_buts_combsep_color(), blender::ed::space_node::node_buts_frame_ex(), blender::ed::space_node::node_buts_image_user(), blender::ed::space_node::node_buts_image_views(), blender::ed::space_node::node_buts_math(), blender::ed::space_node::node_buts_mix_rgb(), blender::ed::space_node::node_buts_normal(), blender::ed::space_node::node_buts_output_shader(), blender::ed::space_node::node_buts_texture(), blender::ed::space_node::node_composit_buts_combsep_color(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::ed::space_node::node_shader_buts_displacement(), blender::ed::space_node::node_shader_buts_glossy(), blender::ed::space_node::node_shader_buts_scatter(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_environment_ex(), blender::ed::space_node::node_shader_buts_tex_image(), blender::ed::space_node::node_texture_buts_bricks(), blender::ed::space_node::node_texture_buts_combsep_color(), blender::ed::space_node::node_texture_buts_output(), blender::ed::space_node::node_texture_buts_proc(), blender::ed::space_node::std_node_socket_draw(), and blender::ed::space_node::std_node_socket_interface_draw().
| #define LINK_RESOL 24 |
Definition at line 1846 of file drawnode.cc.
Referenced by blender::ed::space_node::nodelink_batch_init().
| #define LINK_WIDTH 2.5f |
Definition at line 1847 of file drawnode.cc.
Referenced by blender::ed::space_node::nodelink_get_draw_config().
| #define MAX_SOCKET_INSTANCE 32 |
Definition at line 1711 of file drawnode.cc.
Referenced by blender::ed::space_node::draw_node_socket_batch(), and blender::ed::space_node::nodesocket_cache_flush().
| #define MAX_SOCKET_PARAMETERS 4 |
Definition at line 1710 of file drawnode.cc.
Referenced by blender::ed::space_node::draw_node_socket_batch(), and blender::ed::space_node::nodesocket_cache_flush().
| #define NODELINK_GROUP_SIZE 256 |
Definition at line 1845 of file drawnode.cc.
Referenced by blender::ed::space_node::nodelink_batch_add_link(), and blender::ed::space_node::nodelink_batch_init().
| #define SAMPLE_FLT_ISNONE FLT_MAX |
Definition at line 129 of file drawnode.cc.
Referenced by ED_node_sample_set(), blender::ed::space_node::node_buts_curvecol(), and blender::ed::space_node::node_composit_buts_huecorrect().
| void ED_init_custom_node_socket_type | ( | blender::bke::bNodeSocketType * | stype | ) |
Definition at line 942 of file drawnode.cc.
References blender::bke::bNodeSocketType::draw, and blender::ed::space_node::node_socket_button_label().
| void ED_init_custom_node_type | ( | blender::bke::bNodeType * | ntype | ) |
Definition at line 940 of file drawnode.cc.
| void ED_init_node_socket_type_virtual | ( | blender::bke::bNodeSocketType * | stype | ) |
Definition at line 1502 of file drawnode.cc.
References blender::bke::bNodeSocketType::draw, blender::bke::bNodeSocketType::draw_color, blender::bke::bNodeSocketType::draw_color_simple, blender::ed::space_node::node_socket_virtual_draw_color(), blender::ed::space_node::node_socket_virtual_draw_color_simple(), and blender::ed::space_node::std_node_socket_draw().
Referenced by make_socket_type_virtual().
| void ED_init_standard_node_socket_type | ( | blender::bke::bNodeSocketType * | stype | ) |
Definition at line 1493 of file drawnode.cc.
References blender::bke::bNodeSocketType::draw, blender::bke::bNodeSocketType::draw_color, blender::bke::bNodeSocketType::draw_color_simple, blender::bke::bNodeSocketType::interface_draw, blender::ed::space_node::std_node_socket_color_funcs, blender::ed::space_node::std_node_socket_color_simple_fn(), blender::ed::space_node::std_node_socket_draw(), blender::ed::space_node::std_node_socket_interface_draw(), and blender::bke::bNodeSocketType::type.
Referenced by make_standard_socket_type().
| void ED_node_init_butfuncs | ( | ) |
Definition at line 908 of file drawnode.cc.
References blender::bke::bNodeSocketType::draw, blender::bke::bNodeType::draw_buttons, blender::bke::bNodeType::draw_buttons_ex, blender::bke::bNodeSocketType::draw_color, blender::bke::bNodeSocketType::draw_color_simple, blender::bke::bNodeSocketType::interface_draw, blender::ed::space_node::node_common_set_butfunc(), blender::ed::space_node::node_composit_set_butfunc(), blender::ed::space_node::node_shader_set_butfunc(), blender::ed::space_node::node_socket_undefined_draw(), blender::ed::space_node::node_socket_undefined_draw_color(), blender::ed::space_node::node_socket_undefined_draw_color_simple(), blender::ed::space_node::node_socket_undefined_interface_draw(), blender::ed::space_node::node_template_properties_update(), blender::ed::space_node::node_texture_set_butfunc(), blender::bke::node_types_get(), blender::bke::NodeSocketTypeUndefined, and blender::bke::NodeTypeUndefined.
Referenced by WM_init().
| void ED_node_sample_set | ( | const float | col[4] | ) |
Definition at line 132 of file drawnode.cc.
References _sample_col, col, copy_v4_fl(), copy_v4_v4(), and SAMPLE_FLT_ISNONE.
Referenced by blender::ed::space_node::sample_apply(), and blender::ed::space_node::sample_exit().
| void ED_node_type_draw_color | ( | const char * | idname, |
| float * | r_color ) |
Definition at line 1510 of file drawnode.cc.
References ARRAY_SIZE, BLI_assert, copy_v4_v4(), blender::bke::node_socket_type_find(), SOCK_CUSTOM, blender::ed::space_node::std_node_socket_colors, and blender::bke::bNodeSocketType::type.
|
static |
Definition at line 131 of file drawnode.cc.
Referenced by ED_node_sample_set(), blender::ed::space_node::node_buts_curvecol(), and blender::ed::space_node::node_composit_buts_huecorrect().