Blender V2.61 - r43446
|
Go to the source code of this file.
Functions | |
int | ED_space_clip_poll (struct bContext *C) |
void | ED_space_clip_set (struct bContext *C, struct SpaceClip *sc, struct MovieClip *clip) |
struct MovieClip * | ED_space_clip (struct SpaceClip *sc) |
void | ED_space_clip_size (struct SpaceClip *sc, int *width, int *height) |
void | ED_space_clip_zoom (struct SpaceClip *sc, ARegion *ar, float *zoomx, float *zoomy) |
void | ED_space_clip_aspect (struct SpaceClip *sc, float *aspx, float *aspy) |
struct ImBuf * | ED_space_clip_get_buffer (struct SpaceClip *sc) |
struct ImBuf * | ED_space_clip_get_stable_buffer (struct SpaceClip *sc, float loc[2], float *scale, float *angle) |
void | ED_clip_update_frame (const struct Main *mainp, int cfra) |
int | ED_clip_view_selection (struct SpaceClip *sc, struct ARegion *ar, int fit) |
void | ED_clip_point_undistorted_pos (SpaceClip *sc, float co[2], float nco[2]) |
void | ED_clip_point_stable_pos (struct bContext *C, float x, float y, float *xr, float *yr) |
void | ED_clip_mouse_pos (struct bContext *C, struct wmEvent *event, float co[2]) |
void | ED_operatormacros_clip (void) |
Definition in file ED_clip.h.
Definition at line 308 of file clip_editor.c.
References ED_clip_point_stable_pos(), and wmEvent::mval.
Referenced by add_marker_invoke(), select_invoke(), slide_marker_customdata(), and view_zoom_inout_invoke().
void ED_clip_point_stable_pos | ( | struct bContext * | C, |
float | x, | ||
float | y, | ||
float * | xr, | ||
float * | yr | ||
) |
Definition at line 274 of file clip_editor.c.
References BKE_tracking_apply_intrinsics(), MovieTracking::camera, CTX_wm_region(), CTX_wm_space_clip(), ED_space_clip(), ED_space_clip_size(), ED_space_clip_zoom(), invert_m4_m4(), MCLIP_PROXY_RENDER_UNDISTORT, mul_v3_m4v3(), MovieTrackingCamera::pixel_aspect, MovieClipUser::render_flag, SpaceClip::stabmat, MovieClip::tracking, UI_view2d_to_region_no_clip(), SpaceClip::user, and ARegion::v2d.
Referenced by border_select_exec(), circle_select_exec(), and ED_clip_mouse_pos().
void ED_clip_point_undistorted_pos | ( | SpaceClip * | sc, |
float | co[2], | ||
float | nco[2] | ||
) |
Definition at line 254 of file clip_editor.c.
References BKE_tracking_invert_intrinsics(), MovieTracking::camera, copy_v2_v2(), ED_space_clip(), ED_space_clip_size(), MCLIP_PROXY_RENDER_UNDISTORT, MovieTrackingCamera::pixel_aspect, MovieClipUser::render_flag, MovieClip::tracking, and SpaceClip::user.
Referenced by draw_marker_areas(), draw_marker_outline(), draw_track_path(), draw_tracking_tracks(), and selected_boundbox().
void ED_clip_update_frame | ( | const struct Main * | mainp, |
int | cfra | ||
) |
Referenced by ED_update_for_newframe().
Definition at line 214 of file clip_editor.c.
References clip_view_center_to_point(), ED_space_clip_aspect(), ED_space_clip_size(), max, min, MIN2, power_of_2(), selected_boundbox(), simple_enum_gen::w, ARegion::winrct, rcti::xmax, rcti::xmin, rcti::ymax, rcti::ymin, and SpaceClip::zoom.
Referenced by clip_main_area_draw(), and view_selected_exec().
void ED_operatormacros_clip | ( | void | ) |
Definition at line 987 of file clip_ops.c.
References wmOperatorType::description, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorTypeMacro::ptr, RNA_boolean_set(), RNA_struct_idprops_unset(), TRUE, WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacetypes_init().
Definition at line 79 of file clip_editor.c.
References SpaceClip::clip.
Referenced by add_marker(), add_marker_exec(), border_select_exec(), circle_select_exec(), clean_tracks_exec(), clean_tracks_invoke(), clear_solution_exec(), clear_track_path_exec(), clip_draw_graph(), clip_draw_grease_pencil(), clip_draw_main(), clip_graph_tracking_iterate(), clip_graph_tracking_values_iterate(), clip_graph_tracking_values_iterate_track(), clip_main_area_draw(), clip_rebuild_proxy_exec(), clip_stabilization_tag_refresh(), copy_tracks_exec(), count_selected_bundles(), createTransTrackingData(), delete_curve_exec(), delete_knot_exec(), delete_marker_exec(), delete_track_exec(), detect_features_exec(), disable_markers_exec(), do_set_scale(), draw_frame_curves(), draw_movieclip_buffer(), draw_movieclip_notes(), draw_tracks_curves(), ED_clip_point_stable_pos(), ED_clip_point_undistorted_pos(), ED_space_clip_aspect(), frame_jump_exec(), get_orientation_object(), gpencil_data_get_pointers(), hide_tracks_clear_exec(), hide_tracks_exec(), join_tracks_exec(), lock_tracks_exec(), mouse_select(), mouse_select_curve(), mouse_select_knot(), movieclip_main_area_set_view2d(), open_invoke(), paste_tracks_exec(), recalcData_clip(), select_all_exec(), select_groped_exec(), select_invoke(), selected_boundbox(), set_axis_exec(), set_center_principal_exec(), set_floor_exec(), set_orientation_poll(), set_origin_exec(), set_scale_invoke(), set_solution_scale_invoke(), set_solution_scale_poll(), slide_marker_customdata(), slide_marker_invoke(), solve_camera_initjob(), solve_camera_invoke(), space_clip_frame_poll(), special_aftertrans_update(), stabilize_2d_add_exec(), stabilize_2d_remove_exec(), stabilize_2d_select_exec(), stabilize_2d_set_rotation_exec(), track_copy_color_exec(), track_markers_exec(), track_markers_initjob(), track_markers_invoke(), tracking_object_new_exec(), tracking_object_remove_exec(), and viewRedrawForce().
void ED_space_clip_aspect | ( | struct SpaceClip * | sc, |
float * | aspx, | ||
float * | aspy | ||
) |
Definition at line 137 of file clip_editor.c.
References BKE_movieclip_aspect(), and ED_space_clip().
Referenced by clip_view_center_to_point(), ED_clip_view_selection(), and view_all_exec().
Definition at line 84 of file clip_editor.c.
References BKE_movieclip_get_postprocessed_ibuf(), SpaceClip::clip, IMB_freeImBuf(), NULL, SpaceClip::postproc_flag, ImBuf::rect, ImBuf::rect_float, and SpaceClip::user.
Referenced by clip_draw_grease_pencil(), and clip_draw_main().
struct ImBuf* ED_space_clip_get_stable_buffer | ( | struct SpaceClip * | sc, |
float | loc[2], | ||
float * | scale, | ||
float * | angle | ||
) | [read] |
Definition at line 101 of file clip_editor.c.
References BKE_movieclip_get_stable_ibuf(), SpaceClip::clip, IMB_freeImBuf(), NULL, SpaceClip::postproc_flag, ImBuf::rect, ImBuf::rect_float, and SpaceClip::user.
Referenced by clip_draw_main(), and clip_main_area_draw().
int ED_space_clip_poll | ( | struct bContext * | C | ) |
Definition at line 58 of file clip_editor.c.
References SpaceClip::clip, and CTX_wm_space_clip().
Referenced by change_frame_poll(), CLIP_OT_clean_tracks(), CLIP_OT_clear_solution(), CLIP_OT_clear_track_path(), CLIP_OT_copy_tracks(), CLIP_OT_delete_marker(), CLIP_OT_delete_track(), CLIP_OT_disable_markers(), CLIP_OT_graph_delete_curve(), CLIP_OT_graph_delete_knot(), CLIP_OT_graph_select(), CLIP_OT_hide_tracks(), CLIP_OT_hide_tracks_clear(), CLIP_OT_lock_tracks(), CLIP_OT_mode_set(), CLIP_OT_rebuild_proxy(), CLIP_OT_select(), CLIP_OT_select_all(), CLIP_OT_select_border(), CLIP_OT_select_circle(), CLIP_OT_set_center_principal(), CLIP_OT_solve_camera(), CLIP_OT_stabilize_2d_add(), CLIP_OT_stabilize_2d_remove(), CLIP_OT_stabilize_2d_select(), CLIP_OT_stabilize_2d_set_rotation(), CLIP_OT_track_copy_color(), CLIP_OT_tracking_object_new(), CLIP_OT_tracking_object_remove(), CLIP_OT_view_all(), CLIP_OT_view_pan(), CLIP_OT_view_selected(), CLIP_OT_view_zoom(), CLIP_OT_view_zoom_in(), CLIP_OT_view_zoom_out(), CLIP_OT_view_zoom_ratio(), and paste_tracks_poll().
Definition at line 68 of file clip_editor.c.
References SpaceClip::clip, MovieClip::id, NA_SELECTED, NC_MOVIECLIP, ID::us, and WM_event_add_notifier().
Referenced by open_exec().
void ED_space_clip_size | ( | struct SpaceClip * | sc, |
int * | width, | ||
int * | height | ||
) |
Definition at line 118 of file clip_editor.c.
References BKE_movieclip_get_size(), SpaceClip::clip, and SpaceClip::user.
Referenced by add_marker(), add_marker_exec(), circle_select_exec(), clip_draw_main(), clip_view_center_to_point(), ED_clip_point_stable_pos(), ED_clip_point_undistorted_pos(), ED_clip_view_selection(), ED_space_clip_zoom(), movieclip_main_area_set_view2d(), sclip_zoom_set(), selected_boundbox(), slide_marker_customdata(), track_mouse_area(), view_all_exec(), and view_zoom_inout_invoke().
Definition at line 127 of file clip_editor.c.
References View2D::cur, ED_space_clip_size(), ARegion::v2d, ARegion::winrct, rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by circle_select_exec(), clip_draw_main(), and ED_clip_point_stable_pos().