|
Blender V4.3
|
#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 360 of file clip_graph_ops.cc.
References BLI_rctf_isect_pt(), CLIP_VALUE_SOURCE_SPEED_X, CLIP_VALUE_SOURCE_SPEED_Y, ELEM, flag, MovieTrackingMarker::flag, MARKER_GRAPH_SEL_X, and MARKER_GRAPH_SEL_Y.
Referenced by box_select_graph_exec().
|
static |
Definition at line 395 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_get_active(), box_select_cb(), 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, UI_view2d_region_to_view_rctf(), WM_event_add_notifier(), and WM_operator_properties_border_to_rctf().
Referenced by CLIP_OT_graph_select_box().
|
static |
Definition at line 701 of file clip_graph_ops.cc.
References 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 52 of file clip_graph_ops.cc.
References 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 713 of file clip_graph_ops.cc.
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 547 of file clip_graph_ops.cc.
References clip_graph_knots_poll(), delete_curve_exec(), delete_curve_invoke(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_confirm_or_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_graph_delete_knot | ( | wmOperatorType * | ot | ) |
Definition at line 591 of file clip_graph_ops.cc.
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 762 of file clip_graph_ops.cc.
References wmOperatorType::description, ED_space_clip_graph_poll(), wmOperatorType::exec, wmOperatorType::flag, graph_disable_markers_exec(), wmOperatorType::idname, wmOperatorType::name, 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 317 of file clip_graph_ops.cc.
References clip_graph_knots_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, 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 498 of file clip_graph_ops.cc.
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 430 of file clip_graph_ops.cc.
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 677 of file clip_graph_ops.cc.
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 517 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_get_active(), clip_delete_track(), CTX_wm_space_clip(), ED_space_clip_get_clip(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by CLIP_OT_graph_delete_curve(), and delete_curve_invoke().
|
static |
Definition at line 533 of file clip_graph_ops.cc.
References ALERT_ICON_NONE, 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 566 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_get_active(), clip_delete_marker(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingMarker::flag, MARKER_GRAPH_SEL, MovieTrackingTrack::markers, and OPERATOR_FINISHED.
Referenced by CLIP_OT_graph_delete_knot().
Definition at line 691 of file clip_graph_ops.cc.
References BLI_rctf_size_x(), View2D::cur, float, rctf::xmax, and rctf::xmin.
Referenced by center_current_frame_exec(), and graph_region_draw().
|
static |
Definition at line 41 of file clip_graph_ops.cc.
References 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 136 of file clip_graph_ops.cc.
References clip_graph_value_visible(), copy_v2_v2(), float, len_squared_v2(), and MouseSelectUserData::mouse_co.
Referenced by mouse_select_knot().
|
static |
Definition at line 99 of file clip_graph_ops.cc.
References clip_graph_value_visible(), copy_v2_v2(), dist_squared_to_line_segment_v2(), and float.
Referenced by mouse_select_curve().
|
static |
Definition at line 128 of file clip_graph_ops.cc.
References MouseSelectUserData::has_prev.
Referenced by mouse_select_curve().
|
static |
Definition at line 727 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_get_active(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), MovieTrackingMarker::flag, MovieTrackingTrack::flag, MARKER_DISABLED, MARKER_GRAPH_SEL, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, NA_EVALUATED, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), TRACK_LOCKED, and WM_event_add_notifier().
Referenced by CLIP_OT_graph_disable_markers().
|
static |
Definition at line 452 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_get_active(), 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, and WM_event_add_notifier().
Referenced by CLIP_OT_graph_select_all_markers().
Definition at line 277 of file clip_graph_ops.cc.
References mouse_select_curve(), mouse_select_knot(), NC_GEOM, ND_SELECT, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by select_exec().
Definition at line 230 of file clip_graph_ops.cc.
References MovieTrackingObject::active_track, BKE_tracking_object_get_active(), BKE_tracking_track_select(), 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, and MovieTrackingObject::tracks.
Referenced by mouse_select().
|
static |
Definition at line 162 of file clip_graph_ops.cc.
References 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 171 of file clip_graph_ops.cc.
References abs(), MovieTrackingObject::active_track, BKE_tracking_object_get_active(), 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(), UI_view2d_view_to_region_clip(), and MouseSelectUserData::value_source.
Referenced by mouse_select().
|
static |
Definition at line 296 of file clip_graph_ops.cc.
References 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 306 of file clip_graph_ops.cc.
References CTX_wm_region(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), select_exec(), and UI_view2d_region_to_view().
Referenced by CLIP_OT_graph_select().
|
static |
Definition at line 66 of file clip_graph_ops.cc.
References 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 612 of file clip_graph_ops.cc.
References min, and ViewAllUserData::min.
Referenced by view_all_exec().
|
static |
Definition at line 630 of file clip_graph_ops.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), clip_graph_tracking_values_iterate(), CTX_data_scene(), CTX_wm_region(), CTX_wm_space_clip(), View2D::cur, ED_region_tag_redraw(), SpaceClip::flag, float, FLT_MAX, ViewAllUserData::max, ViewAllUserData::min, OPERATOR_FINISHED, SC_SHOW_GRAPH_HIDDEN, SC_SHOW_GRAPH_SEL_ONLY, view_all_cb(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by CLIP_OT_graph_view_all().