Blender V2.61 - r43446
|
#include "DNA_object_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_utildefines.h"
#include "BLI_math.h"
#include "BLI_listbase.h"
#include "BKE_context.h"
#include "BKE_movieclip.h"
#include "BKE_tracking.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_screen.h"
#include "ED_clip.h"
#include "UI_interface.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.
Definition in file clip_graph_ops.c.
void CLIP_OT_graph_delete_curve | ( | wmOperatorType * | ot | ) |
Definition at line 306 of file clip_graph_ops.c.
References delete_curve_exec(), wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and WM_operator_confirm().
Referenced by clip_operatortypes().
void CLIP_OT_graph_delete_knot | ( | wmOperatorType * | ot | ) |
Definition at line 348 of file clip_graph_ops.c.
References delete_knot_exec(), wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by clip_operatortypes().
void CLIP_OT_graph_select | ( | wmOperatorType * | ot | ) |
Definition at line 268 of file clip_graph_ops.c.
References wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float_vector(), select_exec(), select_invoke(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
static int delete_curve_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 292 of file clip_graph_ops.c.
References BKE_tracking_active_track(), BKE_tracking_get_tracks(), clip_delete_track(), CTX_wm_space_clip(), ED_space_clip(), OPERATOR_FINISHED, and MovieClip::tracking.
Referenced by CLIP_OT_graph_delete_curve().
static int delete_knot_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 324 of file clip_graph_ops.c.
References BKE_tracking_active_track(), BKE_tracking_get_tracks(), clip_delete_marker(), CTX_wm_space_clip(), ED_space_clip(), MovieTrackingMarker::flag, MARKER_GRAPH_SEL, MovieTrackingTrack::markers, OPERATOR_FINISHED, and MovieClip::tracking.
Referenced by CLIP_OT_graph_delete_knot().
static void find_nearest_tracking_knot_cb | ( | void * | userdata, |
MovieTrackingTrack * | track, | ||
MovieTrackingMarker * | marker, | ||
int | coord, | ||
float | val | ||
) | [static] |
Definition at line 125 of file clip_graph_ops.c.
References co, MouseSelectUserData::coord, copy_v2_v2(), simple_enum_gen::d, data, MovieTrackingMarker::framenr, MouseSelectUserData::marker, MouseSelectUserData::min_co, MouseSelectUserData::min_dist, MouseSelectUserData::mouse_co, NULL, and MouseSelectUserData::track.
Referenced by mouse_select_knot().
static void find_nearest_tracking_segment_cb | ( | void * | userdata, |
MovieTrackingTrack * | track, | ||
MovieTrackingMarker * | marker, | ||
int | coord, | ||
float | val | ||
) | [static] |
Definition at line 97 of file clip_graph_ops.c.
References co, MouseSelectUserData::coord, copy_v2_v2(), simple_enum_gen::d, data, dist_to_line_segment_v2(), MovieTrackingMarker::framenr, MouseSelectUserData::has_prev, MouseSelectUserData::min_co, MouseSelectUserData::min_dist, MouseSelectUserData::mouse_co, NULL, MouseSelectUserData::prev_co, and MouseSelectUserData::track.
Referenced by mouse_select_curve().
void find_nearest_tracking_segment_end_cb | ( | void * | userdata | ) |
Definition at line 118 of file clip_graph_ops.c.
References data, and MouseSelectUserData::has_prev.
Referenced by mouse_select_curve().
static int mouse_select | ( | bContext * | C, |
float | co[2], | ||
int | extend | ||
) | [static] |
Definition at line 229 of file clip_graph_ops.c.
References mouse_select_curve(), mouse_select_knot(), NC_GEOM, ND_SELECT, NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by select_exec().
static int mouse_select_curve | ( | bContext * | C, |
float | co[2], | ||
int | extend | ||
) | [static] |
Definition at line 190 of file clip_graph_ops.c.
References MovieTracking::act_track, BKE_tracking_active_track(), BKE_tracking_get_marker(), clip_graph_tracking_iterate(), clip_graph_tracking_values_iterate(), clip_view_center_to_point(), CTX_wm_space_clip(), ED_space_clip(), find_nearest_tracking_segment_cb(), find_nearest_tracking_segment_end_cb(), MovieClipUser::framenr, mouse_select_init_data(), NULL, MovieTrackingMarker::pos, SEL_DESELECT, toggle_selection_cb(), MouseSelectUserData::track, MovieClip::tracking, and SpaceClip::user.
Referenced by mouse_select().
static void mouse_select_init_data | ( | MouseSelectUserData * | userdata, |
float * | co | ||
) | [static] |
Definition at line 144 of file clip_graph_ops.c.
References copy_v2_v2(), FLT_MAX, MouseSelectUserData::min_dist, and MouseSelectUserData::mouse_co.
Referenced by mouse_select_curve(), and mouse_select_knot().
static int mouse_select_knot | ( | bContext * | C, |
float | co[2], | ||
int | extend | ||
) | [static] |
Definition at line 151 of file clip_graph_ops.c.
References abs(), BKE_tracking_active_track(), clip_graph_tracking_iterate(), clip_graph_tracking_values_iterate_track(), CTX_wm_region(), CTX_wm_space_clip(), ED_space_clip(), find_nearest_tracking_knot_cb(), MovieTrackingMarker::flag, MouseSelectUserData::marker, MARKER_GRAPH_SEL, MouseSelectUserData::min_co, mouse_select_init_data(), NULL, SEL_DESELECT, toggle_selection_cb(), MovieClip::tracking, UI_view2d_view_to_region(), and ARegion::v2d.
Referenced by mouse_select().
static int select_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 247 of file clip_graph_ops.c.
References co, mouse_select(), wmOperator::ptr, RNA_boolean_get(), and RNA_float_get_array().
Referenced by CLIP_OT_graph_select(), and select_invoke().
static int select_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 257 of file clip_graph_ops.c.
References co, 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 void toggle_selection_cb | ( | void * | userdata, |
MovieTrackingMarker * | marker | ||
) | [static] |
Definition at line 65 of file clip_graph_ops.c.
References SelectUserData::action, data, MovieTrackingMarker::flag, MARKER_GRAPH_SEL, SEL_DESELECT, SEL_INVERT, and SEL_SELECT.
Referenced by mouse_select_curve(), and mouse_select_knot().