|
Blender V4.3
|
lower level node drawing for nodes (boarders, headers etc), also node layout. More...
#include "BLI_color.hh"#include "BLI_string.h"#include "BLI_system.h"#include "BLI_threads.h"#include "DNA_node_types.h"#include "DNA_object_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_node.hh"#include "BKE_node_enum.hh"#include "BKE_node_runtime.hh"#include "BKE_node_tree_update.hh"#include "BKE_scene.hh"#include "BKE_tracking.h"#include "BLF_api.hh"#include "BLT_translation.hh"#include "BIF_glutil.hh"#include "GPU_batch.hh"#include "GPU_batch_presets.hh"#include "GPU_framebuffer.hh"#include "GPU_immediate.hh"#include "GPU_matrix.hh"#include "GPU_platform.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_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_shader.h"#include "NOD_socket.hh"#include "NOD_texture.h"#include "node_intern.hh"Go to the source code of this file.
Classes | |
| 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 |
| #define | NODELINK_GROUP_SIZE 256 |
| #define | LINK_RESOL 24 |
| #define | LINK_WIDTH 2.5f |
| #define | ARROW_SIZE (7 * UI_SCALE_FAC) |
Typedefs | |
| using | blender::ed::space_node::SocketColorFn = void (*)(bContext *C, PointerRNA *ptr, PointerRNA *node_ptr, float *r_color) |
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 1816 of file drawnode.cc.
Referenced by blender::ed::space_node::node_draw_link_bezier_ex(), and 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_rgb(), blender::ed::space_node::node_buts_texture(), blender::ed::space_node::node_buts_time(), blender::ed::space_node::node_buts_value(), 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_composit_buts_ycc(), 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 1814 of file drawnode.cc.
Referenced by blender::ed::space_node::nodelink_batch_init().
| #define LINK_WIDTH 2.5f |
Definition at line 1815 of file drawnode.cc.
Referenced by blender::ed::space_node::nodelink_get_draw_config().
| #define NODELINK_GROUP_SIZE 256 |
Definition at line 1813 of file drawnode.cc.
Referenced by blender::ed::space_node::nodelink_batch_add_link(), and blender::ed::space_node::nodelink_batch_init().
Definition at line 157 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 1102 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 1100 of file drawnode.cc.
| void ED_init_node_socket_type_virtual | ( | blender::bke::bNodeSocketType * | stype | ) |
Definition at line 1612 of file drawnode.cc.
References blender::bke::bNodeSocketType::draw, blender::bke::bNodeSocketType::draw_color, and blender::bke::bNodeSocketType::draw_color_simple.
Referenced by make_socket_type_virtual().
| void ED_init_standard_node_socket_type | ( | blender::bke::bNodeSocketType * | stype | ) |
Definition at line 1603 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, and blender::bke::bNodeSocketType::type.
Referenced by make_standard_socket_type().
| void ED_node_draw_snap | ( | View2D * | v2d, |
| const float | cent[2], | ||
| float | size, | ||
| NodeBorder | border, | ||
| uint | pos ) |
Definition at line 2412 of file drawnode.cc.
References View2D::cur, GPU_PRIM_LINES, immBegin(), immEnd(), immVertex2f(), NODE_BOTTOM, NODE_LEFT, NODE_RIGHT, NODE_TOP, pos, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by drawSnapping().
| void ED_node_init_butfuncs | ( | ) |
Definition at line 1067 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, NODE_TYPES_BEGIN, NODE_TYPES_END, blender::bke::NodeSocketTypeUndefined, and blender::bke::NodeTypeUndefined.
Referenced by WM_init().
| void ED_node_sample_set | ( | const float | col[4] | ) |
Definition at line 160 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 1620 of file drawnode.cc.
References ARRAY_SIZE, BLI_assert, copy_v4_v4(), blender::bke::node_socket_type_find(), SOCK_CUSTOM, and blender::bke::bNodeSocketType::type.
|
static |
Definition at line 159 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().