Blender
V3.3
|
#include <stdio.h>
#include <string.h>
#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_math.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_lib_id.h"
#include "BKE_lib_remap.h"
#include "BKE_movieclip.h"
#include "BKE_screen.h"
#include "BKE_tracking.h"
#include "IMB_imbuf_types.h"
#include "ED_anim_api.h"
#include "ED_clip.h"
#include "ED_mask.h"
#include "ED_screen.h"
#include "ED_space_api.h"
#include "ED_time_scrub_ui.h"
#include "ED_uvedit.h"
#include "IMB_imbuf.h"
#include "GPU_matrix.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "RNA_access.h"
#include "clip_intern.h"
Go to the source code of this file.
Variables | |
const char * | clip_context_dir [] = {"edit_movieclip", "edit_mask", NULL} |
Definition at line 216 of file space_clip.c.
References blender::compositor::area(), BKE_movieclip_user_set_frame(), RenderData::cfra, Scene::r, scene, and SpaceClip::user.
Referenced by clip_listener().
Definition at line 1079 of file space_clip.c.
References BKE_tracking_dopesheet_update(), C, clip_draw_dopesheet_channels(), CTX_wm_space_clip(), ED_space_clip_get_clip(), TH_BACK, MovieClip::tracking, UI_ThemeClearColor(), UI_view2d_view_ortho(), UI_view2d_view_restore(), and ARegion::v2d.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1066 of file space_clip.c.
References wmWindowManager::defaultconf, ARegion::handlers, View2D::scroll, SPACE_CLIP, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_LIST, V2D_SCROLL_BOTTOM, ARegion::winx, ARegion::winy, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1101 of file space_clip.c.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 563 of file space_clip.c.
References C, 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, SpaceClip::mask_info, and result.
Referenced by ED_spacetype_clip().
Definition at line 224 of file space_clip.c.
References ARegion::alignment, blender::compositor::area(), BLI_addtail(), DNA_struct_default_alloc, View2D::flag, init_preview_region(), MEM_callocN, SpaceClip::regionbase, ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_TYPE_CHANNELS, RGN_TYPE_HEADER, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, scene, View2D::scroll, USER_HEADER_BOTTOM, ARegion::v2d, V2D_SCROLL_BOTTOM, and V2D_VIEWSYNC_AREA_VERTICAL.
Referenced by ED_spacetype_clip().
Definition at line 603 of file space_clip.c.
References BLI_split_dirfile(), file, FILE_MAX, wmDrag::path, wmDropBox::ptr, RNA_collection_add(), RNA_collection_clear(), and RNA_string_set().
Referenced by clip_dropboxes().
|
static |
Definition at line 591 of file space_clip.c.
References ELEM, wmDrag::icon, wmDrag::type, and WM_DRAG_PATH.
Referenced by clip_dropboxes().
Definition at line 618 of file space_clip.c.
References clip_drop_copy(), clip_drop_poll(), NULL, SPACE_CLIP, WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacetype_clip().
Definition at line 302 of file space_clip.c.
References MEM_dupallocN, NULL, MovieClipScopes::ok, SpaceClip::scopes, MovieClipScopes::track_preview, and MovieClipScopes::track_search.
Referenced by ED_spacetype_clip().
Definition at line 278 of file space_clip.c.
References SpaceClip::clip, IMB_freeImBuf(), NULL, SpaceClip::scopes, MovieClipScopes::track_preview, and MovieClipScopes::track_search.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 723 of file space_clip.c.
References VIEW2D_GGT_navigate_impl().
Referenced by clip_gizmos().
Definition at line 728 of file space_clip.c.
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 1113 of file space_clip.c.
References C, and ED_region_header().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1108 of file space_clip.c.
References ED_region_header_init().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1118 of file space_clip.c.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), NC_SCENE, ND_TOOLSETTINGS, and params.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1234 of file space_clip.c.
References BKE_id_remapper_apply(), BKE_id_remapper_has_mapping_for(), SpaceClip::clip, 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 294 of file space_clip.c.
References blender::compositor::area(), SPACE_CLIP, WM_dropboxmap_find(), and WM_event_add_dropbox_handler().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 543 of file space_clip.c.
References SPACE_CLIP, and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 314 of file space_clip.c.
References wmNotifier::action, blender::compositor::area(), 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, params, and scene.
Referenced by ED_spacetype_clip().
Definition at line 805 of file space_clip.c.
References blender::compositor::area(), SpaceClip::around, BKE_autotrack_context_sync_user(), MaskSpaceInfo::blend_factor, C, 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, MovieTrackingStabilization::flag, ARegion::gizmo_map, GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_scale_2f(), GPU_matrix_translate_2f(), height, IMB_freeImBuf(), mask(), SpaceClip::mask_info, SpaceClip::mode, movieclip_main_area_set_view2d(), NULL, MaskSpaceInfo::overlay_mode, REGION_DRAW_POST_VIEW, REGION_DRAW_PRE_VIEW, SC_LOCK_SELECTION, SC_MODE_MASKEDIT, SC_SHOW_ANNOTATION, MovieTracking::stabilization, SpaceClip::stabmat, TH_BACK, MovieClip::tracking, TRACKING_2D_STABILIZATION, MovieClip::tracking_context, UI_ThemeClearColor(), UI_view2d_view_restore(), UI_view2d_view_to_region_fl(), SpaceClip::user, ARegion::v2d, V3D_AROUND_CURSOR, width, 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 786 of file space_clip.c.
References wmWindowManager::defaultconf, ARegion::handlers, SPACE_CLIP, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 919 of file space_clip.c.
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().
Definition at line 414 of file space_clip.c.
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_center_principal(), 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 1048 of file space_clip.c.
References C, 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 939 of file space_clip.c.
References wmWindowManager::defaultconf, ED_time_scrub_event_in_region(), ARegion::handlers, RGN_TYPE_PREVIEW, SPACE_CLIP, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_CUSTOM, ARegion::winx, ARegion::winy, 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 1060 of file space_clip.c.
Referenced by ED_spacetype_clip().
Definition at line 1203 of file space_clip.c.
References BKE_movieclip_update_scopes(), C, SpaceClip::clip, CTX_wm_space_clip(), ED_region_panels(), SpaceClip::scopes, and SpaceClip::user.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1193 of file space_clip.c.
References wmWindowManager::defaultconf, ED_region_panels_init(), ARegion::handlers, SPACE_CLIP, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1212 of file space_clip.c.
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 1160 of file space_clip.c.
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 663 of file space_clip.c.
References blender::compositor::area(), BKE_area_find_region_type(), BKE_movieclip_user_set_frame(), C, RenderData::cfra, clip_set_region_visible(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_window(), ED_area_init(), ED_area_tag_redraw(), ED_clip_has_channels_region(), ED_clip_has_preview_region(), ED_clip_has_properties_region(), Scene::r, reinit_preview_region(), RGN_ALIGN_LEFT, RGN_ALIGN_NONE, RGN_ALIGN_RIGHT, RGN_TYPE_TOOLS, RGN_TYPE_WINDOW, SC_VIEW_CLIP, SC_VIEW_DOPESHEET, SC_VIEW_GRAPH, scene, SpaceClip::user, and SpaceClip::view.
Referenced by ED_spacetype_clip().
Definition at line 207 of file space_clip.c.
References blender::compositor::area(), clip_scopes_tag_refresh(), SpaceClip::gpencil_src, if(), and SC_GPENCIL_SRC_TRACK.
Referenced by clip_listener().
Definition at line 188 of file space_clip.c.
References blender::compositor::area(), if(), 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 625 of file space_clip.c.
References ARegion::alignment, C, View2D::cur, ARegion::flag, View2D::flag, ARegion::handlers, RGN_ALIGN_NONE, RGN_FLAG_HIDDEN, View2D::tot, ARegion::v2d, V2D_IS_INIT, and WM_event_remove_handlers().
Referenced by clip_refresh().
Definition at line 1153 of file space_clip.c.
References C, and ED_region_panels().
Referenced by ED_spacetype_clip().
|
static |
Definition at line 1143 of file space_clip.c.
References wmWindowManager::defaultconf, ED_region_panels_init(), ARegion::handlers, SPACE_CLIP, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by ED_spacetype_clip().
Definition at line 1006 of file space_clip.c.
References ANIM_draw_cfra(), BKE_tracking_dopesheet_update(), C, 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, NULL, SC_SHOW_SECONDS, scene, TH_BACK, MovieClip::tracking, UI_ThemeClearColor(), UI_view2d_draw_lines_x__discrete_frames_or_seconds(), UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), UI_view2d_view_restore(), and ARegion::v2d.
Referenced by clip_preview_region_draw().
Definition at line 159 of file space_clip.c.
References ARegion::alignment, blender::compositor::area(), BKE_area_find_region_type(), BLI_insertlinkbefore(), View2D::flag, MEM_callocN, NULL, ARegion::regiontype, RGN_ALIGN_LEFT, RGN_TYPE_CHANNELS, RGN_TYPE_PREVIEW, View2D::scroll, ARegion::v2d, V2D_SCROLL_BOTTOM, and V2D_VIEWSYNC_AREA_VERTICAL.
Referenced by clip_refresh().
Definition at line 134 of file space_clip.c.
References blender::compositor::area(), BKE_area_find_region_type(), BLI_insertlinkbefore(), C, CTX_data_scene(), CTX_wm_space_clip(), init_preview_region(), MEM_callocN, NULL, RGN_TYPE_PREVIEW, and RGN_TYPE_WINDOW.
Referenced by clip_refresh().
Definition at line 1248 of file space_clip.c.
References BKE_spacetype_register(), BKE_ST_MAXNAME, BLI_addhead(), clip_channels_region_draw(), clip_channels_region_init(), clip_channels_region_listener(), clip_context(), clip_create(), clip_dropboxes(), clip_duplicate(), 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_operatortypes(), clip_preview_region_draw(), clip_preview_region_init(), clip_preview_region_listener(), clip_properties_region_draw(), clip_properties_region_init(), clip_properties_region_listener(), clip_props_region_listener(), clip_refresh(), clip_tools_region_draw(), clip_tools_region_init(), 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, MEM_callocN, 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, usdtokens::st(), UI_COMPACT_PANEL_WIDTH, and UI_SIDEBAR_PANEL_WIDTH.
Referenced by ED_spacetypes_init().
Definition at line 960 of file space_clip.c.
References ANIM_draw_cfra(), BLI_rcti_init(), C, clip_draw_graph(), CTX_data_scene(), CTX_wm_space_clip(), DRAWCFRA_UNIT_SECONDS, ED_clip_graph_center_current_frame(), ED_time_scrub_draw(), ED_time_scrub_draw_current_frame(), SpaceClip::flag, NULL, SC_LOCK_TIMECURSOR, SC_SHOW_SECONDS, scene, TH_BACK, TH_TEXT, UI_DPI_FAC, UI_ThemeClearColor(), UI_TIME_SCRUB_MARGIN_Y, UI_view2d_draw_scale_y__values(), UI_view2d_scrollers_draw(), UI_view2d_view_ortho(), UI_view2d_view_restore(), ARegion::v2d, and ARegion::winy.
Referenced by clip_preview_region_draw().
|
static |
Definition at line 56 of file space_clip.c.
References View2D::align, ARegion::alignment, blender::compositor::area(), View2D::cur, RenderData::efra, ARegion::flag, View2D::flag, float(), View2D::keepofs, View2D::keeptot, View2D::keepzoom, View2D::max, MAXFRAMEF, View2D::maxzoom, View2D::min, View2D::minzoom, Scene::r, ARegion::regiontype, RGN_ALIGN_TOP, RGN_FLAG_HIDDEN, RGN_TYPE_PREVIEW, SC_VIEW_DOPESHEET, scene, View2D::scroll, View2D::tot, ARegion::v2d, 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, SpaceClip::view, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by clip_create(), ED_clip_has_preview_region(), and reinit_preview_region().
Definition at line 739 of file space_clip.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), C, CTX_wm_space_clip(), View2D::cur, ED_space_clip_get_aspect(), ED_space_clip_get_size(), float(), height, View2D::mask, View2D::tot, ARegion::v2d, w(), width, ARegion::winrct, rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, SpaceClip::xof, y1, rcti::ymax, rctf::ymax, rcti::ymin, rctf::ymin, SpaceClip::yof, and SpaceClip::zoom.
Referenced by clip_main_region_draw().
Definition at line 116 of file space_clip.c.
References blender::compositor::area(), C, CTX_data_scene(), CTX_wm_area(), CTX_wm_space_clip(), View2D::flag, init_preview_region(), SC_VIEW_DOPESHEET, scene, ARegion::v2d, V2D_VIEWSYNC_AREA_VERTICAL, and SpaceClip::view.
Referenced by clip_refresh().
const char * clip_context_dir = {"edit_movieclip", "edit_mask", NULL} |
Definition at line 561 of file space_clip.c.
Referenced by bpy_context_members(), and clip_context().