Blender
V3.3
|
#include "DNA_scene_types.h"
#include "BLI_math.h"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "BKE_context.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 "ED_select_utils.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "UI_view2d.h"
#include "clip_intern.h"
Go to the source code of this file.
Classes | |
struct | SelectUserData |
struct | MouseSelectUserData |
struct | BoxSelectuserData |
struct | ViewAllUserData |
Typedefs | |
typedef struct BoxSelectuserData | BoxSelectuserData |
typedef struct BoxSelectuserData BoxSelectuserData |
|
static |
Definition at line 355 of file clip_graph_ops.c.
References BLI_rctf_isect_pt(), CLIP_VALUE_SOURCE_SPEED_X, CLIP_VALUE_SOURCE_SPEED_Y, data, ELEM, MovieTrackingMarker::flag, MARKER_GRAPH_SEL, MARKER_GRAPH_SEL_X, and MARKER_GRAPH_SEL_Y.
Referenced by box_select_graph_exec().
|
static |
Definition at line 390 of file clip_graph_ops.c.
References BKE_tracking_track_get_active(), box_select_cb(), C, BoxSelectuserData::changed, clip_graph_tracking_values_iterate_track(), CTX_wm_region(), CTX_wm_space_clip(), ED_space_clip_get_clip(), BoxSelectuserData::extend, NC_GEOM, ND_SELECT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, BoxSelectuserData::rect, RNA_boolean_get(), BoxSelectuserData::select, MovieClip::tracking, UI_view2d_region_to_view_rctf(), ARegion::v2d, WM_event_add_notifier(), and WM_operator_properties_border_to_rctf().
Referenced by CLIP_OT_graph_select_box().
|
static |
Definition at line 682 of file clip_graph_ops.c.
References C, CTX_data_scene(), CTX_wm_region(), ED_clip_graph_center_current_frame(), ED_region_tag_redraw(), OPERATOR_FINISHED, and scene.
Referenced by CLIP_OT_graph_center_current_frame().
Definition at line 46 of file clip_graph_ops.c.
References C, CTX_wm_space_clip(), ED_space_clip_graph_poll(), SpaceClip::flag, SC_SHOW_GRAPH_TRACKS_ERROR, and SC_SHOW_GRAPH_TRACKS_MOTION.
Referenced by CLIP_OT_graph_delete_curve(), CLIP_OT_graph_delete_knot(), CLIP_OT_graph_select(), CLIP_OT_graph_select_all_markers(), and CLIP_OT_graph_select_box().
void CLIP_OT_graph_center_current_frame | ( | wmOperatorType * | ot | ) |
Definition at line 694 of file clip_graph_ops.c.
References center_current_frame_exec(), wmOperatorType::description, ED_space_clip_graph_poll(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
void CLIP_OT_graph_delete_curve | ( | wmOperatorType * | ot | ) |
Definition at line 529 of file clip_graph_ops.c.
References clip_graph_knots_poll(), delete_curve_exec(), wmOperatorType::description, 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_graph_delete_knot | ( | wmOperatorType * | ot | ) |
Definition at line 572 of file clip_graph_ops.c.
References clip_graph_knots_poll(), delete_knot_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
void CLIP_OT_graph_disable_markers | ( | wmOperatorType * | ot | ) |
Definition at line 745 of file clip_graph_ops.c.
References wmOperatorType::description, ED_space_clip_graph_poll(), wmOperatorType::exec, wmOperatorType::flag, graph_disable_markers_exec(), 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_graph_select | ( | wmOperatorType * | ot | ) |
Definition at line 312 of file clip_graph_ops.c.
References clip_graph_knots_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float_vector(), RNA_def_property_flag(), select_exec(), select_invoke(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
void CLIP_OT_graph_select_all_markers | ( | wmOperatorType * | ot | ) |
Definition at line 494 of file clip_graph_ops.c.
References clip_graph_knots_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, graph_select_all_markers_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_select_all().
Referenced by clip_operatortypes().
void CLIP_OT_graph_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 424 of file clip_graph_ops.c.
References box_select_graph_exec(), clip_graph_knots_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_gesture_box_select().
Referenced by clip_operatortypes().
void CLIP_OT_graph_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 658 of file clip_graph_ops.c.
References wmOperatorType::description, ED_space_clip_graph_poll(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view_all_exec().
Referenced by clip_operatortypes().
|
static |
Definition at line 513 of file clip_graph_ops.c.
References BKE_tracking_track_get_active(), C, clip_delete_track(), CTX_wm_space_clip(), ED_space_clip_get_clip(), OPERATOR_CANCELLED, OPERATOR_FINISHED, and MovieClip::tracking.
Referenced by CLIP_OT_graph_delete_curve().
|
static |
Definition at line 547 of file clip_graph_ops.c.
References Freestyle::a, BKE_tracking_track_get_active(), C, clip_delete_marker(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingMarker::flag, MARKER_GRAPH_SEL, MovieTrackingTrack::markers, OPERATOR_FINISHED, and MovieClip::tracking.
Referenced by CLIP_OT_graph_delete_knot().
Definition at line 672 of file clip_graph_ops.c.
References BLI_rctf_size_x(), RenderData::cfra, View2D::cur, float(), Scene::r, scene, ARegion::v2d, rctf::xmax, and rctf::xmin.
Referenced by center_current_frame_exec(), and graph_region_draw().
Definition at line 35 of file clip_graph_ops.c.
References C, CTX_wm_space_clip(), ED_space_clip_tracking_poll(), SC_VIEW_GRAPH, and SpaceClip::view.
Referenced by clip_graph_knots_poll(), CLIP_OT_graph_center_current_frame(), CLIP_OT_graph_disable_markers(), and CLIP_OT_graph_view_all().
|
static |
Definition at line 130 of file clip_graph_ops.c.
References clip_graph_value_visible(), copy_v2_v2(), data, len_squared_v2(), and NULL.
Referenced by mouse_select_knot().
|
static |
Definition at line 93 of file clip_graph_ops.c.
References clip_graph_value_visible(), copy_v2_v2(), data, dist_squared_to_line_segment_v2(), and NULL.
Referenced by mouse_select_curve().
|
static |
Definition at line 122 of file clip_graph_ops.c.
References data.
Referenced by mouse_select_curve().
|
static |
Definition at line 708 of file clip_graph_ops.c.
References Freestyle::a, BKE_tracking_track_get_active(), C, CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), MovieTrackingMarker::flag, MovieTrackingTrack::flag, MovieClip::id, MARKER_DISABLED, MARKER_GRAPH_SEL, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, NA_EVALUATED, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), TRACK_LOCKED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_graph_disable_markers().
|
static |
Definition at line 446 of file clip_graph_ops.c.
References Freestyle::a, BKE_tracking_track_get_active(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingMarker::flag, MARKER_GRAPH_SEL, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, NC_GEOM, ND_SELECT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_graph_select_all_markers().
Definition at line 272 of file clip_graph_ops.c.
References C, mouse_select_curve(), mouse_select_knot(), NC_GEOM, ND_SELECT, NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by select_exec().
Definition at line 223 of file clip_graph_ops.c.
References MovieTracking::act_track, BKE_tracking_object_get_active(), BKE_tracking_object_get_tracks(), BKE_tracking_track_get_active(), BKE_tracking_track_select(), C, clip_graph_tracking_iterate(), clip_graph_tracking_values_iterate(), CTX_wm_space_clip(), ED_space_clip_get_clip(), find_nearest_tracking_segment_cb(), find_nearest_tracking_segment_end_cb(), SpaceClip::flag, mouse_select_init_data(), NULL, SC_SHOW_GRAPH_HIDDEN, SC_SHOW_GRAPH_SEL_ONLY, SEL_DESELECT, toggle_selection_cb(), MouseSelectUserData::track, TRACK_AREA_ALL, and MovieClip::tracking.
Referenced by mouse_select().
|
static |
Definition at line 156 of file clip_graph_ops.c.
References C, copy_v2_v2(), CTX_wm_space_clip(), MouseSelectUserData::min_dist_sq, MouseSelectUserData::mouse_co, and MouseSelectUserData::sc.
Referenced by mouse_select_curve(), and mouse_select_knot().
Definition at line 165 of file clip_graph_ops.c.
References blender::math::abs(), BKE_tracking_track_get_active(), C, clip_graph_tracking_iterate(), clip_graph_tracking_values_iterate_track(), CLIP_VALUE_SOURCE_SPEED_X, CLIP_VALUE_SOURCE_SPEED_Y, CTX_wm_region(), CTX_wm_space_clip(), ED_space_clip_get_clip(), find_nearest_tracking_knot_cb(), SpaceClip::flag, MovieTrackingMarker::flag, MouseSelectUserData::marker, MARKER_GRAPH_SEL_X, MARKER_GRAPH_SEL_Y, MouseSelectUserData::min_co, mouse_select_init_data(), NULL, SC_SHOW_GRAPH_HIDDEN, SC_SHOW_GRAPH_SEL_ONLY, SEL_DESELECT, toggle_selection_cb(), MovieClip::tracking, UI_view2d_view_to_region_clip(), ARegion::v2d, MouseSelectUserData::value_source, x2, and y1.
Referenced by mouse_select().
|
static |
Definition at line 291 of file clip_graph_ops.c.
References C, mouse_select(), wmOperator::ptr, RNA_boolean_get(), and RNA_float_get_array().
Referenced by CLIP_OT_graph_select(), and select_invoke().
|
static |
Definition at line 301 of file clip_graph_ops.c.
References C, CTX_wm_region(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), select_exec(), UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by CLIP_OT_graph_select().
|
static |
Definition at line 60 of file clip_graph_ops.c.
References data, MovieTrackingMarker::flag, MARKER_GRAPH_SEL, SEL_DESELECT, SEL_INVERT, and SEL_SELECT.
Referenced by mouse_select_curve(), and mouse_select_knot().
|
static |
Definition at line 593 of file clip_graph_ops.c.
Referenced by view_all_exec().
|
static |
Definition at line 611 of file clip_graph_ops.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), C, clip_graph_tracking_values_iterate(), CTX_data_scene(), CTX_wm_region(), CTX_wm_space_clip(), View2D::cur, ED_region_tag_redraw(), RenderData::efra, SpaceClip::flag, float(), ViewAllUserData::max, ViewAllUserData::min, NULL, OPERATOR_FINISHED, Scene::r, SC_SHOW_GRAPH_HIDDEN, SC_SHOW_GRAPH_SEL_ONLY, scene, RenderData::sfra, ARegion::v2d, view_all_cb(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by CLIP_OT_graph_view_all().