Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | ClipViewLockState |
Typedefs | |
typedef struct ClipViewLockState | ClipViewLockState |
typedef struct ClipViewLockState ClipViewLockState |
Definition at line 465 of file tracking_select.c.
References C, and select_poll().
void ED_clip_mouse_pos | ( | struct SpaceClip * | sc, |
struct ARegion * | region, | ||
const int | mval[2], | ||
float | co[2] | ||
) |
Takes event->mval
.
Definition at line 541 of file clip_editor.c.
References ED_clip_point_stable_pos().
Referenced by add_marker_invoke(), clip_set_2d_cursor_invoke(), ED_mask_mouse_pos(), ED_space_clip_color_sample(), ED_space_clip_get_position(), sclip_zoom_set_factor_exec(), select_invoke(), slide_marker_customdata(), slide_plane_marker_customdata(), tracking_plane_marker_check_slide(), view_zoom_in_invoke(), view_zoom_init(), and view_zoom_out_invoke().
void ED_clip_point_stable_pos | ( | struct SpaceClip * | sc, |
struct ARegion * | region, | ||
float | x, | ||
float | y, | ||
float * | xr, | ||
float * | yr | ||
) |
Definition at line 483 of file clip_editor.c.
References BKE_tracking_distort_v2(), MovieTracking::camera, ED_space_clip_get_clip(), ED_space_clip_get_size(), ED_space_clip_get_zoom(), height, invert_m4_m4(), MCLIP_PROXY_RENDER_UNDISTORT, mul_v3_m4v3(), MovieTrackingCamera::pixel_aspect, pos, MovieClipUser::render_flag, SpaceClip::stabmat, sx, sy, MovieClip::tracking, UI_view2d_view_to_region(), SpaceClip::user, ARegion::v2d, width, x, and y.
Referenced by add_marker_at_click_modal(), box_select_exec(), circle_select_exec(), ED_clip_mouse_pos(), and ED_mask_point_pos().
void ED_clip_point_stable_pos__reverse | ( | struct SpaceClip * | sc, |
struct ARegion * | region, | ||
const float | co[2], | ||
float | r_co[2] | ||
) |
the reverse of ED_clip_point_stable_pos(), gets the marker region coords. better name here? view_to_track / track_to_view or so?
Definition at line 517 of file clip_editor.c.
References ED_clip_point_undistorted_pos(), ED_space_clip_get_size(), ED_space_clip_get_zoom(), height, mul_v3_m4v3(), pos, SpaceClip::stabmat, sx, sy, UI_view2d_view_to_region(), ARegion::v2d, and width.
Referenced by do_lasso_select_marker(), ED_mask_point_pos__reverse(), and projectIntViewEx().
Definition at line 462 of file clip_editor.c.
References BKE_movieclip_get_size(), BKE_tracking_undistort_v2(), MovieTracking::camera, SpaceClip::clip, copy_v2_v2(), ED_space_clip_get_clip(), height, MCLIP_PROXY_RENDER_UNDISTORT, MovieTrackingCamera::pixel_aspect, MovieClipUser::render_flag, MovieClip::tracking, SpaceClip::user, and width.
Referenced by draw_marker_areas(), draw_marker_outline(), draw_tracking_tracks(), ED_clip_point_stable_pos__reverse(), marker_to_path_point(), mask_point_undistort_pos(), and selected_tracking_boundbox().
Definition at line 374 of file clip_editor.c.
References BKE_tracking_get_active_plane_tracks(), BKE_tracking_get_active_tracks(), BKE_tracking_marker_get(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ListBase::first, MovieTrackingTrack::flag, MovieTrackingPlaneTrack::flag, MARKER_VISIBLE, MovieTrackingTrack::next, MovieTrackingPlaneTrack::next, NULL, MovieTrackingTrack::pat_flag, PLANE_TRACK_HIDDEN, PLANE_TRACK_VIEW_SELECTED, MovieTrackingTrack::search_flag, SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SELECT, TRACK_HIDDEN, TRACK_VIEW_SELECTED, and MovieClip::tracking.
Referenced by box_select_exec(), circle_select_exec(), clip_lasso_select_exec(), and select_all_exec().
Referenced by ED_update_for_newframe().
void ED_clip_view_lock_state_restore_no_jump | ( | const struct bContext * | C, |
const ClipViewLockState * | state | ||
) |
void ED_clip_view_lock_state_store | ( | const struct bContext * | C, |
ClipViewLockState * | state | ||
) |
Referenced by add_marker_exec(), ED_mask_view_lock_state_store(), lock_selection_toggle_exec(), select_all_exec(), and select_exec().
Referenced by clip_main_region_draw(), and view_selected_exec().
Definition at line 1869 of file clip_ops.c.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), RNA_struct_idprops_unset(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
Definition at line 555 of file clip_editor.c.
References SpaceClip::mode, and SC_MODE_MASKEDIT.
Referenced by ED_space_clip_maskedit_poll(), initTransInfo(), and viewRedrawForce().
Definition at line 546 of file clip_editor.c.
References SpaceClip::mode, and SC_MODE_TRACKING.
Referenced by ED_space_clip_tracking_poll(), initTransInfo(), recalcData_tracking(), and viewRedrawForce().
bool ED_space_clip_color_sample | ( | struct SpaceClip * | sc, |
struct ARegion * | region, | ||
const int | mval[2], | ||
float | r_col[3] | ||
) |
Returns color in linear space, matching ED_space_image_color_sample().
Definition at line 295 of file clip_editor.c.
References ImBuf::channels, CLAMP, copy_v3_v3(), ED_clip_mouse_pos(), ED_space_clip_get_buffer(), IMB_colormanagement_colorspace_to_scene_linear_v3(), IMB_freeImBuf(), ImBuf::rect, ImBuf::rect_colorspace, ImBuf::rect_float, ret, rgb_uchar_to_float(), x, ImBuf::x, y, and ImBuf::y.
Referenced by eyedropper_color_sample_fl().
Definition at line 176 of file clip_editor.c.
References BKE_movieclip_get_aspect(), and ED_space_clip_get_clip().
Referenced by clip_main_region_draw(), clip_view_calculate_view_selection(), clip_view_offset_for_center_to_point(), ED_mask_get_aspect(), ED_mask_pixelspace_factor(), ED_space_clip_get_aspect_dimension_aware(), movieclip_main_area_set_view2d(), sclip_zoom_set(), setTransformViewAspect(), and view_all_exec().
Definition at line 197 of file clip_editor.c.
References BKE_movieclip_get_size(), SpaceClip::clip, ED_space_clip_get_aspect(), float(), SpaceClip::user, and w().
Referenced by setTransformViewAspect().
Definition at line 239 of file clip_editor.c.
References BKE_movieclip_get_postprocessed_ibuf(), SpaceClip::clip, IMB_freeImBuf(), NULL, SpaceClip::postproc_flag, ImBuf::rect, ImBuf::rect_float, and SpaceClip::user.
Referenced by clip_draw_main(), ED_space_clip_color_sample(), ED_space_clip_get_position(), metadata_panel_context_draw(), and sample_plane_marker_image_for_operator().
Definition at line 570 of file clip_editor.c.
References SpaceClip::clip.
Referenced by add_marker(), add_marker_at_click_modal(), add_marker_exec(), annotation_session_initdata(), apply_mouse_slide(), apply_solution_scale_invoke(), apply_solution_scale_poll(), average_tracks_exec(), average_tracks_invoke(), box_select_exec(), box_select_graph_exec(), circle_select_exec(), clean_tracks_exec(), clean_tracks_invoke(), clear_solution_exec(), clear_track_path_exec(), clip_channels_region_draw(), clip_draw_cache_and_notes(), clip_draw_dopesheet_channels(), clip_draw_dopesheet_main(), clip_draw_graph(), clip_draw_grease_pencil(), clip_draw_main(), clip_graph_tracking_iterate(), clip_graph_tracking_values_iterate(), clip_graph_tracking_values_iterate_track_reprojection_error_values(), clip_graph_tracking_values_iterate_track_speed_values(), clip_main_region_draw(), clip_rebuild_proxy_exec(), clip_start_prefetch_job(), copy_tracks_exec(), count_selected_bundles(), create_plane_track_tracks_exec(), createTransTrackingCurvesData(), createTransTrackingData(), createTransTrackingTracksData(), delete_curve_exec(), delete_knot_exec(), delete_marker_exec(), delete_track_exec(), detect_features_exec(), disable_markers_exec(), do_lasso_select_marker(), do_set_scale(), dopesheet_region_draw(), dopesheet_select_channel_exec(), dopesheet_view_all_exec(), draw_frame_curves(), draw_movieclip_buffer(), draw_movieclip_notes(), draw_stabilization_border(), draw_tracks_motion_and_error_curves(), ED_annotation_data_get_pointers_direct(), ED_clip_point_stable_pos(), ED_clip_point_undistorted_pos(), ED_clip_select_all(), ED_space_clip_get_aspect(), ED_space_clip_get_clip_frame_number(), frame_jump_exec(), get_orientation_object(), graph_disable_markers_exec(), graph_select_all_markers_exec(), hide_tracks_clear_exec(), hide_tracks_exec(), join_tracks_exec(), keyframe_set_flag(), lock_tracks_exec(), mask_parent_set_exec(), mouse_select_curve(), mouse_select_knot(), new_image_from_plane_marker_exec(), new_image_from_plane_marker_poll(), open_invoke(), paste_tracks_exec(), prefetch_check_early_out(), prefetch_get_final_frame(), projectIntViewEx(), recalcData_tracking(), refine_marker_exec(), sample_plane_marker_image_for_operator(), screen_ctx_selected_movieclip_tracks(), select_all_exec(), select_exec(), select_grouped_exec(), selected_boundbox(), selected_tracking_boundbox(), set_axis_exec(), set_center_principal_exec(), set_orientation_poll(), set_origin_exec(), set_plane_exec(), set_scale_invoke(), set_solution_scale_invoke(), set_solution_scale_poll(), set_solver_keyframe_exec(), slide_marker_invoke(), slide_plane_marker_invoke(), slide_plane_marker_modal(), solve_camera_initjob(), solve_camera_invoke(), special_aftertrans_update__movieclip(), stabilize_2d_add_exec(), stabilize_2d_poll(), stabilize_2d_remove_exec(), stabilize_2d_rotation_add_exec(), stabilize_2d_rotation_remove_exec(), stabilize_2d_rotation_select_exec(), stabilize_2d_select_exec(), track_copy_color_exec(), track_markers(), track_markers_initjob(), tracking_has_selection(), tracking_marker_check_slide(), tracking_object_new_exec(), tracking_object_remove_exec(), tracking_plane_marker_check_slide(), update_image_from_plane_marker_exec(), update_image_from_plane_marker_poll(), and viewRedrawForce().
int ED_space_clip_get_clip_frame_number | ( | struct SpaceClip * | sc | ) |
Return current frame number in clip space.
Definition at line 231 of file clip_editor.c.
References BKE_movieclip_remap_scene_to_clip_frame(), ED_space_clip_get_clip(), MovieClipUser::framenr, and SpaceClip::user.
Referenced by add_marker(), annotation_session_initdata(), apply_mouse_slide(), box_select_exec(), circle_select_exec(), clear_track_path_exec(), clip_draw_grease_pencil(), create_plane_track_tracks_exec(), create_slide_marker_data(), createTransTrackingTracksData(), delete_marker_exec(), detect_features_exec(), disable_markers_exec(), do_lasso_select_marker(), draw_marker_texts(), draw_tracking_tracks(), ED_clip_select_all(), find_nearest_plane_track(), find_nearest_track(), frame_jump_exec(), join_tracks_exec(), keyframe_set_flag(), mask_parent_set_exec(), recalcData_tracking(), refine_marker_exec(), sample_plane_marker_image_for_operator(), select_grouped_exec(), selected_tracking_boundbox(), slide_marker_customdata(), slide_plane_marker_customdata(), slide_plane_marker_update_homographies(), special_aftertrans_update__movieclip(), track_markers(), track_markers_initjob(), track_mouse_area(), track_to_path_segment(), tracking_has_selection(), tracking_marker_check_slide(), and tracking_plane_marker_check_slide().
Definition at line 631 of file clip_editor.c.
References MaskSpaceInfo::mask, and SpaceClip::mask_info.
Referenced by special_aftertrans_update__mask().
bool ED_space_clip_get_position | ( | struct SpaceClip * | sc, |
struct ARegion * | region, | ||
int | mval[2], | ||
float | fpos[2] | ||
) |
Definition at line 278 of file clip_editor.c.
References ED_clip_mouse_pos(), ED_space_clip_get_buffer(), and IMB_freeImBuf().
Referenced by eyedropper_cryptomatte_sample_fl().
Definition at line 146 of file clip_editor.c.
References BKE_movieclip_get_size(), SpaceClip::clip, height, IMG_SIZE_FALLBACK, SpaceClip::user, and width.
Referenced by add_marker(), circle_select_exec(), clip_draw_main(), clip_main_region_draw(), clip_view_calculate_view_selection(), clip_view_offset_for_center_to_point(), ED_clip_point_stable_pos(), ED_clip_point_stable_pos__reverse(), ED_mask_get_size(), ED_space_clip_get_size_fl(), ED_space_clip_get_zoom(), movieclip_main_area_set_view2d(), sclip_zoom_set(), selected_boundbox(), selected_tracking_boundbox(), slide_marker_customdata(), slide_plane_marker_customdata(), track_mouse_area(), tracking_marker_check_slide(), tracking_plane_marker_check_slide(), and view_all_exec().
Definition at line 156 of file clip_editor.c.
References ED_space_clip_get_size(), and size().
struct ImBuf* ED_space_clip_get_stable_buffer | ( | struct SpaceClip * | sc, |
float | loc[2], | ||
float * | scale, | ||
float * | angle | ||
) |
Definition at line 258 of file clip_editor.c.
References angle(), BKE_movieclip_get_stable_ibuf(), SpaceClip::clip, IMB_freeImBuf(), NULL, SpaceClip::postproc_flag, ImBuf::rect, ImBuf::rect_float, and SpaceClip::user.
Referenced by clip_draw_main(), and clip_main_region_draw().
void ED_space_clip_get_zoom | ( | struct SpaceClip * | sc, |
struct ARegion * | region, | ||
float * | zoomx, | ||
float * | zoomy | ||
) |
Definition at line 164 of file clip_editor.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), View2D::cur, ED_space_clip_get_size(), float(), height, ARegion::v2d, width, and ARegion::winrct.
Referenced by circle_select_exec(), clip_draw_main(), clip_main_region_draw(), ED_clip_point_stable_pos(), ED_clip_point_stable_pos__reverse(), and ED_mask_zoom().
Definition at line 115 of file clip_editor.c.
References C, CTX_data_edit_movieclip(), CTX_wm_space_clip(), ED_space_clip_maskedit_poll(), MaskSpaceInfo::mask, SpaceClip::mask_info, and NULL.
Referenced by ED_maskedit_mask_poll(), ED_space_clip_maskedit_mask_visible_splines_poll(), and MASK_OT_parent_set().
Definition at line 130 of file clip_editor.c.
References C, CTX_wm_space_clip(), MaskSpaceInfo::draw_flag, ED_space_clip_maskedit_mask_poll(), MASK_DRAWFLAG_SPLINE, and SpaceClip::mask_info.
Referenced by ED_maskedit_mask_visible_splines_poll().
Definition at line 94 of file clip_editor.c.
References C, SpaceClip::clip, CTX_wm_space_clip(), and ED_space_clip_check_show_maskedit().
Referenced by CLIP_OT_view_center_cursor(), ED_maskedit_poll(), ED_space_clip_maskedit_mask_poll(), and ED_space_clip_maskedit_visible_splines_poll().
Definition at line 105 of file clip_editor.c.
References C, CTX_wm_space_clip(), MaskSpaceInfo::draw_flag, ED_space_clip_maskedit_poll(), MASK_DRAWFLAG_SPLINE, and SpaceClip::mask_info.
Referenced by ED_maskedit_visible_splines_poll().
Definition at line 61 of file clip_editor.c.
References C, SpaceClip::clip, and CTX_wm_space_clip().
Referenced by CLIP_OT_cursor_set(), CLIP_OT_lock_selection_toggle(), CLIP_OT_mode_set(), CLIP_OT_rebuild_proxy(), and metadata_panel_context_poll().
void ED_space_clip_set_clip | ( | struct bContext * | C, |
struct bScreen * | screen, | ||
struct SpaceClip * | sc, | ||
struct MovieClip * | clip | ||
) |
Definition at line 575 of file clip_editor.c.
References blender::compositor::area(), bScreen::areabase, BKE_movieclip_clear_cache(), C, SpaceClip::clip, CTX_wm_screen(), ELEM, ListBase::first, id_us_ensure_real(), NA_SELECTED, NC_MOVIECLIP, SpaceLink::next, NULL, SC_VIEW_CLIP, SPACE_CLIP, SpaceLink::spacetype, SpaceClip::view, and WM_event_add_notifier().
Referenced by open_exec().
Definition at line 636 of file clip_editor.c.
References C, id_us_ensure_real(), mask(), MaskSpaceInfo::mask, SpaceClip::mask_info, NA_SELECTED, NC_MASK, and WM_event_add_notifier().
Referenced by ED_mask_new().
Definition at line 83 of file clip_editor.c.
References C, SpaceClip::clip, CTX_wm_space_clip(), and ED_space_clip_check_show_trackedit().
Referenced by CLIP_OT_add_marker(), CLIP_OT_add_marker_at_click(), CLIP_OT_average_tracks(), CLIP_OT_clean_tracks(), CLIP_OT_clear_solution(), CLIP_OT_clear_track_path(), CLIP_OT_copy_tracks(), CLIP_OT_create_plane_track(), CLIP_OT_delete_marker(), CLIP_OT_delete_track(), CLIP_OT_detect_features(), CLIP_OT_disable_markers(), CLIP_OT_hide_tracks(), CLIP_OT_hide_tracks_clear(), CLIP_OT_join_tracks(), CLIP_OT_keyframe_delete(), CLIP_OT_keyframe_insert(), CLIP_OT_lock_tracks(), CLIP_OT_refine_markers(), CLIP_OT_select_all(), CLIP_OT_select_box(), CLIP_OT_select_circle(), CLIP_OT_select_grouped(), CLIP_OT_select_lasso(), CLIP_OT_set_center_principal(), CLIP_OT_set_solver_keyframe(), CLIP_OT_slide_marker(), CLIP_OT_slide_plane_marker(), CLIP_OT_solve_camera(), CLIP_OT_track_copy_color(), CLIP_OT_track_markers(), CLIP_OT_tracking_object_new(), CLIP_OT_tracking_object_remove(), ED_space_clip_graph_poll(), new_image_from_plane_marker_poll(), paste_tracks_poll(), space_clip_dopesheet_poll(), stabilize_2d_poll(), and update_image_from_plane_marker_poll().
Definition at line 72 of file clip_editor.c.
References C, CTX_wm_space_clip(), SC_VIEW_CLIP, and SpaceClip::view.
Referenced by CLIP_OT_prefetch(), CLIP_OT_set_scene_frames(), CLIP_OT_view_all(), CLIP_OT_view_pan(), CLIP_OT_view_selected(), CLIP_OT_view_zoom(), CLIP_OT_view_zoom_in(), CLIP_OT_view_zoom_out(), and CLIP_OT_view_zoom_ratio().