Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_image.h"
#include "BKE_movieclip.h"
#include "BKE_report.h"
#include "BKE_tracking.h"
#include "DEG_depsgraph.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_clip.h"
#include "ED_screen.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "BLT_translation.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "clip_intern.h"
#include "tracking_ops_intern.h"
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) |
typedef enum eSlideAction eSlideAction |
anonymous enum |
Enumerator | |
---|---|
MARKER_OP_DISABLE | |
MARKER_OP_ENABLE | |
MARKER_OP_TOGGLE |
Definition at line 1023 of file tracking_ops.c.
anonymous enum |
Enumerator | |
---|---|
TRACK_ACTION_LOCK | |
TRACK_ACTION_UNLOCK | |
TRACK_ACTION_TOGGLE |
Definition at line 1547 of file tracking_ops.c.
anonymous enum |
Enumerator | |
---|---|
SOLVER_KEYFRAME_A | |
SOLVER_KEYFRAME_B |
Definition at line 1613 of file tracking_ops.c.
enum eSlideAction |
Enumerator | |
---|---|
SLIDE_ACTION_NONE | |
SLIDE_ACTION_POS | |
SLIDE_ACTION_SIZE | |
SLIDE_ACTION_OFFSET | |
SLIDE_ACTION_TILT_SIZE |
Definition at line 343 of file tracking_ops.c.
Definition at line 47 of file tracking_ops.c.
References MovieTracking::act_plane_track, MovieTracking::act_track, BKE_tracking_get_active_plane_tracks(), BKE_tracking_get_active_tracks(), BKE_tracking_plane_tracks_deselect_all(), BKE_tracking_track_add(), BKE_tracking_track_select(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_get_size(), height, NULL, TRACK_AREA_ALL, MovieClip::tracking, width, x, and y.
Referenced by add_marker_at_click_modal(), and add_marker_exec().
|
static |
Definition at line 146 of file tracking_ops.c.
References C, ED_workspace_status_text(), OPERATOR_RUNNING_MODAL, TIP_, and WM_event_add_modal_handler().
Referenced by CLIP_OT_add_marker_at_click().
|
static |
Definition at line 156 of file tracking_ops.c.
References add_marker(), C, 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, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, pos, wmEvent::type, ARegion::winrct, WM_event_add_notifier(), rcti::xmin, wmEvent::xy, and rcti::ymin.
Referenced by CLIP_OT_add_marker_at_click().
|
static |
Definition at line 75 of file tracking_ops.c.
References add_marker(), C, 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 97 of file tracking_ops.c.
References add_marker_exec(), C, 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 719 of file tracking_ops.c.
References BKE_tracking_get_active_plane_tracks(), BKE_tracking_plane_track_has_point_track(), BKE_tracking_track_plane_from_existing_motion(), C, CTX_wm_space_clip(), data, ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ListBase::first, NULL, PLANE_TRACK_AUTOKEY, TRACK_AREA_POINT, and MovieClip::tracking.
Referenced by slide_marker_modal().
|
static |
Definition at line 1452 of file tracking_ops.c.
References MovieTracking::act_plane_track, MovieTracking::act_track, BKE_tracking_get_active_plane_tracks(), BKE_tracking_get_active_tracks(), 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(), C, clip_delete_track(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), MovieClip::id, MEM_freeN, NA_EDITED, NC_MOVIECLIP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), TRACK_AREA_ALL, MovieClip::tracking, and WM_event_add_notifier().
Referenced by average_tracks_invoke(), and CLIP_OT_average_tracks().
|
static |
Definition at line 1501 of file tracking_ops.c.
References average_tracks_exec(), BKE_tracking_count_selected_tracks_in_active_object(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), wmOperator::ptr, RNA_property_boolean_set(), RNA_property_is_set(), RNA_struct_find_property(), and MovieClip::tracking.
Referenced by CLIP_OT_average_tracks().
|
static |
Definition at line 703 of file tracking_ops.c.
References Freestyle::a, copy_v2_v2(), data, NULL, MovieTrackingMarker::pattern_corners, MovieTrackingMarker::pos, MovieTrackingMarker::search_max, and MovieTrackingMarker::search_min.
Referenced by slide_marker_modal().
|
static |
Definition at line 1827 of file tracking_ops.c.
References MovieTracking::act_track, BKE_tracking_dopesheet_tag_update(), BKE_tracking_get_active_tracks(), BKE_tracking_track_flag_set(), BKE_tracking_track_free(), BKE_tracking_track_get_active(), BLI_freelinkN(), C, CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), error(), ListBase::first, MovieClip::id, is_track_clean(), NC_MOVIECLIP, ND_SELECT, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), RNA_int_get(), SELECT, TRACK_AREA_ALL, TRACK_HAS_BUNDLE, TRACK_HIDDEN, TRACK_LOCKED, MovieClip::tracking, TRACKING_CLEAN_DELETE_SEGMENT, TRACKING_CLEAN_DELETE_TRACK, TRACKING_CLEAN_SELECT, and WM_event_add_notifier().
Referenced by clean_tracks_invoke(), and CLIP_OT_clean_tracks().
|
static |
Definition at line 1885 of file tracking_ops.c.
References C, MovieTrackingSettings::clean_action, MovieTrackingSettings::clean_error, MovieTrackingSettings::clean_frames, clean_tracks_exec(), CTX_wm_space_clip(), ED_space_clip_get_clip(), wmOperator::ptr, RNA_enum_set(), RNA_float_set(), RNA_int_set(), RNA_struct_property_is_set(), MovieTracking::settings, and MovieClip::tracking.
Referenced by CLIP_OT_clean_tracks().
|
static |
Definition at line 948 of file tracking_ops.c.
References BKE_tracking_dopesheet_tag_update(), BKE_tracking_get_active_tracks(), BKE_tracking_track_get_active(), BKE_tracking_track_path_clear(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ListBase::first, NA_EVALUATED, NC_MOVIECLIP, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), TRACK_VIEW_SELECTED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_clear_track_path().
void CLIP_OT_add_marker | ( | wmOperatorType * | ot | ) |
Definition at line 112 of file tracking_ops.c.
References add_marker_exec(), add_marker_invoke(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, 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 193 of file tracking_ops.c.
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 1519 of file tracking_ops.c.
References average_tracks_exec(), average_tracks_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, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
void CLIP_OT_clean_tracks | ( | wmOperatorType * | ot | ) |
Definition at line 1905 of file tracking_ops.c.
References clean_tracks_exec(), clean_tracks_invoke(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, 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 978 of file tracking_ops.c.
References clear_track_path_exec(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, 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 2052 of file tracking_ops.c.
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 321 of file tracking_ops.c.
References delete_marker_exec(), 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_confirm().
Referenced by clip_operatortypes().
void CLIP_OT_delete_track | ( | wmOperatorType * | ot | ) |
Definition at line 250 of file tracking_ops.c.
References delete_track_exec(), 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_confirm().
Referenced by clip_operatortypes().
void CLIP_OT_disable_markers | ( | wmOperatorType * | ot | ) |
Definition at line 1062 of file tracking_ops.c.
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, NULL, 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 1320 of file tracking_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, frame_jump_exec(), frame_jump_poll(), wmOperatorType::idname, wmOperatorType::name, NULL, 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 1181 of file tracking_ops.c.
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 1231 of file tracking_ops.c.
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 1431 of file tracking_ops.c.
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 2204 of file tracking_ops.c.
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 2177 of file tracking_ops.c.
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 1582 of file tracking_ops.c.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lock_tracks_exec(), wmOperatorType::name, NULL, 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 2287 of file tracking_ops.c.
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 2098 of file tracking_ops.c.
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_center_principal | ( | wmOperatorType * | ot | ) |
Definition at line 1113 of file tracking_ops.c.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and set_center_principal_exec().
Referenced by clip_operatortypes().
void CLIP_OT_set_solver_keyframe | ( | wmOperatorType * | ot | ) |
Definition at line 1639 of file tracking_ops.c.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, 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 914 of file tracking_ops.c.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, 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 1697 of file tracking_ops.c.
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 1974 of file tracking_ops.c.
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 2017 of file tracking_ops.c.
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 2344 of file tracking_ops.c.
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 2038 of file tracking_ops.c.
References BKE_tracking_clipboard_copy_tracks(), BKE_tracking_object_get_active(), C, clip_tracking_clear_invisible_track_selection(), CTX_wm_space_clip(), ED_space_clip_get_clip(), OPERATOR_FINISHED, and MovieClip::tracking.
Referenced by CLIP_OT_copy_tracks().
|
static |
Definition at line 383 of file tracking_ops.c.
References blender::compositor::area(), BKE_tracking_marker_ensure(), copy_v2_v2(), data, ED_space_clip_get_clip_frame_number(), height, MEM_callocN, 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, TRACK_AREA_SEARCH, and width.
Referenced by slide_marker_customdata().
|
static |
Definition at line 272 of file tracking_ops.c.
References BKE_tracking_get_active_plane_tracks(), BKE_tracking_get_active_tracks(), BKE_tracking_marker_get_exact(), BKE_tracking_plane_marker_delete(), BKE_tracking_plane_marker_get_exact(), BKE_tracking_plane_track_free(), BLI_freelinkN(), C, clip_delete_marker(), CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ListBase::first, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, PLANE_TRACK_VIEW_SELECTED, TRACK_VIEW_SELECTED, and MovieClip::tracking.
Referenced by CLIP_OT_delete_marker().
|
static |
Definition at line 215 of file tracking_ops.c.
References BKE_tracking_get_active_plane_tracks(), BKE_tracking_get_active_tracks(), C, clip_delete_plane_track(), clip_delete_track(), CTX_wm_space_clip(), ED_space_clip_get_clip(), ListBase::first, NA_EDITED, NC_MOVIECLIP, NULL, OPERATOR_FINISHED, PLANE_TRACK_VIEW_SELECTED, TRACK_VIEW_SELECTED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_delete_track().
|
static |
Definition at line 1029 of file tracking_ops.c.
References BKE_tracking_get_active_tracks(), BKE_tracking_marker_ensure(), C, CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ListBase::first, MovieTrackingMarker::flag, MovieClip::id, MARKER_DISABLED, MARKER_OP_DISABLE, MARKER_OP_ENABLE, MARKER_OP_TOGGLE, NA_EVALUATED, NC_MOVIECLIP, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), TRACK_LOCKED, TRACK_VIEW_SELECTED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_disable_markers().
|
static |
Definition at line 1258 of file tracking_ops.c.
References 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(), BKE_tracking_track_get_active(), C, RenderData::cfra, 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, Scene::id, ID_RECALC_FRAME_CHANGE, MARKER_DISABLED, NC_MOVIECLIP, NC_SCENE, ND_DISPLAY, ND_FRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, pos, wmOperator::ptr, r, Scene::r, MovieTracking::reconstruction, RNA_enum_get(), scene, RenderData::sfra, MovieClip::tracking, TRACKING_RECONSTRUCTED, SpaceClip::user, and WM_event_add_notifier().
Referenced by CLIP_OT_frame_jump().
Definition at line 1252 of file tracking_ops.c.
References C, CTX_wm_space_clip(), and NULL.
Referenced by CLIP_OT_frame_jump().
|
static |
Definition at line 739 of file tracking_ops.c.
References data, MEM_freeN, and NULL.
Referenced by slide_marker_modal().
|
static |
Definition at line 1205 of file tracking_ops.c.
References BKE_tracking_dopesheet_tag_update(), BKE_tracking_get_active_plane_tracks(), BKE_tracking_get_active_tracks(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), ListBase::first, NC_MOVIECLIP, ND_DISPLAY, NULL, OPERATOR_FINISHED, PLANE_TRACK_HIDDEN, TRACK_HIDDEN, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_hide_tracks_clear().
|
static |
Definition at line 1134 of file tracking_ops.c.
References MovieTracking::act_plane_track, MovieTracking::act_track, BKE_tracking_dopesheet_tag_update(), BKE_tracking_get_active_plane_tracks(), BKE_tracking_get_active_tracks(), BKE_tracking_plane_track_get_active(), BKE_tracking_track_get_active(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), ListBase::first, MovieTrackingTrack::flag, MovieTrackingPlaneTrack::flag, NC_MOVIECLIP, ND_DISPLAY, NULL, OPERATOR_FINISHED, PLANE_TRACK_HIDDEN, wmOperator::ptr, RNA_boolean_get(), SELECT, TRACK_HIDDEN, TRACK_VIEW_SELECTED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_hide_tracks().
|
static |
Definition at line 1718 of file tracking_ops.c.
References Freestyle::a, count, MovieTrackingTrack::flag, len, MARKER_DISABLED, markers, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, MEM_callocN, MEM_freeN, NULL, blender::meshintersect::prev(), and t.
Referenced by clean_tracks_exec().
|
static |
Definition at line 1352 of file tracking_ops.c.
References BKE_report(), BKE_tracking_get_active_plane_tracks(), BKE_tracking_get_active_tracks(), BKE_tracking_plane_track_has_point_track(), BKE_tracking_plane_track_replace_point_track(), BKE_tracking_track_free(), BKE_tracking_track_get_active(), 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(), C, CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ListBase::first, MovieTrackingTrack::flag, GSET_ITER, MovieClip::id, NA_EDITED, NC_MOVIECLIP, ND_DISPLAY, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, PLANE_TRACK_AUTOKEY, wmOperator::reports, RPT_ERROR, MovieTracking::stabilization, MovieTrackingStabilization::tot_rot_track, MovieTrackingStabilization::tot_track, TRACK_USE_2D_STAB, TRACK_USE_2D_STAB_ROT, TRACK_VIEW_SELECTED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_join_tracks().
|
static |
Definition at line 2198 of file tracking_ops.c.
References C, keyframe_set_flag(), and OPERATOR_FINISHED.
Referenced by CLIP_OT_keyframe_delete().
|
static |
Definition at line 2171 of file tracking_ops.c.
References C, keyframe_set_flag(), and OPERATOR_FINISHED.
Referenced by CLIP_OT_keyframe_insert().
Definition at line 2119 of file tracking_ops.c.
References BKE_tracking_get_active_plane_tracks(), BKE_tracking_get_active_tracks(), BKE_tracking_marker_ensure(), BKE_tracking_marker_get_exact(), 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(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ListBase::first, MovieTrackingMarker::flag, MovieTrackingPlaneMarker::flag, MovieTrackingPlaneMarker::framenr, MARKER_TRACKED, NA_EDITED, NC_MOVIECLIP, NULL, PLANE_MARKER_TRACKED, PLANE_TRACK_VIEW_SELECTED, TRACK_VIEW_SELECTED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by keyframe_delete_exec(), and keyframe_insert_exec().
|
static |
Definition at line 1553 of file tracking_ops.c.
References BKE_tracking_get_active_tracks(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), ListBase::first, NA_EVALUATED, NC_MOVIECLIP, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), TRACK_ACTION_LOCK, TRACK_ACTION_TOGGLE, TRACK_ACTION_UNLOCK, TRACK_LOCKED, TRACK_VIEW_SELECTED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_lock_tracks().
|
static |
Definition at line 464 of file tracking_ops.c.
References add_v2_v2v2(), blender::math::distance_squared(), height, mouse_to_slide_zone_distance_squared(), MovieTrackingMarker::pattern_corners, MovieTrackingMarker::pos, and width.
Referenced by tracking_marker_check_slide().
|
static |
Definition at line 480 of file tracking_ops.c.
References add_v2_v2v2(), height, mouse_to_slide_zone_distance_squared(), MovieTrackingTrack::offset, pos, MovieTrackingMarker::pos, and width.
Referenced by tracking_marker_check_slide().
|
static |
Definition at line 449 of file tracking_ops.c.
References height, mouse_to_slide_zone_distance_squared(), MovieTrackingMarker::pos, MovieTrackingMarker::search_max, MovieTrackingMarker::search_min, and width.
Referenced by tracking_marker_check_slide().
|
static |
Definition at line 439 of file tracking_ops.c.
References height, square_f(), and width.
Referenced by mouse_to_closest_pattern_corner_distance_squared(), mouse_to_offset_distance_squared(), mouse_to_search_corner_distance_squared(), and mouse_to_tilt_distance_squared().
|
static |
Definition at line 491 of file tracking_ops.c.
References height, mouse_to_slide_zone_distance_squared(), MovieTrackingMarker::pattern_corners, MovieTrackingMarker::pos, slide_marker_tilt_slider(), and width.
Referenced by tracking_marker_check_slide().
|
static |
Definition at line 2266 of file tracking_ops.c.
References MovieTracking::act_plane_track, BKE_image_add_from_imbuf(), C, CTX_data_main(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingPlaneTrack::image, IMB_freeImBuf(), NA_EDITED, MovieTrackingPlaneTrack::name, NC_MOVIECLIP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, sample_plane_marker_image_for_operator(), MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_new_image_from_plane_marker().
Definition at line 2249 of file tracking_ops.c.
References MovieTracking::act_plane_track, C, CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_tracking_poll(), NULL, and MovieClip::tracking.
Referenced by CLIP_OT_new_image_from_plane_marker().
|
static |
Definition at line 2082 of file tracking_ops.c.
References BKE_tracking_clipboard_paste_tracks(), BKE_tracking_object_get_active(), BKE_tracking_object_get_tracks(), BKE_tracking_tracks_deselect_all(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), NA_EDITED, NC_MOVIECLIP, OPERATOR_FINISHED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_paste_tracks().
Definition at line 2073 of file tracking_ops.c.
References BKE_tracking_clipboard_has_tracks(), C, and ED_space_clip_tracking_poll().
Referenced by CLIP_OT_paste_tracks().
Definition at line 2225 of file tracking_ops.c.
References MovieTracking::act_plane_track, BKE_tracking_get_plane_imbuf(), BKE_tracking_plane_marker_get(), C, CTX_wm_space_clip(), ED_space_clip_get_buffer(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), IMB_freeImBuf(), NULL, and MovieClip::tracking.
Referenced by new_image_from_plane_marker_exec(), and update_image_from_plane_marker_exec().
|
static |
Definition at line 1093 of file tracking_ops.c.
References BKE_movieclip_get_size(), C, MovieTracking::camera, CTX_wm_space_clip(), ED_space_clip_get_clip(), float(), height, NA_EDITED, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, MovieTrackingCamera::principal, MovieClip::tracking, SpaceClip::user, width, and WM_event_add_notifier().
Referenced by CLIP_OT_set_center_principal().
|
static |
Definition at line 1618 of file tracking_ops.c.
References BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_object_get_active(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieClipUser::framenr, NC_MOVIECLIP, ND_DISPLAY, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SOLVER_KEYFRAME_A, MovieClip::tracking, SpaceClip::user, and WM_event_add_notifier().
Referenced by CLIP_OT_set_solver_keyframe().
Definition at line 501 of file tracking_ops.c.
References blender::math::cross(), cross_v2v2(), fabsf, isect_point_quad_v2(), next, blender::meshintersect::prev(), sub_v2_v2v2(), v1, and v2.
Referenced by slide_marker_modal().
Definition at line 648 of file tracking_ops.c.
References blender::compositor::area(), BKE_tracking_marker_get(), C, 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(), height, wmEvent::mval, NULL, tracking_marker_check_slide(), and width.
Referenced by slide_marker_invoke().
|
static |
Definition at line 679 of file tracking_ops.c.
References MovieTracking::act_plane_track, MovieTracking::act_track, C, clip_tracking_hide_cursor(), CTX_wm_space_clip(), wmOperator::customdata, ED_space_clip_get_clip(), NC_GEOM, ND_SELECT, NULL, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, slide_marker_customdata(), SlideMarkerData::track, MovieClip::tracking, WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by CLIP_OT_slide_marker().
|
static |
Definition at line 747 of file tracking_ops.c.
References Freestyle::a, add_v2_v2(), add_v2_v2v2(), angle(), angle_signed_v2v2(), apply_mouse_slide(), ATTR_FALLTHROUGH, BKE_tracking_marker_clamp_search_position(), BKE_tracking_marker_clamp_search_size(), C, cancel_mouse_slide(), SpaceClip::clip, clip_tracking_show_cursor(), copy_v2_v2(), copy_v2_v2_int(), cosf, CTX_wm_space_clip(), wmOperator::customdata, data, 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(), MARKER_TRACKED, MOUSEMOVE, mul_v2_fl(), wmEvent::mval, NA_EDITED, NC_MOVIECLIP, NC_OBJECT, ND_TRANSFORM, NULL, 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 375 of file tracking_ops.c.
References add_v2_v2(), and slide_marker_tilt_slider_relative().
Referenced by mouse_to_tilt_distance_squared().
|
static |
Definition at line 370 of file tracking_ops.c.
References add_v2_v2v2().
Referenced by slide_marker_modal(), and slide_marker_tilt_slider().
|
static |
Definition at line 1669 of file tracking_ops.c.
References BKE_tracking_get_active_tracks(), BKE_tracking_track_get_active(), C, MovieTrackingTrack::color, copy_v3_v3(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ListBase::first, MovieTrackingTrack::flag, MovieClip::id, NC_MOVIECLIP, ND_DISPLAY, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, TRACK_CUSTOMCOLOR, TRACK_VIEW_SELECTED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_track_copy_color().
struct MovieTrackingTrack* tracking_find_slidable_track_in_proximity | ( | struct bContext * | C, |
const float | co[2] | ||
) |
Definition at line 642 of file tracking_ops.c.
References C, NULL, and tracking_marker_check_slide().
Referenced by select_exec().
|
static |
Definition at line 534 of file tracking_ops.c.
References blender::compositor::area(), BKE_tracking_get_active_tracks(), BKE_tracking_marker_get(), C, CTX_wm_space_clip(), blender::math::distance_squared(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_get_size(), SpaceClip::flag, MovieTrackingMarker::flag, height, LISTBASE_FOREACH, MARKER_DISABLED, mouse_to_closest_pattern_corner_distance_squared(), mouse_to_offset_distance_squared(), mouse_to_search_corner_distance_squared(), mouse_to_tilt_distance_squared(), NULL, SC_SHOW_MARKER_PATTERN, SC_SHOW_MARKER_SEARCH, SLIDE_ACTION_OFFSET, SLIDE_ACTION_POS, SLIDE_ACTION_SIZE, SLIDE_ACTION_TILT_SIZE, TRACK_AREA_PAT, TRACK_AREA_POINT, TRACK_AREA_SEARCH, TRACK_LOCKED, TRACK_VIEW_SELECTED, MovieClip::tracking, and width.
Referenced by slide_marker_customdata(), and tracking_find_slidable_track_in_proximity().
|
static |
Definition at line 1960 of file tracking_ops.c.
References BKE_tracking_object_add(), C, CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), MovieClip::id, ID_RECALC_COPY_ON_WRITE, NA_EDITED, NC_MOVIECLIP, OPERATOR_FINISHED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_tracking_object_new().
|
static |
Definition at line 1995 of file tracking_ops.c.
References BKE_report(), BKE_tracking_object_delete(), BKE_tracking_object_get_active(), C, CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), MovieTrackingObject::flag, MovieClip::id, ID_RECALC_COPY_ON_WRITE, NA_EDITED, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_WARNING, MovieClip::tracking, TRACKING_OBJECT_CAMERA, and WM_event_add_notifier().
Referenced by CLIP_OT_tracking_object_remove().
|
static |
Definition at line 2320 of file tracking_ops.c.
References MovieTracking::act_plane_track, BKE_image_partial_update_mark_full_update(), BKE_image_replace_imbuf(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingPlaneTrack::image, IMB_freeImBuf(), NA_EDITED, NC_IMAGE, NC_MOVIECLIP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, sample_plane_marker_image_for_operator(), MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_update_image_from_plane_marker().
Definition at line 2302 of file tracking_ops.c.
References MovieTracking::act_plane_track, C, CTX_wm_space_clip(), ED_space_clip_get_clip(), ED_space_clip_tracking_poll(), ELEM, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_TYPE_IMAGE, image(), MovieTrackingPlaneTrack::image, NULL, and MovieClip::tracking.
Referenced by CLIP_OT_update_image_from_plane_marker().