|
Blender V4.3
|
#include "DRW_render.hh"#include "BLI_listbase.h"#include "BLI_math_matrix.hh"#include "BLI_string.h"#include "DNA_armature_types.h"#include "DEG_depsgraph_query.hh"#include "GPU_batch.hh"#include "UI_resources.hh"#include "draw_manager_text.hh"#include "overlay_private.hh"Go to the source code of this file.
Functions | |
| void | OVERLAY_motion_path_cache_init (OVERLAY_Data *vedata) |
| static blender::gpu::VertBuf * | mpath_vbo_get (bMotionPath *mpath) |
| static blender::gpu::Batch * | mpath_batch_line_get (bMotionPath *mpath) |
| static blender::gpu::Batch * | mpath_batch_points_get (bMotionPath *mpath) |
| static void | motion_path_get_frame_range_to_draw (bAnimVizSettings *avs, bMotionPath *mpath, int current_frame, int *r_start, int *r_end, int *r_step) |
| static Object * | get_camera_for_motion_path (const DRWContextState *draw_context, const eMotionPath_BakeFlag bake_flag) |
| static void | motion_path_cache (OVERLAY_Data *vedata, Object *ob, bPoseChannel *pchan, bAnimVizSettings *avs, bMotionPath *mpath) |
| void | OVERLAY_motion_path_cache_populate (OVERLAY_Data *vedata, Object *ob) |
| void | OVERLAY_motion_path_draw (OVERLAY_Data *vedata) |
|
static |
Definition at line 109 of file overlay_motion_path.cc.
References View3D::camera, MOTIONPATH_BAKE_CAMERA_SPACE, and DRWContextState::v3d.
Referenced by motion_path_cache().
|
static |
Definition at line 118 of file overlay_motion_path.cc.
References Object::base_flag, BASE_SELECTED, bPoseChannel::bone, BONE_SELECTED, bMotionPathVert::co, col, bMotionPath::color, bMotionPath::color_post, copy_m4_m4(), copy_v3_v3(), DEG_get_ctime(), DEG_get_evaluated_object(), DRWContextState::depsgraph, DRW_context_state_get(), DRW_shgroup_call_range(), DRW_shgroup_create_sub(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_ivec4_copy(), DRW_shgroup_uniform_mat4_copy(), DRW_shgroup_uniform_vec3_copy(), DRW_text_cache_add(), DRW_text_cache_ensure(), DRW_TEXT_CACHE_GLOBALSPACE, equals_v3v3(), bMotionPath::flag, bMotionPathVert::flag, Bone::flag, get_camera_for_motion_path(), int, len, bMotionPath::length, bMotionPath::line_thickness, max_ii(), motion_path_get_frame_range_to_draw(), OVERLAY_PrivateData::motion_path_lines_grp, OVERLAY_PrivateData::motion_path_points_grp, MOTIONPATH_FLAG_CUSTOM, MOTIONPATH_FLAG_LINES, MOTIONPATH_VERT_KEY, MOTIONPATH_VIEW_FNUMS, MOTIONPATH_VIEW_KFNOS, MOTIONPATH_VIEW_KFRAS, mpath_batch_line_get(), mpath_batch_points_get(), bAnimVizSettings::path_bakeflag, bAnimVizSettings::path_viewflag, OVERLAY_StorageList::pd, bMotionPath::points, SNPRINTF_RLEN, bMotionPath::start_frame, OVERLAY_Data::stl, TH_TEXT_HI, TH_VERTEX_SELECT, blender::math::transform_point(), UI_GetThemeColor3ubv(), and unit_m4().
Referenced by OVERLAY_motion_path_cache_populate().
|
static |
Definition at line 79 of file overlay_motion_path.cc.
References CLAMP, bMotionPath::end_frame, max_ii(), MOTIONPATH_TYPE_ACFRA, bAnimVizSettings::path_ac, bAnimVizSettings::path_bc, bAnimVizSettings::path_ef, bAnimVizSettings::path_sf, bAnimVizSettings::path_step, bAnimVizSettings::path_type, and bMotionPath::start_frame.
Referenced by motion_path_cache().
|
static |
Definition at line 63 of file overlay_motion_path.cc.
References bMotionPath::batch_line, GPU_batch_create, GPU_PRIM_LINE_STRIP, and mpath_vbo_get().
Referenced by motion_path_cache().
|
static |
Definition at line 71 of file overlay_motion_path.cc.
References bMotionPath::batch_points, GPU_batch_create, GPU_PRIM_POINTS, and mpath_vbo_get().
Referenced by motion_path_cache().
|
static |
Definition at line 48 of file overlay_motion_path.cc.
References GPU_COMP_F32, GPU_COMP_I32, GPU_FETCH_FLOAT, GPU_FETCH_INT, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), bMotionPath::length, bMotionPath::points, and bMotionPath::points_vbo.
Referenced by mpath_batch_line_get(), and mpath_batch_points_get().
| void OVERLAY_motion_path_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 27 of file overlay_motion_path.cc.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_STATE_WRITE_COLOR, G_draw, OVERLAY_PrivateData::motion_path_lines_grp, OVERLAY_PrivateData::motion_path_points_grp, OVERLAY_PassList::motion_paths_ps, OVERLAY_shader_motion_path_line(), OVERLAY_shader_motion_path_vert(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_init().
| void OVERLAY_motion_path_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 241 of file overlay_motion_path.cc.
References bPose::avs, Object::avs, bPose::chanbase, DRW_context_state_get(), LISTBASE_FOREACH, motion_path_cache(), Object::mpath, OB_ARMATURE, OVERLAY_armature_is_pose_mode(), Object::pose, and Object::type.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_motion_path_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 260 of file overlay_motion_path.cc.
References DRW_draw_pass(), OVERLAY_PassList::motion_paths_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().