|
Blender V4.3
|
#include <cstdio>#include <cstring>#include "DNA_defaults.h"#include "DNA_mask_types.h"#include "DNA_movieclip_types.h"#include "DNA_scene_types.h"#include "DNA_view3d_types.h"#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_lib_query.hh"#include "BKE_lib_remap.hh"#include "BKE_movieclip.h"#include "BKE_screen.hh"#include "BKE_tracking.h"#include "IMB_imbuf_types.hh"#include "ED_anim_api.hh"#include "ED_clip.hh"#include "ED_mask.hh"#include "ED_screen.hh"#include "ED_space_api.hh"#include "ED_time_scrub_ui.hh"#include "ED_uvedit.hh"#include "IMB_imbuf.hh"#include "GPU_matrix.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "BLO_read_write.hh"#include "RNA_access.hh"#include "clip_intern.hh"Go to the source code of this file.
Default Callbacks for Clip Space | |
| const char * | clip_context_dir [] = {"edit_movieclip", "edit_mask", nullptr} |
| static SpaceLink * | clip_create (const ScrArea *, const Scene *) |
| static void | clip_free (SpaceLink *sl) |
| static void | clip_init (wmWindowManager *, ScrArea *area) |
| static SpaceLink * | clip_duplicate (SpaceLink *sl) |
| static void | clip_listener (const wmSpaceTypeListenerParams *params) |
| static void | clip_operatortypes () |
| static void | clip_keymap (wmKeyConfig *keyconf) |
| static int | clip_context (const bContext *C, const char *member, bContextDataResult *result) |
| static bool | clip_drop_poll (bContext *, wmDrag *drag, const wmEvent *) |
| static void | clip_drop_copy (bContext *, wmDrag *drag, wmDropBox *drop) |
| static void | clip_dropboxes () |
| static void | clip_refresh (const bContext *C, ScrArea *area) |
| static void | CLIP_GGT_navigate (wmGizmoGroupType *gzgt) |
| static void | clip_gizmos () |
Definition at line 145 of file space_clip.cc.
References BKE_movieclip_user_set_frame(), and SpaceClip::user.
Referenced by clip_listener().
Definition at line 973 of file space_clip.cc.
References BKE_tracking_dopesheet_update(), clip_draw_dopesheet_channels(), CTX_wm_space_clip(), ED_space_clip_get_clip(), TH_BACK, UI_ThemeClearColor(), UI_view2d_view_ortho(), and UI_view2d_view_restore().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 960 of file space_clip.cc.
References wmWindowManager::defaultconf, RGN_TYPE_WINDOW, SPACE_CLIP, UI_view2d_region_reinit(), V2D_COMMONVIEW_LIST, V2D_SCROLL_BOTTOM, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 995 of file space_clip.cc.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 954 of file space_clip.cc.
References ELEM, params, SC_VIEW_DOPESHEET, and SpaceClip::view.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 493 of file space_clip.cc.
References SpaceClip::clip, clip_context_dir, CTX_data_dir(), CTX_data_dir_set(), CTX_data_equals(), CTX_data_id_pointer_set(), CTX_RESULT_MEMBER_NOT_FOUND, CTX_RESULT_OK, CTX_wm_space_clip(), Mask::id, MovieClip::id, MaskSpaceInfo::mask, and SpaceClip::mask_info.
Referenced by ED_spacetype_clip().
Definition at line 157 of file space_clip.cc.
References BLI_addtail(), DNA_struct_default_alloc, SpaceClip::regionbase, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_TYPE_CHANNELS, RGN_TYPE_HEADER, RGN_TYPE_PREVIEW, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, USER_HEADER_BOTTOM, V2D_SCROLL_BOTTOM, and V2D_VIEWSYNC_AREA_VERTICAL.
Referenced by ED_spacetype_clip().
Definition at line 533 of file space_clip.cc.
References BLI_path_split_dir_file(), FILE_MAX, wmDropBox::ptr, RNA_collection_add(), RNA_collection_clear(), RNA_string_set(), and WM_drag_get_single_path().
Referenced by clip_dropboxes().
Definition at line 521 of file space_clip.cc.
References ELEM, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmDrag::type, WM_drag_get_path_file_type(), and WM_DRAG_PATH.
Referenced by clip_dropboxes().
|
static |
Definition at line 548 of file space_clip.cc.
References clip_drop_copy(), clip_drop_poll(), RGN_TYPE_WINDOW, SPACE_CLIP, WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacetype_clip().
Definition at line 235 of file space_clip.cc.
References MovieClipScopes::ok, SpaceClip::scopes, MovieClipScopes::track_preview, and MovieClipScopes::track_search.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1172 of file space_clip.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, BKE_lib_query_foreachid_process_flags_get(), SpaceClip::clip, IDWALK_CB_DIRECT_WEAK_LINK, IDWALK_CB_USER_ONE, IDWALK_READONLY, MaskSpaceInfo::mask, SpaceClip::mask_info, MovieClipScopes::ok, and SpaceClip::scopes.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 211 of file space_clip.cc.
References SpaceClip::clip, IMB_freeImBuf(), SpaceClip::scopes, MovieClipScopes::track_preview, and MovieClipScopes::track_search.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 582 of file space_clip.cc.
References VIEW2D_GGT_navigate_impl().
Referenced by clip_gizmos().
|
static |
Definition at line 587 of file space_clip.cc.
References CLIP_GGT_navigate(), RGN_TYPE_WINDOW, SPACE_CLIP, WM_gizmogrouptype_append_and_link(), and WM_gizmomaptype_ensure().
Referenced by ED_spacetype_clip().
Definition at line 1009 of file space_clip.cc.
References ED_region_header().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1004 of file space_clip.cc.
References ED_region_header_init().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1014 of file space_clip.cc.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), NC_SCENE, ND_TOOLSETTINGS, and params.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1158 of file space_clip.cc.
References blender::bke::id::IDRemapper::apply(), SpaceClip::clip, blender::bke::id::IDRemapper::contains_mappings_for_any(), FILTER_ID_MC, FILTER_ID_MSK, ID_REMAP_APPLY_ENSURE_REAL, MaskSpaceInfo::mask, and SpaceClip::mask_info.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 227 of file space_clip.cc.
References RGN_TYPE_WINDOW, SPACE_CLIP, WM_dropboxmap_find(), and WM_event_add_dropbox_handler().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 473 of file space_clip.cc.
References RGN_TYPE_WINDOW, SPACE_CLIP, and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 247 of file space_clip.cc.
References wmNotifier::action, ATTR_FALLTHROUGH, wmNotifier::category, clip_area_sync_frame_from_scene(), clip_scopes_check_gpencil_change(), clip_scopes_tag_refresh(), wmNotifier::data, ED_area_tag_redraw(), NA_EDITED, NA_EVALUATED, NA_REMOVED, NA_SELECTED, NC_GEOM, NC_GPENCIL, NC_MASK, NC_MOVIECLIP, NC_SCENE, NC_SCREEN, NC_SPACE, NC_WM, ND_ANIMPLAY, ND_DATA, ND_DISPLAY, ND_DRAW, ND_FILEREAD, ND_FRAME, ND_FRAME_RANGE, ND_GPENCIL_EDITMODE, ND_LAYOUTSET, ND_SELECT, ND_SPACE_CLIP, ND_UNDO, and params.
Referenced by ED_spacetype_clip().
Definition at line 674 of file space_clip.cc.
References SpaceClip::around, BKE_autotrack_context_sync_user(), MaskSpaceInfo::blend_factor, clip_draw_cache_and_notes(), clip_draw_grease_pencil(), clip_draw_main(), CTX_data_edit_mask(), CTX_data_expect_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_space_clip(), SpaceClip::cursor, MaskSpaceInfo::draw_flag, MaskSpaceInfo::draw_type, ED_clip_view_selection(), ED_image_draw_cursor(), ED_mask_draw_region(), ED_mask_get_size(), ED_region_draw_cb_draw(), ED_space_clip_get_aspect(), ED_space_clip_get_clip(), ED_space_clip_get_size(), ED_space_clip_get_stable_buffer(), ED_space_clip_get_zoom(), SpaceClip::flag, SpaceClip::gizmo_flag, GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_scale_2f(), GPU_matrix_translate_2f(), IMB_freeImBuf(), SpaceClip::mask_info, SpaceClip::mode, movieclip_main_area_set_view2d(), MaskSpaceInfo::overlay_mode, REGION_DRAW_POST_VIEW, REGION_DRAW_PRE_VIEW, SC_LOCK_SELECTION, SC_MODE_MASKEDIT, SC_SHOW_ANNOTATION, SCLIP_GIZMO_HIDE, SpaceClip::stabmat, TH_BACK, TRACKING_2D_STABILIZATION, UI_ThemeClearColor(), UI_view2d_view_restore(), UI_view2d_view_to_region_fl(), SpaceClip::user, V3D_AROUND_CURSOR, WM_gizmomap_draw(), WM_GIZMOMAP_DRAWSTEP_2D, x, SpaceClip::xlockof, SpaceClip::xof, y, SpaceClip::ylockof, and SpaceClip::yof.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 655 of file space_clip.cc.
References wmWindowManager::defaultconf, RGN_TYPE_WINDOW, SPACE_CLIP, SPACE_EMPTY, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 790 of file space_clip.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), NA_EDITED, NC_GPENCIL, ND_GPENCIL_EDITMODE, and params.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 648 of file space_clip.cc.
References ELEM, params, SC_VIEW_CLIP, and SpaceClip::view.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 347 of file space_clip.cc.
References CLIP_OT_add_marker(), CLIP_OT_add_marker_at_click(), CLIP_OT_apply_solution_scale(), CLIP_OT_average_tracks(), CLIP_OT_change_frame(), CLIP_OT_clean_tracks(), CLIP_OT_clear_solution(), CLIP_OT_clear_track_path(), CLIP_OT_copy_tracks(), CLIP_OT_create_plane_track(), CLIP_OT_cursor_set(), CLIP_OT_delete_marker(), CLIP_OT_delete_track(), CLIP_OT_detect_features(), CLIP_OT_disable_markers(), CLIP_OT_dopesheet_select_channel(), CLIP_OT_dopesheet_view_all(), CLIP_OT_frame_jump(), CLIP_OT_graph_center_current_frame(), CLIP_OT_graph_delete_curve(), CLIP_OT_graph_delete_knot(), CLIP_OT_graph_disable_markers(), CLIP_OT_graph_select(), CLIP_OT_graph_select_all_markers(), CLIP_OT_graph_select_box(), CLIP_OT_graph_view_all(), CLIP_OT_hide_tracks(), CLIP_OT_hide_tracks_clear(), CLIP_OT_join_tracks(), CLIP_OT_keyframe_delete(), CLIP_OT_keyframe_insert(), CLIP_OT_lock_selection_toggle(), CLIP_OT_lock_tracks(), CLIP_OT_mode_set(), CLIP_OT_new_image_from_plane_marker(), CLIP_OT_open(), CLIP_OT_paste_tracks(), CLIP_OT_prefetch(), CLIP_OT_rebuild_proxy(), CLIP_OT_refine_markers(), CLIP_OT_reload(), CLIP_OT_select(), CLIP_OT_select_all(), CLIP_OT_select_box(), CLIP_OT_select_circle(), CLIP_OT_select_grouped(), CLIP_OT_select_lasso(), CLIP_OT_set_axis(), CLIP_OT_set_origin(), CLIP_OT_set_plane(), CLIP_OT_set_scale(), CLIP_OT_set_scene_frames(), CLIP_OT_set_solution_scale(), CLIP_OT_set_solver_keyframe(), CLIP_OT_slide_marker(), CLIP_OT_slide_plane_marker(), CLIP_OT_solve_camera(), CLIP_OT_stabilize_2d_add(), CLIP_OT_stabilize_2d_remove(), CLIP_OT_stabilize_2d_rotation_add(), CLIP_OT_stabilize_2d_rotation_remove(), CLIP_OT_stabilize_2d_rotation_select(), CLIP_OT_stabilize_2d_select(), CLIP_OT_track_copy_color(), CLIP_OT_track_markers(), CLIP_OT_tracking_object_new(), CLIP_OT_tracking_object_remove(), CLIP_OT_update_image_from_plane_marker(), CLIP_OT_view_all(), CLIP_OT_view_center_cursor(), CLIP_OT_view_pan(), CLIP_OT_view_selected(), CLIP_OT_view_zoom(), CLIP_OT_view_zoom_in(), CLIP_OT_view_zoom_out(), CLIP_OT_view_zoom_ratio(), and WM_operatortype_append().
Referenced by ED_spacetype_clip().
Definition at line 934 of file space_clip.cc.
References CTX_wm_space_clip(), dopesheet_region_draw(), graph_region_draw(), SC_VIEW_DOPESHEET, SC_VIEW_GRAPH, and SpaceClip::view.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 820 of file space_clip.cc.
References wmWindowManager::defaultconf, ED_time_scrub_event_in_region(), RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, SPACE_CLIP, UI_view2d_region_reinit(), V2D_COMMONVIEW_CUSTOM, WM_event_add_keymap_handler_poll(), WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 946 of file space_clip.cc.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 814 of file space_clip.cc.
References ELEM, params, SC_VIEW_DOPESHEET, SC_VIEW_GRAPH, and SpaceClip::view.
Referenced by ED_spacetype_clip().
Definition at line 1123 of file space_clip.cc.
References BKE_movieclip_update_scopes(), SpaceClip::clip, CTX_wm_space_clip(), ED_region_panels(), SpaceClip::scopes, and SpaceClip::user.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1113 of file space_clip.cc.
References wmWindowManager::defaultconf, ED_region_panels_init(), RGN_TYPE_WINDOW, SPACE_CLIP, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1132 of file space_clip.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ELEM, NA_EDITED, NC_BRUSH, NC_GPENCIL, ND_DATA, ND_GPENCIL_EDITMODE, and params.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1106 of file space_clip.cc.
References ELEM, params, SC_VIEW_CLIP, and SpaceClip::view.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1070 of file space_clip.cc.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), NA_EDITED, NC_GPENCIL, NC_SCENE, NC_SPACE, NC_WM, ND_HISTORY, ND_MODE, ND_SPACE_CLIP, and params.
Referenced by ED_spacetype_clip().
Definition at line 555 of file space_clip.cc.
References BKE_area_find_region_type(), BKE_movieclip_user_set_frame(), CTX_data_scene(), View2D::cur, View2D::flag, init_preview_region(), RGN_TYPE_PREVIEW, SC_VIEW_DOPESHEET, View2D::tot, SpaceClip::user, ARegion::v2d, V2D_IS_INIT, V2D_VIEWSYNC_AREA_VERTICAL, and SpaceClip::view.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 136 of file space_clip.cc.
References clip_scopes_tag_refresh(), SpaceClip::gpencil_src, and SC_GPENCIL_SRC_TRACK.
Referenced by clip_listener().
|
static |
Definition at line 118 of file space_clip.cc.
References LISTBASE_FOREACH, SpaceClip::mode, MovieClipScopes::ok, RGN_FLAG_HIDDEN, RGN_TYPE_UI, SC_MODE_TRACKING, and SpaceClip::scopes.
Referenced by clip_listener(), and clip_scopes_check_gpencil_change().
|
static |
Definition at line 1188 of file space_clip.cc.
References MovieClipScopes::ok, SpaceClip::scopes, MovieClipScopes::track_preview, and MovieClipScopes::track_search.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1197 of file space_clip.cc.
References BLO_write_struct.
Referenced by ED_spacetype_clip().
Definition at line 1059 of file space_clip.cc.
References ED_region_panels().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1049 of file space_clip.cc.
References wmWindowManager::defaultconf, ED_region_panels_init(), RGN_TYPE_WINDOW, SPACE_CLIP, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1042 of file space_clip.cc.
References ELEM, params, SC_VIEW_CLIP, and SpaceClip::view.
Referenced by ED_spacetype_clip().
Definition at line 890 of file space_clip.cc.
References ANIM_draw_cfra(), BKE_tracking_dopesheet_update(), clip_draw_dopesheet_main(), CTX_data_scene(), CTX_wm_space_clip(), DRAWCFRA_UNIT_SECONDS, ED_space_clip_get_clip(), ED_time_scrub_draw(), ED_time_scrub_draw_current_frame(), SpaceClip::flag, HEADERY, SC_SHOW_SECONDS, TH_BACK, UI_SCALE_FAC, UI_ThemeClearColor(), UI_view2d_draw_lines_x__discrete_frames_or_seconds(), UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), and UI_view2d_view_restore().
Referenced by clip_preview_region_draw().
| void ED_spacetype_clip | ( | ) |
Definition at line 1208 of file space_clip.cc.
References BKE_spacetype_register(), BLI_addhead(), clip_channels_region_draw(), clip_channels_region_init(), clip_channels_region_listener(), clip_channels_region_poll(), clip_context(), clip_create(), clip_dropboxes(), clip_duplicate(), clip_foreach_id(), clip_free(), clip_gizmos(), clip_header_region_draw(), clip_header_region_init(), clip_header_region_listener(), clip_id_remap(), clip_init(), clip_keymap(), clip_listener(), clip_main_region_draw(), clip_main_region_init(), clip_main_region_listener(), clip_main_region_poll(), clip_operatortypes(), clip_preview_region_draw(), clip_preview_region_init(), clip_preview_region_listener(), clip_preview_region_poll(), clip_properties_region_draw(), clip_properties_region_init(), clip_properties_region_listener(), clip_properties_region_poll(), clip_props_region_listener(), clip_refresh(), clip_space_blend_read_data(), clip_space_blend_write(), clip_tools_region_draw(), clip_tools_region_init(), clip_tools_region_poll(), ARegionType::draw, ED_area_type_hud(), ED_clip_buttons_register(), ED_KEYMAP_FRAMES, ED_KEYMAP_GIZMO, ED_KEYMAP_GPENCIL, ED_KEYMAP_HEADER, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, HEADERY, ARegionType::init, ARegionType::keymapflag, ARegionType::listener, ARegionType::poll, ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, RGN_TYPE_CHANNELS, RGN_TYPE_HEADER, RGN_TYPE_PREVIEW, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, SPACE_CLIP, STRNCPY, UI_COMPACT_PANEL_WIDTH, and UI_SIDEBAR_PANEL_WIDTH.
Referenced by ED_spacetypes_init().
Definition at line 841 of file space_clip.cc.
References ANIM_draw_cfra(), BLI_rcti_init(), clip_draw_graph(), CTX_data_scene(), CTX_wm_space_clip(), DRAWCFRA_UNIT_SECONDS, ED_clip_graph_center_current_frame(), ED_time_scrub_clamp_scroller_mask(), ED_time_scrub_draw(), ED_time_scrub_draw_current_frame(), SpaceClip::flag, HEADERY, View2D::mask, SC_LOCK_TIMECURSOR, SC_SHOW_SECONDS, TH_BACK, TH_TEXT, UI_SCALE_FAC, UI_ThemeClearColor(), UI_TIME_SCRUB_MARGIN_Y, UI_view2d_draw_scale_y__values(), UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), and UI_view2d_view_restore().
Referenced by clip_preview_region_draw().
|
static |
Definition at line 62 of file space_clip.cc.
References float, FLT_MAX, MAXFRAMEF, SC_VIEW_DOPESHEET, V2D_ALIGN_NO_POS_Y, V2D_KEEPOFS_Y, V2D_LOCKZOOM_Y, V2D_SCROLL_BOTTOM, V2D_SCROLL_HORIZONTAL_HANDLES, V2D_SCROLL_RIGHT, V2D_SCROLL_VERTICAL_HANDLES, V2D_VIEWSYNC_AREA_VERTICAL, and SpaceClip::view.
Referenced by clip_refresh().
Definition at line 602 of file space_clip.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), CTX_wm_space_clip(), ED_space_clip_get_aspect(), ED_space_clip_get_size(), float, w(), SpaceClip::xof, SpaceClip::yof, and SpaceClip::zoom.
Referenced by clip_main_region_draw().
| const char * clip_context_dir = {"edit_movieclip", "edit_mask", nullptr} |
Definition at line 490 of file space_clip.cc.
Referenced by clip_context().