|
Blender V5.0
|
#include <algorithm>#include "DNA_scene_types.h"#include "BLI_math_geom.h"#include "BLI_math_vector.h"#include "BLI_rect.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_context.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 "ED_select_utils.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "UI_view2d.hh"#include "clip_intern.hh"Go to the source code of this file.
Classes | |
| struct | SelectUserData |
| struct | MouseSelectUserData |
| struct | BoxSelectuserData |
| struct | ViewAllUserData |
|
static |
Definition at line 362 of file clip_graph_ops.cc.
References BLI_rctf_isect_pt(), CLIP_VALUE_SOURCE_SPEED_X, CLIP_VALUE_SOURCE_SPEED_Y, data, ELEM, flag, MovieTrackingMarker::flag, MARKER_GRAPH_SEL, MARKER_GRAPH_SEL_X, and MARKER_GRAPH_SEL_Y.
Referenced by box_select_graph_exec().
|
static |
Definition at line 397 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_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, 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 698 of file clip_graph_ops.cc.
References C, CTX_data_scene(), CTX_wm_region(), ED_clip_graph_center_current_frame(), ED_region_tag_redraw(), and OPERATOR_FINISHED.
Referenced by CLIP_OT_graph_center_current_frame().
|
static |
Definition at line 54 of file clip_graph_ops.cc.
References C, CTX_wm_space_clip(), SpaceClip::flag, SC_SHOW_GRAPH_TRACKS_ERROR, SC_SHOW_GRAPH_TRACKS_MOTION, and space_clip_graph_poll().
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 710 of file clip_graph_ops.cc.
References center_current_frame_exec(), ot, and space_clip_graph_poll().
Referenced by clip_operatortypes().
| void CLIP_OT_graph_delete_curve | ( | wmOperatorType * | ot | ) |
Definition at line 549 of file clip_graph_ops.cc.
References clip_graph_knots_poll(), delete_curve_exec(), delete_curve_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and WM_operator_properties_confirm_or_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_graph_delete_knot | ( | wmOperatorType * | ot | ) |
Definition at line 593 of file clip_graph_ops.cc.
References clip_graph_knots_poll(), delete_knot_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by clip_operatortypes().
| void CLIP_OT_graph_disable_markers | ( | wmOperatorType * | ot | ) |
Definition at line 759 of file clip_graph_ops.cc.
References graph_disable_markers_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), and space_clip_graph_poll().
Referenced by clip_operatortypes().
| void CLIP_OT_graph_select | ( | wmOperatorType * | ot | ) |
Definition at line 319 of file clip_graph_ops.cc.
References clip_graph_knots_poll(), FLT_MAX, OPTYPE_UNDO, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float_vector(), RNA_def_property_flag(), select_exec(), and select_invoke().
Referenced by clip_operatortypes().
| void CLIP_OT_graph_select_all_markers | ( | wmOperatorType * | ot | ) |
Definition at line 500 of file clip_graph_ops.cc.
References clip_graph_knots_poll(), graph_select_all_markers_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and WM_operator_properties_select_all().
Referenced by clip_operatortypes().
| void CLIP_OT_graph_select_box | ( | wmOperatorType * | ot | ) |
Definition at line 432 of file clip_graph_ops.cc.
References box_select_graph_exec(), clip_graph_knots_poll(), OPTYPE_UNDO, ot, 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 674 of file clip_graph_ops.cc.
References ot, space_clip_graph_poll(), and view_all_exec().
Referenced by clip_operatortypes().
|
static |
Definition at line 519 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_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(), and delete_curve_invoke().
|
static |
Definition at line 535 of file clip_graph_ops.cc.
References ALERT_ICON_NONE, C, delete_curve_exec(), IFACE_, wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by CLIP_OT_graph_delete_curve().
|
static |
Definition at line 568 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_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 688 of file clip_graph_ops.cc.
References BLI_rctf_size_x(), RenderData::cfra, View2D::cur, float, Scene::r, ARegion::v2d, rctf::xmax, and rctf::xmin.
Referenced by center_current_frame_exec(), and graph_region_draw().
|
static |
Definition at line 138 of file clip_graph_ops.cc.
References clip_graph_value_visible(), copy_v2_v2(), data, float, and len_squared_v2().
Referenced by mouse_select_knot().
|
static |
Definition at line 101 of file clip_graph_ops.cc.
References clip_graph_value_visible(), copy_v2_v2(), data, dist_squared_to_line_segment_v2(), and float.
Referenced by mouse_select_curve().
|
static |
Definition at line 130 of file clip_graph_ops.cc.
References data.
Referenced by mouse_select_curve().
|
static |
Definition at line 724 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_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 454 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_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, 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().
|
static |
Definition at line 279 of file clip_graph_ops.cc.
References C, mouse_select_curve(), mouse_select_knot(), NC_GEOM, ND_SELECT, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by select_exec().
Definition at line 232 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_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(), SC_SHOW_GRAPH_HIDDEN, SC_SHOW_GRAPH_SEL_ONLY, SEL_DESELECT, toggle_selection_cb(), MouseSelectUserData::track, TRACK_AREA_ALL, MovieClip::tracking, and MovieTrackingObject::tracks.
Referenced by mouse_select().
|
static |
Definition at line 164 of file clip_graph_ops.cc.
References C, copy_v2_v2(), CTX_wm_space_clip(), FLT_MAX, MouseSelectUserData::min_dist_sq, MouseSelectUserData::mouse_co, and MouseSelectUserData::sc.
Referenced by mouse_select_curve(), and mouse_select_knot().
Definition at line 173 of file clip_graph_ops.cc.
References abs, MovieTrackingObject::active_track, BKE_tracking_object_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(), MovieTrackingMarker::flag, SpaceClip::flag, MouseSelectUserData::marker, MARKER_GRAPH_SEL_X, MARKER_GRAPH_SEL_Y, MouseSelectUserData::min_co, mouse_select_init_data(), SC_SHOW_GRAPH_HIDDEN, SC_SHOW_GRAPH_SEL_ONLY, SEL_DESELECT, toggle_selection_cb(), MovieClip::tracking, UI_view2d_view_to_region_clip(), ARegion::v2d, and MouseSelectUserData::value_source.
Referenced by mouse_select().
|
static |
Definition at line 298 of file clip_graph_ops.cc.
References C, mouse_select(), wmOperator::ptr, RNA_boolean_get(), and RNA_float_get_array().
Referenced by select_invoke().
|
static |
Definition at line 308 of file clip_graph_ops.cc.
References C, CTX_wm_region(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), select_exec(), UI_view2d_region_to_view(), and ARegion::v2d.
|
static |
Definition at line 43 of file clip_graph_ops.cc.
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 68 of file clip_graph_ops.cc.
References data, MovieTrackingMarker::flag, MARKER_GRAPH_SEL, SEL_DESELECT, SEL_INVERT, and SEL_SELECT.
Referenced by mouse_select_curve(), and mouse_select_knot().
|
static |
|
static |
Definition at line 627 of file clip_graph_ops.cc.
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, FLT_MAX, ViewAllUserData::max, ViewAllUserData::min, OPERATOR_FINISHED, Scene::r, SC_SHOW_GRAPH_HIDDEN, SC_SHOW_GRAPH_SEL_ONLY, RenderData::sfra, ARegion::v2d, view_all_cb(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by CLIP_OT_graph_view_all(), and CLIP_OT_view_all().