|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "BLI_ghash.h"#include "BLI_math_geom.h"#include "BLI_math_vector.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_image.hh"#include "BKE_movieclip.h"#include "BKE_report.hh"#include "BKE_tracking.h"#include "DEG_depsgraph.hh"#include "UI_interface_icons.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_clip.hh"#include "ED_screen.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "BLT_translation.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "clip_intern.hh"#include "tracking_ops_intern.hh"Go to the source code of this file.
Classes | |
| struct | SlideMarkerData |
Disable Markers Operator | |
| enum | { MARKER_OP_DISABLE = 0 , MARKER_OP_ENABLE = 1 , MARKER_OP_TOGGLE = 2 } |
| static int | disable_markers_exec (bContext *C, wmOperator *op) |
| void | CLIP_OT_disable_markers (wmOperatorType *ot) |
Lock Tracks Operator | |
| enum | { TRACK_ACTION_LOCK = 0 , TRACK_ACTION_UNLOCK = 1 , TRACK_ACTION_TOGGLE = 2 } |
| static int | lock_tracks_exec (bContext *C, wmOperator *op) |
| void | CLIP_OT_lock_tracks (wmOperatorType *ot) |
Set Keyframe Operator | |
| enum | { SOLVER_KEYFRAME_A = 0 , SOLVER_KEYFRAME_B = 1 } |
| static int | set_solver_keyframe_exec (bContext *C, wmOperator *op) |
| void | CLIP_OT_set_solver_keyframe (wmOperatorType *ot) |
| anonymous enum |
| Enumerator | |
|---|---|
| MARKER_OP_DISABLE | |
| MARKER_OP_ENABLE | |
| MARKER_OP_TOGGLE | |
Definition at line 935 of file tracking_ops.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| TRACK_ACTION_LOCK | |
| TRACK_ACTION_UNLOCK | |
| TRACK_ACTION_TOGGLE | |
Definition at line 1409 of file tracking_ops.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| SOLVER_KEYFRAME_A | |
| SOLVER_KEYFRAME_B | |
Definition at line 1474 of file tracking_ops.cc.
| enum eSlideAction |
| Enumerator | |
|---|---|
| SLIDE_ACTION_NONE | |
| SLIDE_ACTION_POS | |
| SLIDE_ACTION_SIZE | |
| SLIDE_ACTION_OFFSET | |
| SLIDE_ACTION_TILT_SIZE | |
Definition at line 365 of file tracking_ops.cc.
Definition at line 50 of file tracking_ops.cc.
References MovieTrackingObject::active_plane_track, MovieTrackingObject::active_track, BKE_tracking_object_get_active(), BKE_tracking_plane_tracks_deselect_all(), BKE_tracking_track_add(), BKE_tracking_track_select(), CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_get_size(), MovieTrackingObject::plane_tracks, TRACK_AREA_ALL, and MovieTrackingObject::tracks.
Referenced by add_marker_at_click_modal(), and add_marker_exec().
|
static |
Definition at line 148 of file tracking_ops.cc.
References ED_workspace_status_text(), IFACE_, OPERATOR_RUNNING_MODAL, and WM_event_add_modal_handler().
Referenced by CLIP_OT_add_marker_at_click().
|
static |
Definition at line 158 of file tracking_ops.cc.
References add_marker(), CTX_wm_region(), CTX_wm_space_clip(), ED_clip_point_stable_pos(), ED_space_clip_get_clip(), ED_workspace_status_text(), EVT_ESCKEY, LEFTMOUSE, MOUSEMOVE, NA_EDITED, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, pos, wmEvent::type, WM_event_add_notifier(), and wmEvent::xy.
Referenced by CLIP_OT_add_marker_at_click().
|
static |
Definition at line 77 of file tracking_ops.cc.
References add_marker(), CTX_wm_space_clip(), ED_clip_view_lock_state_restore_no_jump(), ED_clip_view_lock_state_store(), ED_space_clip_get_clip(), NA_EDITED, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, pos, wmOperator::ptr, RNA_float_get_array(), and WM_event_add_notifier().
Referenced by add_marker_invoke(), and CLIP_OT_add_marker().
|
static |
Definition at line 99 of file tracking_ops.cc.
References add_marker_exec(), CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), and RNA_struct_property_is_set().
Referenced by CLIP_OT_add_marker().
|
static |
Definition at line 635 of file tracking_ops.cc.
References BKE_tracking_object_get_active(), BKE_tracking_plane_track_has_point_track(), BKE_tracking_track_plane_from_existing_motion(), CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), LISTBASE_FOREACH, PLANE_TRACK_AUTOKEY, MovieTrackingObject::plane_tracks, and TRACK_AREA_POINT.
Referenced by slide_marker_modal().
|
static |
Definition at line 1313 of file tracking_ops.cc.
References MovieTrackingObject::active_plane_track, MovieTrackingObject::active_track, BKE_tracking_object_get_active(), BKE_tracking_plane_tracks_deselect_all(), BKE_tracking_selected_tracks_in_active_object(), BKE_tracking_track_add_empty(), BKE_tracking_track_select(), BKE_tracking_tracks_average(), clip_delete_track(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), MEM_freeN(), NA_EDITED, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, MovieTrackingObject::plane_tracks, wmOperator::ptr, RNA_boolean_get(), TRACK_AREA_ALL, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by average_tracks_invoke(), and CLIP_OT_average_tracks().
|
static |
Definition at line 1362 of file tracking_ops.cc.
References average_tracks_exec(), BKE_tracking_count_selected_tracks_in_active_object(), CTX_wm_space_clip(), ED_space_clip_get_clip(), wmOperator::ptr, RNA_property_boolean_set(), RNA_property_is_set(), and RNA_struct_find_property().
Referenced by CLIP_OT_average_tracks().
|
static |
Definition at line 619 of file tracking_ops.cc.
References copy_v2_v2(), MovieTrackingMarker::pattern_corners, MovieTrackingMarker::pos, MovieTrackingMarker::search_max, and MovieTrackingMarker::search_min.
Referenced by slide_marker_modal().
|
static |
Definition at line 1687 of file tracking_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_dopesheet_tag_update(), BKE_tracking_object_get_active(), BKE_tracking_track_flag_set(), BKE_tracking_track_free(), BLI_freelinkN(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), error(), is_track_clean(), LISTBASE_FOREACH_MUTABLE, NC_MOVIECLIP, ND_SELECT, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), RNA_int_get(), SELECT, TRACK_AREA_ALL, TRACK_HAS_BUNDLE, TRACK_HIDDEN, TRACK_LOCKED, TRACKING_CLEAN_DELETE_SEGMENT, TRACKING_CLEAN_DELETE_TRACK, TRACKING_CLEAN_SELECT, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by clean_tracks_invoke(), and CLIP_OT_clean_tracks().
|
static |
Definition at line 1741 of file tracking_ops.cc.
References clean_tracks_exec(), CTX_wm_space_clip(), ED_space_clip_get_clip(), wmOperator::ptr, RNA_enum_set(), RNA_float_set(), RNA_int_set(), and RNA_struct_property_is_set().
Referenced by CLIP_OT_clean_tracks().
|
static |
Definition at line 862 of file tracking_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_dopesheet_tag_update(), BKE_tracking_object_get_active(), BKE_tracking_track_path_clear(), CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), LISTBASE_FOREACH, NA_EVALUATED, NC_MOVIECLIP, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), TRACK_VIEW_SELECTED, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_clear_track_path().
| void CLIP_OT_add_marker | ( | wmOperatorType * | ot | ) |
Definition at line 114 of file tracking_ops.cc.
References add_marker_exec(), add_marker_invoke(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
| void CLIP_OT_add_marker_at_click | ( | wmOperatorType * | ot | ) |
Definition at line 195 of file tracking_ops.cc.
References add_marker_at_click_invoke(), add_marker_at_click_modal(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_average_tracks | ( | wmOperatorType * | ot | ) |
Definition at line 1380 of file tracking_ops.cc.
References average_tracks_exec(), average_tracks_invoke(), BLT_I18NCONTEXT_ID_MOVIECLIP, wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), RNA_def_property_translation_context(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
| void CLIP_OT_clean_tracks | ( | wmOperatorType * | ot | ) |
Definition at line 1761 of file tracking_ops.cc.
References clean_tracks_exec(), clean_tracks_invoke(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), RNA_def_float(), RNA_def_int(), wmOperatorType::srna, TRACKING_CLEAN_DELETE_SEGMENT, TRACKING_CLEAN_DELETE_TRACK, and TRACKING_CLEAN_SELECT.
Referenced by clip_operatortypes().
| void CLIP_OT_clear_track_path | ( | wmOperatorType * | ot | ) |
Definition at line 890 of file tracking_ops.cc.
References clear_track_path_exec(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), wmOperatorType::srna, TRACK_CLEAR_ALL, TRACK_CLEAR_REMAINED, and TRACK_CLEAR_UPTO.
Referenced by clip_operatortypes().
| void CLIP_OT_copy_tracks | ( | wmOperatorType * | ot | ) |
Definition at line 1906 of file tracking_ops.cc.
References copy_tracks_exec(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_delete_marker | ( | wmOperatorType * | ot | ) |
Definition at line 342 of file tracking_ops.cc.
References delete_marker_exec(), delete_marker_invoke(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_confirm_or_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_delete_track | ( | wmOperatorType * | ot | ) |
Definition at line 262 of file tracking_ops.cc.
References delete_track_exec(), delete_track_invoke(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_confirm_or_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_disable_markers | ( | wmOperatorType * | ot | ) |
Definition at line 973 of file tracking_ops.cc.
References wmOperatorType::description, disable_markers_exec(), ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MARKER_OP_DISABLE, MARKER_OP_ENABLE, MARKER_OP_TOGGLE, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
| void CLIP_OT_frame_jump | ( | wmOperatorType * | ot | ) |
Definition at line 1184 of file tracking_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, frame_jump_exec(), frame_jump_poll(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
| void CLIP_OT_hide_tracks | ( | wmOperatorType * | ot | ) |
Definition at line 1048 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, hide_tracks_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
| void CLIP_OT_hide_tracks_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1095 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, hide_tracks_clear_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_join_tracks | ( | wmOperatorType * | ot | ) |
Definition at line 1292 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, join_tracks_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_keyframe_delete | ( | wmOperatorType * | ot | ) |
Definition at line 2054 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, keyframe_delete_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_keyframe_insert | ( | wmOperatorType * | ot | ) |
Definition at line 2027 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, keyframe_insert_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_lock_tracks | ( | wmOperatorType * | ot | ) |
Definition at line 1443 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lock_tracks_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, TRACK_ACTION_LOCK, TRACK_ACTION_TOGGLE, and TRACK_ACTION_UNLOCK.
Referenced by clip_operatortypes().
| void CLIP_OT_new_image_from_plane_marker | ( | wmOperatorType * | ot | ) |
Definition at line 2139 of file tracking_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, new_image_from_plane_marker_exec(), new_image_from_plane_marker_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_paste_tracks | ( | wmOperatorType * | ot | ) |
Definition at line 1951 of file tracking_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paste_tracks_exec(), paste_tracks_poll(), and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_set_solver_keyframe | ( | wmOperatorType * | ot | ) |
Definition at line 1500 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), set_solver_keyframe_exec(), SOLVER_KEYFRAME_A, SOLVER_KEYFRAME_B, and wmOperatorType::srna.
Referenced by clip_operatortypes().
| void CLIP_OT_slide_marker | ( | wmOperatorType * | ot | ) |
Definition at line 828 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), slide_marker_invoke(), slide_marker_modal(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
| void CLIP_OT_track_copy_color | ( | wmOperatorType * | ot | ) |
Definition at line 1557 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and track_copy_color_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_tracking_object_new | ( | wmOperatorType * | ot | ) |
Definition at line 1830 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and tracking_object_new_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_tracking_object_remove | ( | wmOperatorType * | ot | ) |
Definition at line 1871 of file tracking_ops.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and tracking_object_remove_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_update_image_from_plane_marker | ( | wmOperatorType * | ot | ) |
Definition at line 2200 of file tracking_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, update_image_from_plane_marker_exec(), and update_image_from_plane_marker_poll().
Referenced by clip_operatortypes().
|
static |
Definition at line 1892 of file tracking_ops.cc.
References BKE_tracking_clipboard_copy_tracks(), BKE_tracking_object_get_active(), clip_tracking_clear_invisible_track_selection(), CTX_wm_space_clip(), ED_space_clip_get_clip(), and OPERATOR_FINISHED.
Referenced by CLIP_OT_copy_tracks().
|
static |
Definition at line 397 of file tracking_ops.cc.
References BKE_tracking_marker_ensure(), copy_v2_v2(), data, ED_space_clip_get_clip_frame_number(), MovieTrackingMarker::pattern_corners, MovieTrackingMarker::pos, MovieTrackingMarker::search_max, MovieTrackingMarker::search_min, SLIDE_ACTION_POS, SLIDE_ACTION_SIZE, SLIDE_ACTION_TILT_SIZE, TRACK_AREA_PAT, TRACK_AREA_POINT, and TRACK_AREA_SEARCH.
Referenced by slide_marker_customdata().
|
static |
Definition at line 285 of file tracking_ops.cc.
References BKE_tracking_marker_get_exact(), BKE_tracking_object_get_active(), BKE_tracking_plane_marker_delete(), BKE_tracking_plane_marker_get_exact(), BKE_tracking_plane_track_free(), BLI_freelinkN(), clip_delete_marker(), CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), LISTBASE_FOREACH_MUTABLE, OPERATOR_CANCELLED, OPERATOR_FINISHED, PLANE_TRACK_VIEW_SELECTED, MovieTrackingObject::plane_tracks, TRACK_VIEW_SELECTED, and MovieTrackingObject::tracks.
Referenced by CLIP_OT_delete_marker(), and delete_marker_invoke().
|
static |
Definition at line 328 of file tracking_ops.cc.
References ALERT_ICON_NONE, delete_marker_exec(), IFACE_, wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by CLIP_OT_delete_marker().
|
static |
Definition at line 217 of file tracking_ops.cc.
References BKE_tracking_object_get_active(), clip_delete_plane_track(), clip_delete_track(), CTX_wm_space_clip(), ED_space_clip_get_clip(), LISTBASE_FOREACH_MUTABLE, NA_EDITED, NC_MOVIECLIP, OPERATOR_FINISHED, PLANE_TRACK_VIEW_SELECTED, MovieTrackingObject::plane_tracks, TRACK_VIEW_SELECTED, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_delete_track(), and delete_track_invoke().
|
static |
Definition at line 248 of file tracking_ops.cc.
References ALERT_ICON_NONE, delete_track_exec(), IFACE_, wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by CLIP_OT_delete_track().
|
static |
Definition at line 941 of file tracking_ops.cc.
References BKE_tracking_marker_ensure(), BKE_tracking_object_get_active(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), MovieTrackingMarker::flag, LISTBASE_FOREACH, MARKER_DISABLED, MARKER_OP_DISABLE, MARKER_OP_ENABLE, MARKER_OP_TOGGLE, NA_EVALUATED, NC_MOVIECLIP, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), TRACK_LOCKED, TRACK_VIEW_SELECTED, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_disable_markers().
|
static |
Definition at line 1122 of file tracking_ops.cc.
References MovieTrackingObject::active_track, BKE_movieclip_remap_clip_to_scene_frame(), BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_camera_get_reconstructed(), BKE_tracking_marker_get_exact(), BKE_tracking_object_get_active(), CTX_data_scene(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), MovieTrackingMarker::flag, MovieTrackingReconstruction::flag, MovieClipUser::framenr, ID_RECALC_FRAME_CHANGE, MARKER_DISABLED, NC_MOVIECLIP, NC_SCENE, ND_DISPLAY, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, pos, wmOperator::ptr, MovieTrackingObject::reconstruction, RNA_enum_get(), TRACKING_RECONSTRUCTED, SpaceClip::user, and WM_event_add_notifier().
Referenced by CLIP_OT_frame_jump().
|
static |
Definition at line 1116 of file tracking_ops.cc.
References CTX_wm_space_clip().
Referenced by CLIP_OT_frame_jump().
|
static |
Definition at line 653 of file tracking_ops.cc.
References MEM_freeN().
Referenced by slide_marker_modal().
|
static |
Definition at line 1072 of file tracking_ops.cc.
References BKE_tracking_dopesheet_tag_update(), BKE_tracking_object_get_active(), CTX_wm_space_clip(), ED_space_clip_get_clip(), LISTBASE_FOREACH, NC_MOVIECLIP, ND_DISPLAY, OPERATOR_FINISHED, MovieTrackingObject::plane_tracks, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_hide_tracks_clear().
|
static |
Definition at line 1004 of file tracking_ops.cc.
References MovieTrackingObject::active_plane_track, MovieTrackingObject::active_track, BKE_tracking_dopesheet_tag_update(), BKE_tracking_object_get_active(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingPlaneTrack::flag, MovieTrackingTrack::flag, LISTBASE_FOREACH, NC_MOVIECLIP, ND_DISPLAY, OPERATOR_FINISHED, PLANE_TRACK_HIDDEN, MovieTrackingObject::plane_tracks, wmOperator::ptr, RNA_boolean_get(), SELECT, TRACK_HIDDEN, TRACK_VIEW_SELECTED, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_hide_tracks().
|
static |
Definition at line 1578 of file tracking_ops.cc.
References count, flag, len, MARKER_DISABLED, markers, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, and MEM_freeN().
Referenced by clean_tracks_exec().
|
static |
Definition at line 1216 of file tracking_ops.cc.
References MovieTrackingObject::active_track, BKE_report(), BKE_tracking_object_get_active(), BKE_tracking_plane_track_has_point_track(), BKE_tracking_plane_track_replace_point_track(), BKE_tracking_track_free(), BKE_tracking_track_plane_from_existing_motion(), BKE_tracking_tracks_join(), BLI_assert, BLI_freelinkN(), BLI_gset_free(), BLI_gset_insert(), BLI_gset_ptr_new(), BLI_gsetIterator_getKey(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), MovieTrackingTrack::flag, GSET_ITER, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, NA_EDITED, NC_MOVIECLIP, ND_DISPLAY, OPERATOR_CANCELLED, OPERATOR_FINISHED, PLANE_TRACK_AUTOKEY, MovieTrackingObject::plane_tracks, wmOperator::reports, RPT_ERROR, TRACK_USE_2D_STAB, TRACK_USE_2D_STAB_ROT, TRACK_VIEW_SELECTED, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_join_tracks().
|
static |
Definition at line 2048 of file tracking_ops.cc.
References keyframe_set_flag(), and OPERATOR_FINISHED.
Referenced by CLIP_OT_keyframe_delete().
|
static |
Definition at line 2021 of file tracking_ops.cc.
References keyframe_set_flag(), and OPERATOR_FINISHED.
Referenced by CLIP_OT_keyframe_insert().
|
static |
Definition at line 1972 of file tracking_ops.cc.
References BKE_tracking_marker_ensure(), BKE_tracking_marker_get_exact(), BKE_tracking_object_get_active(), BKE_tracking_plane_marker_ensure(), BKE_tracking_plane_marker_get_exact(), BKE_tracking_retrack_plane_from_existing_motion_at_segment(), BKE_tracking_track_plane_from_existing_motion(), CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), MovieTrackingMarker::flag, MovieTrackingPlaneMarker::flag, MovieTrackingPlaneMarker::framenr, LISTBASE_FOREACH, MARKER_TRACKED, NA_EDITED, NC_MOVIECLIP, PLANE_MARKER_TRACKED, PLANE_TRACK_VIEW_SELECTED, MovieTrackingObject::plane_tracks, TRACK_VIEW_SELECTED, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by keyframe_delete_exec(), and keyframe_insert_exec().
|
static |
Definition at line 1415 of file tracking_ops.cc.
References BKE_tracking_object_get_active(), CTX_wm_space_clip(), ED_space_clip_get_clip(), LISTBASE_FOREACH, NA_EVALUATED, NC_MOVIECLIP, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), TRACK_ACTION_LOCK, TRACK_ACTION_TOGGLE, TRACK_ACTION_UNLOCK, TRACK_LOCKED, TRACK_VIEW_SELECTED, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_lock_tracks().
|
static |
Definition at line 2117 of file tracking_ops.cc.
References MovieTrackingObject::active_plane_track, BKE_image_add_from_imbuf(), BKE_tracking_object_get_active(), CTX_data_main(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingPlaneTrack::image, IMB_freeImBuf(), NA_EDITED, MovieTrackingPlaneTrack::name, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, sample_plane_marker_image_for_operator(), and WM_event_add_notifier().
Referenced by CLIP_OT_new_image_from_plane_marker().
|
static |
Definition at line 2099 of file tracking_ops.cc.
References MovieTrackingObject::active_plane_track, BKE_tracking_object_get_active(), CTX_wm_space_clip(), ED_space_clip_get_clip(), and ED_space_clip_tracking_poll().
Referenced by CLIP_OT_new_image_from_plane_marker().
|
static |
Definition at line 1936 of file tracking_ops.cc.
References BKE_tracking_clipboard_paste_tracks(), BKE_tracking_object_get_active(), BKE_tracking_tracks_deselect_all(), CTX_wm_space_clip(), ED_space_clip_get_clip(), NA_EDITED, NC_MOVIECLIP, OPERATOR_FINISHED, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_paste_tracks().
|
static |
Definition at line 1927 of file tracking_ops.cc.
References BKE_tracking_clipboard_has_tracks(), and ED_space_clip_tracking_poll().
Referenced by CLIP_OT_paste_tracks().
Definition at line 2075 of file tracking_ops.cc.
References MovieTrackingObject::active_plane_track, BKE_tracking_get_plane_imbuf(), BKE_tracking_object_get_active(), BKE_tracking_plane_marker_get(), CTX_wm_space_clip(), ED_space_clip_get_buffer(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), and IMB_freeImBuf().
Referenced by new_image_from_plane_marker_exec(), and update_image_from_plane_marker_exec().
|
static |
Definition at line 1479 of file tracking_ops.cc.
References BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_object_get_active(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieClipUser::framenr, MovieTrackingObject::keyframe1, MovieTrackingObject::keyframe2, NC_MOVIECLIP, ND_DISPLAY, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SOLVER_KEYFRAME_A, SpaceClip::user, and WM_event_add_notifier().
Referenced by CLIP_OT_set_solver_keyframe().
|
static |
Definition at line 453 of file tracking_ops.cc.
References cross(), cross_v2v2(), fabsf, isect_point_quad_v2(), next, sub_v2_v2v2(), and v2.
Referenced by slide_marker_modal().
|
static |
Definition at line 563 of file tracking_ops.cc.
References BKE_tracking_marker_get(), create_slide_marker_data(), CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), ED_space_clip_get_clip_frame_number(), ED_space_clip_get_size(), wmEvent::mval, and tracking_marker_check_slide().
Referenced by slide_marker_invoke().
|
static |
Definition at line 594 of file tracking_ops.cc.
References MovieTrackingObject::active_plane_track, MovieTrackingObject::active_track, BKE_tracking_object_get_active(), clip_tracking_hide_cursor(), CTX_wm_space_clip(), wmOperator::customdata, ED_space_clip_get_clip(), NC_GEOM, ND_SELECT, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, slide_marker_customdata(), SlideMarkerData::track, WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by CLIP_OT_slide_marker().
|
static |
Definition at line 661 of file tracking_ops.cc.
References add_v2_v2(), add_v2_v2v2(), angle_signed_v2v2(), apply_mouse_slide(), ATTR_FALLTHROUGH, BKE_tracking_marker_clamp_search_position(), BKE_tracking_marker_clamp_search_size(), cancel_mouse_slide(), SpaceClip::clip, clip_tracking_show_cursor(), copy_v2_v2(), copy_v2_v2_int(), cosf, CTX_wm_space_clip(), wmOperator::customdata, DEG_id_tag_update(), ELEM, EVT_ESCKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, EVT_RIGHTCTRLKEY, EVT_RIGHTSHIFTKEY, free_slide_data(), MovieClip::id, KM_PRESS, KM_RELEASE, LEFTMOUSE, len_squared_v2(), len_v2(), MOUSEMOVE, mul_v2_fl(), wmEvent::mval, NA_EDITED, NC_MOVIECLIP, NC_OBJECT, ND_TRANSFORM, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, sinf, SLIDE_ACTION_OFFSET, SLIDE_ACTION_POS, SLIDE_ACTION_SIZE, SLIDE_ACTION_TILT_SIZE, slide_check_corners(), slide_marker_tilt_slider_relative(), TRACK_AREA_PAT, TRACK_AREA_POINT, TRACK_AREA_SEARCH, wmEvent::type, wmEvent::val, WM_event_add_notifier(), and SpaceClip::zoom.
Referenced by CLIP_OT_slide_marker().
|
static |
Definition at line 392 of file tracking_ops.cc.
References add_v2_v2v2().
Referenced by slide_marker_modal().
|
static |
Definition at line 1530 of file tracking_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_get_active(), MovieTrackingTrack::color, copy_v3_v3(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), MovieTrackingTrack::flag, LISTBASE_FOREACH, NC_MOVIECLIP, ND_DISPLAY, OPERATOR_CANCELLED, OPERATOR_FINISHED, TRACK_CUSTOMCOLOR, TRACK_VIEW_SELECTED, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_track_copy_color().
| MovieTrackingTrack * tracking_find_slidable_track_in_proximity | ( | bContext * | C, |
| const float | co[2] ) |
Definition at line 558 of file tracking_ops.cc.
References tracking_marker_check_slide().
|
static |
Definition at line 486 of file tracking_ops.cc.
References PointTrackPick::area, PointTrackPick::area_detail, BLI_assert_msg, PointTrackPick::corner_index, CTX_wm_space_clip(), ed_tracking_pick_options_defaults(), ed_tracking_pick_point_track(), ed_tracking_point_track_pick_can_slide(), ed_tracking_point_track_pick_empty(), options, SLIDE_ACTION_NONE, SLIDE_ACTION_OFFSET, SLIDE_ACTION_POS, SLIDE_ACTION_SIZE, SLIDE_ACTION_TILT_SIZE, PointTrackPick::track, TRACK_AREA_ALL, TRACK_AREA_NONE, TRACK_AREA_PAT, TRACK_AREA_POINT, TRACK_AREA_SEARCH, TRACK_PICK_AREA_DETAIL_OFFSET, TRACK_PICK_AREA_DETAIL_POSITION, TRACK_PICK_AREA_DETAIL_SIZE, and TRACK_PICK_AREA_DETAIL_TILT_SIZE.
Referenced by slide_marker_customdata(), and tracking_find_slidable_track_in_proximity().
|
static |
Definition at line 1816 of file tracking_ops.cc.
References BKE_tracking_object_add(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ID_RECALC_SYNC_TO_EVAL, NA_EDITED, NC_MOVIECLIP, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by CLIP_OT_tracking_object_new().
|
static |
Definition at line 1851 of file tracking_ops.cc.
References BKE_report(), BKE_tracking_object_delete(), BKE_tracking_object_get_active(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), MovieTrackingObject::flag, ID_RECALC_SYNC_TO_EVAL, NA_EDITED, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, TRACKING_OBJECT_CAMERA, and WM_event_add_notifier().
Referenced by CLIP_OT_tracking_object_remove().
|
static |
Definition at line 2175 of file tracking_ops.cc.
References MovieTrackingObject::active_plane_track, BKE_image_partial_update_mark_full_update(), BKE_image_replace_imbuf(), BKE_tracking_object_get_active(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingPlaneTrack::image, IMB_freeImBuf(), NA_EDITED, NC_IMAGE, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, sample_plane_marker_image_for_operator(), and WM_event_add_notifier().
Referenced by CLIP_OT_update_image_from_plane_marker().
|
static |
Definition at line 2154 of file tracking_ops.cc.
References MovieTrackingObject::active_plane_track, BKE_tracking_object_get_active(), CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_tracking_poll(), ELEM, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_TYPE_IMAGE, MovieTrackingPlaneTrack::image, and Image::type.
Referenced by CLIP_OT_update_image_from_plane_marker().