|
Blender V5.0
|
#include <algorithm>#include "DNA_movieclip_types.h"#include "DNA_userdef_types.h"#include "BLI_lasso_2d.hh"#include "BLI_listbase.h"#include "BLI_math_base.hh"#include "BLI_math_geom.h"#include "BLI_math_vector.h"#include "BLI_math_vector_types.hh"#include "BLI_rect.h"#include "BKE_context.hh"#include "BKE_tracking.h"#include "WM_api.hh"#include "WM_types.hh"#include "ED_clip.hh"#include "ED_select_utils.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "UI_view2d.hh"#include "DEG_depsgraph.hh"#include "clip_intern.hh"#include "tracking_ops_intern.hh"Go to the source code of this file.
Typedefs | |
| using | int2 |
| using blender::int2 |
Definition at line 601 of file BLI_math_vector_types.hh.
|
static |
Definition at line 725 of file tracking_select.cc.
References BKE_tracking_dopesheet_tag_update(), BKE_tracking_marker_get(), BKE_tracking_object_get_active(), BKE_tracking_plane_marker_get(), BKE_tracking_track_flag_clear(), BKE_tracking_track_flag_set(), BLI_rctf_isect_pt_v(), C, MovieTrackingPlaneMarker::corners, CTX_wm_region(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_clip_point_stable_pos(), ED_clip_select_all(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_marker_is_visible(), i, MovieClip::id, ID_RECALC_SELECT, LISTBASE_FOREACH, NC_GEOM, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, PLANE_TRACK_HIDDEN, MovieTrackingObject::plane_tracks, MovieTrackingMarker::pos, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, SELECT, select, TRACK_AREA_ALL, TRACK_HIDDEN, MovieClip::tracking, MovieTrackingObject::tracks, WM_event_add_notifier(), WM_operator_properties_border_to_rcti(), rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
|
static |
Definition at line 973 of file tracking_select.cc.
References BKE_tracking_dopesheet_tag_update(), BKE_tracking_marker_get(), BKE_tracking_object_get_active(), BKE_tracking_plane_marker_get(), BKE_tracking_track_flag_clear(), BKE_tracking_track_flag_set(), C, MovieTrackingPlaneMarker::corners, CTX_wm_region(), CTX_wm_space_clip(), wmOperator::customdata, DEG_id_tag_update(), ED_clip_point_stable_pos(), ED_clip_select_all(), ED_select_op_modal(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_get_size(), ED_space_clip_get_zoom(), ED_space_clip_marker_is_visible(), i, MovieClip::id, ID_RECALC_SELECT, LISTBASE_FOREACH, marker_inside_ellipse(), NC_GEOM, ND_SELECT, OPERATOR_CANCELLED, OPERATOR_FINISHED, PLANE_TRACK_HIDDEN, MovieTrackingObject::plane_tracks, point_inside_ellipse(), wmOperator::ptr, RNA_enum_get(), RNA_int_get(), SEL_DESELECT, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, SELECT, select, TRACK_AREA_ALL, TRACK_HIDDEN, MovieClip::tracking, MovieTrackingObject::tracks, WM_event_add_notifier(), WM_gesture_is_modal_first(), x, and y.
|
static |
Definition at line 909 of file tracking_select.cc.
References C, CTX_wm_space_clip(), do_lasso_select_marker(), ED_clip_select_all(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_OP_SUB, SEL_OP_USE_PRE_DESELECT, select, and WM_gesture_lasso_path_to_array().
| void CLIP_OT_select | ( | wmOperatorType * | ot | ) |
Definition at line 674 of file tracking_select.cc.
References FLT_MAX, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float_vector(), RNA_def_property_flag(), select_exec(), select_invoke(), and select_poll().
Referenced by clip_operatortypes().
| void CLIP_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 1113 of file tracking_select.cc.
References ED_space_clip_tracking_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, select_all_exec(), and WM_operator_properties_select_all().
Referenced by clip_operatortypes().
| void CLIP_OT_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 804 of file tracking_select.cc.
References box_select_exec(), ED_space_clip_tracking_poll(), OPTYPE_UNDO, ot, WM_gesture_box_invoke(), WM_gesture_box_modal(), WM_operator_properties_gesture_box(), and WM_operator_properties_select_operation_simple().
Referenced by clip_operatortypes().
| void CLIP_OT_select_circle | ( | wmOperatorType * | ot | ) |
Definition at line 1063 of file tracking_select.cc.
References circle_select_exec(), ED_select_circle_get_name(), ED_space_clip_tracking_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, WM_gesture_circle_invoke(), WM_gesture_circle_modal(), WM_operator_properties_gesture_circle(), and WM_operator_properties_select_operation_simple().
Referenced by clip_operatortypes().
| void CLIP_OT_select_grouped | ( | wmOperatorType * | ot | ) |
Definition at line 1194 of file tracking_select.cc.
References ED_space_clip_tracking_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), select_grouped_exec(), and TRACK_CLEAR_REMAINED.
Referenced by clip_operatortypes().
| void CLIP_OT_select_lasso | ( | wmOperatorType * | ot | ) |
Definition at line 929 of file tracking_select.cc.
References clip_lasso_select_exec(), ED_space_clip_tracking_poll(), OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_UNDO, ot, WM_gesture_lasso_cancel(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), WM_operator_properties_gesture_lasso(), and WM_operator_properties_select_operation_simple().
Referenced by clip_operatortypes().
Definition at line 827 of file tracking_select.cc.
References BKE_tracking_dopesheet_tag_update(), BKE_tracking_marker_get(), BKE_tracking_object_get_active(), BKE_tracking_plane_marker_get(), BKE_tracking_track_flag_clear(), BKE_tracking_track_flag_set(), BLI_lasso_boundbox(), BLI_lasso_is_point_inside(), BLI_rcti_isect_pt(), C, MovieTrackingPlaneMarker::corners, CTX_wm_region(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_clip_point_stable_pos__reverse(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_marker_is_visible(), i, MovieClip::id, ID_RECALC_SELECT, LISTBASE_FOREACH, NC_GEOM, ND_SELECT, PLANE_TRACK_HIDDEN, MovieTrackingObject::plane_tracks, MovieTrackingMarker::pos, SELECT, select, TRACK_AREA_ALL, TRACK_HIDDEN, MovieClip::tracking, MovieTrackingObject::tracks, V2D_IS_CLIPPED, and WM_event_add_notifier().
Referenced by clip_lasso_select_exec().
| bool ED_clip_can_select | ( | bContext * | C | ) |
Definition at line 717 of file tracking_select.cc.
References C, and select_poll().
| void ed_tracking_deselect_all_plane_tracks | ( | ListBase * | plane_tracks_base | ) |
Definition at line 539 of file tracking_select.cc.
References LISTBASE_FOREACH, and SELECT.
Referenced by select_exec().
| void ed_tracking_deselect_all_tracks | ( | ListBase * | tracks_base | ) |
Definition at line 532 of file tracking_select.cc.
References BKE_tracking_track_flag_clear(), LISTBASE_FOREACH, SELECT, and TRACK_AREA_ALL.
Referenced by detect_features_exec(), and select_exec().
| TrackingPick ed_tracking_pick_closest | ( | const TrackPickOptions * | options, |
| bContext * | C, | ||
| const float | co[2] ) |
Definition at line 509 of file tracking_select.cc.
References C, ed_tracking_pick_plane_track(), ed_tracking_pick_point_track(), options, TrackingPick::plane_track_pick, plane_track_pick_make_null(), TrackingPick::point_track_pick, point_track_pick_make_null(), and tracking_should_prefer_point_track().
Referenced by select_exec().
| PlaneTrackPick ed_tracking_pick_plane_track | ( | const TrackPickOptions * | options, |
| bContext * | C, | ||
| const float | co[2] ) |
Definition at line 383 of file tracking_select.cc.
References BKE_tracking_object_get_active(), BKE_tracking_plane_marker_get(), C, PlaneTrackPick::corner_index, MovieTrackingPlaneMarker::corners, CTX_wm_space_clip(), PlaneTrackPick::distance_px_squared, ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_get_size(), i, LISTBASE_FOREACH, mouse_to_closest_corners_edge_distance_squared(), mouse_to_plane_slide_zone_distance_squared(), options, PlaneTrackPick::plane_marker, PlaneTrackPick::plane_track, plane_track_pick_make_null(), PLANE_TRACK_VIEW_SELECTED, MovieTrackingObject::plane_tracks, blender::math::square(), MovieClip::tracking, UI_SCALE_FAC, and SpaceClip::zoom.
Referenced by ed_tracking_pick_closest(), and tracking_plane_marker_check_slide().
| PointTrackPick ed_tracking_pick_point_track | ( | const TrackPickOptions * | options, |
| bContext * | C, | ||
| const float | co[2] ) |
Definition at line 194 of file tracking_select.cc.
References MovieTrackingObject::active_track, PointTrackPick::area, PointTrackPick::area_detail, BKE_tracking_marker_get(), BKE_tracking_object_get_active(), C, PointTrackPick::corner_index, CTX_wm_space_clip(), PointTrackPick::distance_px_squared, ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_get_size(), MovieTrackingMarker::flag, SpaceClip::flag, LISTBASE_FOREACH, PointTrackPick::marker, MARKER_DISABLED, mouse_to_closest_pattern_corner_distance_squared(), mouse_to_closest_pattern_edge_distance_squared(), mouse_to_closest_search_edge_distance_squared(), mouse_to_offset_distance_squared(), mouse_to_search_corner_distance_squared(), mouse_to_tilt_distance_squared(), options, point_track_pick_make_null(), SC_HIDE_DISABLED, SC_SHOW_MARKER_PATTERN, SC_SHOW_MARKER_SEARCH, blender::math::square(), PointTrackPick::track, TRACK_AREA_PAT, TRACK_AREA_POINT, TRACK_AREA_SEARCH, TRACK_LOCKED, TRACK_PICK_AREA_DETAIL_EDGE, TRACK_PICK_AREA_DETAIL_OFFSET, TRACK_PICK_AREA_DETAIL_POSITION, TRACK_PICK_AREA_DETAIL_SIZE, TRACK_PICK_AREA_DETAIL_TILT_SIZE, TRACK_VIEW_SELECTED, MovieClip::tracking, MovieTrackingObject::tracks, UI_SCALE_FAC, and SpaceClip::zoom.
Referenced by ed_tracking_pick_closest(), and tracking_marker_check_slide().
| bool ed_tracking_plane_track_pick_can_slide | ( | const PlaneTrackPick * | pick | ) |
Definition at line 446 of file tracking_select.cc.
References BLI_assert, PlaneTrackPick::corner_index, PlaneTrackPick::plane_marker, PlaneTrackPick::plane_track, and PLANE_TRACK_VIEW_SELECTED.
Referenced by ed_tracking_pick_can_slide(), tracking_plane_marker_check_slide(), and tracking_should_prefer_point_track().
| bool ed_tracking_point_track_pick_can_slide | ( | const SpaceClip * | space_clip, |
| const PointTrackPick * | pick ) |
Definition at line 334 of file tracking_select.cc.
References PointTrackPick::area_detail, BLI_assert, MovieTrackingMarker::flag, MovieTrackingTrack::flag, PointTrackPick::marker, MARKER_DISABLED, PointTrackPick::track, TRACK_LOCKED, TRACK_PICK_AREA_DETAIL_EDGE, and TRACK_VIEW_SELECTED.
Referenced by ed_tracking_pick_can_slide(), tracking_marker_check_slide(), and tracking_should_prefer_point_track().
|
static |
Definition at line 966 of file tracking_select.cc.
References point_inside_ellipse(), and MovieTrackingMarker::pos.
Referenced by circle_select_exec().
|
static |
Definition at line 138 of file tracking_select.cc.
References add_v2_v2v2(), copy_v2_v2(), dist_squared_to_line_segment_v2(), FLT_MAX, and i.
Referenced by ed_tracking_pick_plane_track(), mouse_to_closest_pattern_edge_distance_squared(), and mouse_to_closest_search_edge_distance_squared().
|
static |
Definition at line 101 of file tracking_select.cc.
References add_v2_v2v2(), FLT_MAX, i, mouse_to_slide_zone_distance_squared(), MovieTrackingMarker::pattern_corners, and MovieTrackingMarker::pos.
Referenced by ed_tracking_pick_point_track().
|
static |
Definition at line 170 of file tracking_select.cc.
References mouse_to_closest_corners_edge_distance_squared(), MovieTrackingMarker::pattern_corners, and MovieTrackingMarker::pos.
Referenced by ed_tracking_pick_point_track().
|
static |
Definition at line 179 of file tracking_select.cc.
References mouse_to_closest_corners_edge_distance_squared(), MovieTrackingMarker::pos, MovieTrackingMarker::search_max, and MovieTrackingMarker::search_min.
Referenced by ed_tracking_pick_point_track().
|
static |
Definition at line 117 of file tracking_select.cc.
References add_v2_v2v2(), mouse_to_slide_zone_distance_squared(), MovieTrackingTrack::offset, MovieTrackingMarker::pos, and pos.
Referenced by ed_tracking_pick_point_track().
|
static |
Definition at line 373 of file tracking_select.cc.
References square_f().
Referenced by ed_tracking_pick_plane_track().
|
static |
Definition at line 86 of file tracking_select.cc.
References mouse_to_slide_zone_distance_squared(), MovieTrackingMarker::pos, MovieTrackingMarker::search_max, and MovieTrackingMarker::search_min.
Referenced by ed_tracking_pick_point_track().
|
static |
Definition at line 76 of file tracking_select.cc.
References square_f().
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 128 of file tracking_select.cc.
References mouse_to_slide_zone_distance_squared(), MovieTrackingMarker::pattern_corners, MovieTrackingMarker::pos, and slide_marker_tilt_slider().
Referenced by ed_tracking_pick_point_track().
| BLI_INLINE PlaneTrackPick plane_track_pick_make_null | ( | ) |
Definition at line 363 of file tracking_select.cc.
References BLI_INLINE, FLT_MAX, and result.
Referenced by ed_tracking_pick_closest(), ed_tracking_pick_plane_track(), and tracking_pick_make_null().
|
static |
Definition at line 953 of file tracking_select.cc.
Referenced by circle_select_exec(), and marker_inside_ellipse().
| BLI_INLINE PointTrackPick point_track_pick_make_null | ( | ) |
Definition at line 51 of file tracking_select.cc.
References PointTrackPick::area, PointTrackPick::area_detail, BLI_INLINE, PointTrackPick::corner_index, PointTrackPick::distance_px_squared, FLT_MAX, TRACK_AREA_NONE, and TRACK_PICK_AREA_DETAIL_NONE.
Referenced by ed_tracking_pick_closest(), ed_tracking_pick_point_track(), and tracking_pick_make_null().
|
static |
Definition at line 1087 of file tracking_select.cc.
References BKE_tracking_dopesheet_tag_update(), C, CTX_wm_space_clip(), DEG_id_tag_update(), ED_clip_select_all(), ED_clip_view_lock_state_restore_no_jump(), ED_clip_view_lock_state_store(), ED_space_clip_get_clip(), MovieClip::id, ID_RECALC_SELECT, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), MovieClip::tracking, and WM_event_add_notifier().
|
static |
Definition at line 557 of file tracking_select.cc.
References MovieTrackingObject::active_plane_track, MovieTrackingObject::active_track, PointTrackPick::area, BKE_tracking_dopesheet_tag_update(), BKE_tracking_object_get_active(), BKE_tracking_track_deselect(), BKE_tracking_track_select(), C, CTX_wm_space_clip(), DEG_id_tag_update(), ED_clip_view_lock_state_restore_no_jump(), ED_clip_view_lock_state_store(), ED_space_clip_get_clip(), ed_tracking_deselect_all_plane_tracks(), ed_tracking_deselect_all_tracks(), ed_tracking_pick_can_slide(), ed_tracking_pick_closest(), ed_tracking_pick_options_defaults(), MovieTrackingPlaneTrack::flag, MovieClip::id, ID_RECALC_SELECT, NC_GEOM, ND_SELECT, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, options, PlaneTrackPick::plane_track, TrackingPick::plane_track_pick, PLANE_TRACK_VIEW_SELECTED, MovieTrackingObject::plane_tracks, TrackingPick::point_track_pick, wmOperator::ptr, RNA_boolean_get(), RNA_float_get_array(), SELECT, PointTrackPick::track, TRACK_AREA_ALL, TRACK_AREA_POINT, TRACK_AREA_SELECTED, TRACK_VIEW_SELECTED, MovieClip::tracking, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by select_invoke().
|
static |
Definition at line 1132 of file tracking_select.cc.
References MovieTrackingObject::active_track, BKE_tracking_dopesheet_tag_update(), BKE_tracking_marker_get(), BKE_tracking_object_get_active(), C, MovieTrackingTrack::color, CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), equals_v3v3(), MovieTrackingMarker::flag, MovieTrackingTrack::flag, SpaceClip::flag, MovieTrackingMarker::framenr, MovieClip::id, ID_RECALC_SELECT, LISTBASE_FOREACH, MARKER_DISABLED, MARKER_TRACKED, NC_MOVIECLIP, ND_DISPLAY, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SC_SHOW_MARKER_PATTERN, SC_SHOW_MARKER_SEARCH, SELECT, TRACK_CUSTOMCOLOR, TRACK_HAS_BUNDLE, TRACK_LOCKED, MovieClip::tracking, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_select_grouped().
|
static |
Definition at line 662 of file tracking_select.cc.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), and select_exec().
|
static |
Definition at line 546 of file tracking_select.cc.
References C, SpaceClip::clip, CTX_wm_space_clip(), SC_VIEW_CLIP, and SpaceClip::view.
Referenced by CLIP_OT_select(), and ED_clip_can_select().
|
static |
Definition at line 68 of file tracking_select.cc.
References add_v2_v2(), and slide_marker_tilt_slider_relative().
Referenced by mouse_to_tilt_distance_squared().
|
static |
Definition at line 63 of file tracking_select.cc.
References add_v2_v2v2().
Referenced by slide_marker_tilt_slider().
| BLI_INLINE TrackingPick tracking_pick_make_null | ( | ) |
Definition at line 467 of file tracking_select.cc.
References BLI_INLINE, plane_track_pick_make_null(), point_track_pick_make_null(), and result.
|
static |
Definition at line 477 of file tracking_select.cc.
References C, CTX_wm_space_clip(), PlaneTrackPick::distance_px_squared, PointTrackPick::distance_px_squared, ed_tracking_plane_track_pick_can_slide(), ed_tracking_point_track_pick_can_slide(), PlaneTrackPick::plane_track, and PointTrackPick::track.
Referenced by ed_tracking_pick_closest().