|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | ClipViewLockState |
| bool ED_clip_can_select | ( | bContext * | C | ) |
Definition at line 717 of file tracking_select.cc.
References C, and select_poll().
| void ED_clip_mouse_pos | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| const int | mval[2], | ||
| float | r_co[2] ) |
Takes event->mval.
Definition at line 551 of file clip_editor.cc.
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 | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| float | x, | ||
| float | y, | ||
| float * | xr, | ||
| float * | yr ) |
Definition at line 491 of file clip_editor.cc.
References BKE_tracking_distort_v2(), MovieTracking::camera, ED_space_clip_get_clip(), ED_space_clip_get_size(), ED_space_clip_get_zoom(), invert_m4_m4(), MCLIP_PROXY_RENDER_UNDISTORT, mul_v3_m4v3(), MovieTrackingCamera::pixel_aspect, pos, MovieClipUser::render_flag, SpaceClip::stabmat, MovieClip::tracking, UI_view2d_view_to_region(), SpaceClip::user, ARegion::v2d, 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 | ( | const SpaceClip * | sc, |
| const 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 527 of file clip_editor.cc.
References ED_clip_point_undistorted_pos(), ED_space_clip_get_size(), ED_space_clip_get_zoom(), mul_v3_m4v3(), pos, SpaceClip::stabmat, UI_view2d_view_to_region(), and ARegion::v2d.
Referenced by do_lasso_select_marker(), ED_mask_point_pos__reverse(), and blender::ed::transform::projectIntViewEx().
Definition at line 470 of file clip_editor.cc.
References BKE_movieclip_get_size(), BKE_tracking_undistort_v2(), MovieTracking::camera, SpaceClip::clip, copy_v2_v2(), ED_space_clip_get_clip(), MCLIP_PROXY_RENDER_UNDISTORT, MovieTrackingCamera::pixel_aspect, MovieClipUser::render_flag, MovieClip::tracking, and SpaceClip::user.
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(), mask_point_undistort_pos(), and selected_tracking_boundbox().
| void ED_clip_select_all | ( | const SpaceClip * | sc, |
| int | action, | ||
| bool * | r_has_selection ) |
Definition at line 381 of file clip_editor.cc.
References BKE_tracking_marker_get(), BKE_tracking_object_get_active(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_marker_is_visible(), LISTBASE_FOREACH, PLANE_TRACK_HIDDEN, PLANE_TRACK_VIEW_SELECTED, MovieTrackingObject::plane_tracks, SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SELECT, TRACK_HIDDEN, TRACK_VIEW_SELECTED, MovieClip::tracking, and MovieTrackingObject::tracks.
Referenced by box_select_exec(), circle_select_exec(), clip_lasso_select_exec(), and select_all_exec().
| void ED_clip_update_frame | ( | const Main * | mainp, |
| int | cfra ) |
Definition at line 345 of file clip_editor.cc.
References bScreen::areabase, BKE_movieclip_user_set_frame(), LISTBASE_FOREACH, MovieClipScopes::ok, SpaceClip::scopes, SPACE_CLIP, SpaceClip::user, Main::wm, and WM_window_get_active_screen().
Referenced by ED_update_for_newframe().
| void ED_clip_view_lock_state_restore_no_jump | ( | const bContext * | C, |
| const ClipViewLockState * | state ) |
Definition at line 1177 of file clip_editor.cc.
References BLI_assert, C, clip_view_calculate_view_selection(), CTX_wm_space_clip(), SpaceClip::flag, SC_LOCK_SELECTION, state, SpaceClip::xlockof, and SpaceClip::ylockof.
Referenced by add_marker_exec(), ED_mask_view_lock_state_restore_no_jump(), lock_selection_toggle_exec(), select_all_exec(), and select_exec().
| void ED_clip_view_lock_state_store | ( | const bContext * | C, |
| ClipViewLockState * | state ) |
Definition at line 1151 of file clip_editor.cc.
References BLI_assert, C, clip_view_calculate_view_selection(), CTX_wm_space_clip(), SpaceClip::flag, SC_LOCK_SELECTION, state, SpaceClip::xlockof, SpaceClip::xof, SpaceClip::ylockof, SpaceClip::yof, and SpaceClip::zoom.
Referenced by add_marker_exec(), ED_mask_view_lock_state_store(), lock_selection_toggle_exec(), select_all_exec(), and select_exec().
Definition at line 365 of file clip_editor.cc.
References C, clip_view_calculate_view_selection(), CTX_wm_space_clip(), SpaceClip::xof, SpaceClip::yof, and SpaceClip::zoom.
Referenced by clip_main_region_draw(), and view_selected_exec().
| void ED_operatormacros_clip | ( | ) |
Definition at line 1886 of file clip_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), RNA_struct_system_idprops_unset(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
| bool ED_space_clip_check_show_maskedit | ( | const SpaceClip * | sc | ) |
Definition at line 568 of file clip_editor.cc.
References SpaceClip::mode, and SC_MODE_MASKEDIT.
Referenced by ED_space_clip_maskedit_poll(), blender::ed::transform::initTransInfo(), and blender::ed::transform::viewRedrawForce().
| bool ED_space_clip_check_show_trackedit | ( | const SpaceClip * | sc | ) |
Definition at line 559 of file clip_editor.cc.
References SpaceClip::mode, and SC_MODE_TRACKING.
Referenced by ED_space_clip_tracking_poll(), blender::ed::transform::initTransInfo(), blender::ed::transform::recalcData_tracking(), blender::ed::transform::recalcData_tracking_curves(), and blender::ed::transform::viewRedrawForce().
| bool ED_space_clip_color_sample | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| const int | mval[2], | ||
| float | r_col[3] ) |
Returns color in linear space, matching ED_space_image_color_sample().
Definition at line 299 of file clip_editor.cc.
References ImBuf::byte_buffer, ImBuf::channels, CLAMP, ImBufByteBuffer::colorspace, copy_v3_v3(), ImBufByteBuffer::data, ImBufFloatBuffer::data, ED_clip_mouse_pos(), ED_space_clip_get_buffer(), ImBuf::float_buffer, IMB_colormanagement_colorspace_to_scene_linear_v3(), IMB_freeImBuf(), ret, rgb_uchar_to_float(), ImBuf::x, x, ImBuf::y, and y.
Referenced by eyedropper_color_sample_fl().
Definition at line 177 of file clip_editor.cc.
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(), blender::ed::transform::setTransformViewAspect(), and view_all_exec().
| void ED_space_clip_get_aspect_dimension_aware | ( | const SpaceClip * | sc, |
| float * | r_aspx, | ||
| float * | r_aspy ) |
Definition at line 198 of file clip_editor.cc.
References BKE_movieclip_get_size(), SpaceClip::clip, ED_space_clip_get_aspect(), float, SpaceClip::user, and w().
Referenced by blender::ed::transform::setTransformViewAspect().
Definition at line 240 of file clip_editor.cc.
References BKE_movieclip_get_postprocessed_ibuf(), ImBuf::byte_buffer, SpaceClip::clip, ImBufByteBuffer::data, ImBufFloatBuffer::data, ImBuf::float_buffer, IMB_freeImBuf(), SpaceClip::postproc_flag, 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 583 of file clip_editor.cc.
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(), blender::ed::transform::createTransTrackingCurves(), blender::ed::transform::createTransTrackingCurvesData(), blender::ed::transform::createTransTrackingData(), blender::ed::transform::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(), ed_tracking_pick_plane_track(), ed_tracking_pick_point_track(), 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(), blender::ed::transform::projectIntViewEx(), blender::ed::transform::recalcData_tracking(), blender::ed::transform::recalcData_tracking_curves(), 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_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(), blender::ed::transform::special_aftertrans_update__movieclip(), blender::ed::transform::special_aftertrans_update__movieclip_for_curves(), 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_object_new_exec(), tracking_object_remove_exec(), update_image_from_plane_marker_exec(), update_image_from_plane_marker_poll(), and blender::ed::transform::viewRedrawForce().
| int ED_space_clip_get_clip_frame_number | ( | const SpaceClip * | sc | ) |
Return current frame number in clip space.
Definition at line 232 of file clip_editor.cc.
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(), blender::ed::transform::createTransTrackingTracksData(), delete_marker_exec(), detect_features_exec(), disable_markers_exec(), do_lasso_select_marker(), draw_marker_texts(), draw_tracking_tracks(), ED_clip_select_all(), ed_tracking_pick_plane_track(), ed_tracking_pick_point_track(), frame_jump_exec(), join_tracks_exec(), keyframe_set_flag(), mask_parent_set_exec(), blender::ed::transform::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(), blender::ed::transform::special_aftertrans_update__movieclip(), track_markers(), track_markers_initjob(), track_to_path_segment(), and tracking_has_selection().
Definition at line 641 of file clip_editor.cc.
References MaskSpaceInfo::mask, and SpaceClip::mask_info.
Referenced by blender::ed::transform::special_aftertrans_update__mask().
| bool ED_space_clip_get_position | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| const int | mval[2], | ||
| float | r_fpos[2] ) |
Definition at line 282 of file clip_editor.cc.
References ED_clip_mouse_pos(), ED_space_clip_get_buffer(), and IMB_freeImBuf().
Referenced by eyedropper_cryptomatte_sample_fl().
| void ED_space_clip_get_size | ( | const SpaceClip * | sc, |
| int * | r_width, | ||
| int * | r_height ) |
Definition at line 144 of file clip_editor.cc.
References BKE_movieclip_get_size(), SpaceClip::clip, IMG_SIZE_FALLBACK, and SpaceClip::user.
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(), ed_tracking_pick_plane_track(), ed_tracking_pick_point_track(), movieclip_main_area_set_view2d(), sclip_zoom_set(), selected_boundbox(), selected_tracking_boundbox(), slide_marker_customdata(), slide_plane_marker_customdata(), and view_all_exec().
Definition at line 154 of file clip_editor.cc.
References ED_space_clip_get_size().
| ImBuf * ED_space_clip_get_stable_buffer | ( | const SpaceClip * | sc, |
| float | loc[2], | ||
| float * | scale, | ||
| float * | angle ) |
Definition at line 259 of file clip_editor.cc.
References angle(), BKE_movieclip_get_stable_ibuf(), ImBuf::byte_buffer, SpaceClip::clip, ImBufByteBuffer::data, ImBufFloatBuffer::data, ImBuf::float_buffer, IMB_freeImBuf(), SpaceClip::postproc_flag, and SpaceClip::user.
Referenced by clip_draw_main(), and clip_main_region_draw().
| void ED_space_clip_get_zoom | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| float * | r_zoomx, | ||
| float * | r_zoomy ) |
Definition at line 162 of file clip_editor.cc.
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, ARegion::v2d, 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().
| bool ED_space_clip_maskedit_mask_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
Definition at line 112 of file clip_editor.cc.
References C, CTX_data_edit_movieclip(), CTX_wm_space_clip(), ED_space_clip_maskedit_poll(), MaskSpaceInfo::mask, and SpaceClip::mask_info.
Referenced by ED_maskedit_mask_poll(), ED_space_clip_maskedit_mask_visible_splines_poll(), and MASK_OT_parent_set().
| bool ED_space_clip_maskedit_mask_visible_splines_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
Definition at line 127 of file clip_editor.cc.
References C, CTX_wm_space_clip(), MaskSpaceInfo::draw_flag, ED_space_clip_maskedit_mask_poll(), SpaceClipOverlay::flag, MASK_DRAWFLAG_SPLINE, SpaceClip::mask_info, SpaceClip::overlay, and SC_SHOW_OVERLAYS.
Referenced by ED_maskedit_mask_visible_splines_poll().
| bool ED_space_clip_maskedit_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have mask opened for editing.
Definition at line 90 of file clip_editor.cc.
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().
| bool ED_space_clip_maskedit_visible_splines_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have mask opened for editing.
Definition at line 101 of file clip_editor.cc.
References C, CTX_wm_space_clip(), MaskSpaceInfo::draw_flag, ED_space_clip_maskedit_poll(), SpaceClipOverlay::flag, MASK_DRAWFLAG_SPLINE, SpaceClip::mask_info, SpaceClip::overlay, and SC_SHOW_OVERLAYS.
Referenced by ED_maskedit_visible_splines_poll().
| bool ED_space_clip_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
Definition at line 57 of file clip_editor.cc.
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().
Definition at line 588 of file clip_editor.cc.
References bScreen::areabase, BKE_movieclip_clear_cache(), C, SpaceClip::clip, CTX_wm_screen(), ELEM, id_us_ensure_real(), LISTBASE_FOREACH, NA_SELECTED, NC_MOVIECLIP, SC_VIEW_CLIP, SPACE_CLIP, SpaceClip::view, and WM_event_add_notifier().
Referenced by open_exec().
Definition at line 646 of file clip_editor.cc.
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().
| bool ED_space_clip_tracking_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have movie clip opened for editing.
Definition at line 79 of file clip_editor.cc.
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_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(), new_image_from_plane_marker_poll(), paste_tracks_poll(), space_clip_dopesheet_poll(), space_clip_graph_poll(), stabilize_2d_poll(), and update_image_from_plane_marker_poll().
| bool ED_space_clip_view_clip_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have movie clip opened for editing.
Definition at line 68 of file clip_editor.cc.
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().