Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_context.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 "clip_intern.h"
#include "tracking_ops_intern.h"
Go to the source code of this file.
Classes | |
struct | SlidePlaneMarkerData |
Typedefs | |
typedef struct SlidePlaneMarkerData | SlidePlaneMarkerData |
Functions | |
static int | create_plane_track_tracks_exec (bContext *C, wmOperator *op) |
void | CLIP_OT_create_plane_track (wmOperatorType *ot) |
static float | mouse_to_plane_slide_zone_distance_squared (const float co[2], const float slide_zone[2], int width, int height) |
static MovieTrackingPlaneTrack * | tracking_plane_marker_check_slide (bContext *C, const wmEvent *event, int *r_corner) |
static void * | slide_plane_marker_customdata (bContext *C, const wmEvent *event) |
static int | slide_plane_marker_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
static void | cancel_mouse_slide_plane_marker (SlidePlaneMarkerData *data) |
static void | free_slide_plane_marker_data (SlidePlaneMarkerData *data) |
static void | slide_plane_marker_update_homographies (SpaceClip *sc, SlidePlaneMarkerData *data) |
static int | slide_plane_marker_modal (bContext *C, wmOperator *op, const wmEvent *event) |
void | CLIP_OT_slide_plane_marker (wmOperatorType *ot) |
typedef struct SlidePlaneMarkerData SlidePlaneMarkerData |
|
static |
Definition at line 228 of file tracking_ops_plane.c.
References copy_v2_v2(), and data.
Referenced by slide_plane_marker_modal().
void CLIP_OT_create_plane_track | ( | wmOperatorType * | ot | ) |
Definition at line 66 of file tracking_ops_plane.c.
References create_plane_track_tracks_exec(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
void CLIP_OT_slide_plane_marker | ( | wmOperatorType * | ot | ) |
Definition at line 364 of file tracking_ops_plane.c.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, slide_plane_marker_invoke(), and slide_plane_marker_modal().
Referenced by clip_operatortypes().
|
static |
Definition at line 32 of file tracking_ops_plane.c.
References MovieTracking::act_plane_track, MovieTracking::act_track, BKE_report(), BKE_tracking_get_active_plane_tracks(), BKE_tracking_get_active_tracks(), BKE_tracking_plane_track_add(), BKE_tracking_track_plane_from_existing_motion(), BKE_tracking_tracks_deselect_all(), C, CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), MovieTrackingPlaneTrack::flag, MovieClip::id, ID_RECALC_COPY_ON_WRITE, NA_EDITED, NC_MOVIECLIP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, SELECT, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_create_plane_track().
|
static |
Definition at line 233 of file tracking_ops_plane.c.
References data, and MEM_freeN.
Referenced by slide_plane_marker_modal().
|
static |
Definition at line 96 of file tracking_ops_plane.c.
References height, square_f(), and width.
Referenced by tracking_plane_marker_check_slide().
Definition at line 157 of file tracking_ops_plane.c.
References BKE_tracking_plane_marker_ensure(), C, copy_v2_v2(), SlidePlaneMarkerData::corner, SlidePlaneMarkerData::corner_index, MovieTrackingPlaneMarker::corners, CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), ED_space_clip_get_clip_frame_number(), ED_space_clip_get_size(), SlidePlaneMarkerData::height, height, SlidePlaneMarkerData::launch_event, MEM_callocN, wmEvent::mval, NULL, SlidePlaneMarkerData::old_corner, SlidePlaneMarkerData::plane_marker, SlidePlaneMarkerData::plane_track, SlidePlaneMarkerData::previous_corner, SlidePlaneMarkerData::previous_mval, tracking_plane_marker_check_slide(), wmEvent::type, SlidePlaneMarkerData::width, width, and WM_userdef_event_type_from_keymap_type().
Referenced by slide_plane_marker_invoke().
|
static |
Definition at line 203 of file tracking_ops_plane.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, SlidePlaneMarkerData::plane_track, slide_plane_marker_customdata(), MovieClip::tracking, WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by CLIP_OT_slide_plane_marker().
|
static |
Definition at line 245 of file tracking_ops_plane.c.
References ATTR_FALLTHROUGH, C, cancel_mouse_slide_plane_marker(), clip_tracking_show_cursor(), closest_to_line_v2(), copy_v2_v2(), cross_v2v2(), CTX_wm_space_clip(), wmOperator::customdata, data, DEG_id_tag_update(), ED_space_clip_get_clip(), ELEM, EVT_ESCKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, EVT_RIGHTCTRLKEY, EVT_RIGHTSHIFTKEY, free_slide_plane_marker_data(), MovieClip::id, ID_RECALC_COPY_ON_WRITE, KM_PRESS, KM_RELEASE, LEFTMOUSE, MOUSEMOVE, NA_EDITED, NC_MOVIECLIP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, PLANE_MARKER_TRACKED, RIGHTMOUSE, slide_plane_marker_update_homographies(), sub_v2_v2v2(), wmEvent::type, wmEvent::val, WM_event_add_notifier(), and SpaceClip::zoom.
Referenced by CLIP_OT_slide_plane_marker().
|
static |
Definition at line 238 of file tracking_ops_plane.c.
References BKE_tracking_track_plane_from_existing_motion(), data, and ED_space_clip_get_clip_frame_number().
Referenced by slide_plane_marker_modal().
|
static |
Definition at line 106 of file tracking_ops_plane.c.
References BKE_tracking_get_active_plane_tracks(), BKE_tracking_plane_marker_get(), C, MovieTrackingPlaneMarker::corners, CTX_wm_region(), CTX_wm_space_clip(), blender::math::distance_squared(), ED_clip_mouse_pos(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_get_size(), ListBase::first, height, mouse_to_plane_slide_zone_distance_squared(), wmEvent::mval, NULL, PLANE_TRACK_VIEW_SELECTED, MovieClip::tracking, and width.
Referenced by slide_plane_marker_customdata().