Blender V5.0
clip_intern.hh File Reference

Go to the source code of this file.

Macros

#define CHANNEL_FIRST   (-UI_TIME_SCRUB_MARGIN_Y - CHANNEL_HEIGHT_HALF - CHANNEL_SKIP)
#define CHANNEL_HEIGHT   (0.8f * U.widget_unit)
#define CHANNEL_HEIGHT_HALF   (0.4f * U.widget_unit)
#define CHANNEL_SKIP   (0.1f * U.widget_unit)
#define CHANNEL_STEP   (CHANNEL_HEIGHT + CHANNEL_SKIP)
#define CHANNEL_PAD   4
#define EXTRA_SCROLL_PAD   100.0f
#define STRIP_HEIGHT_HALF   (0.25f * UI_UNIT_Y)

Typedefs

using ClipTrackValueCallback
using ClipTrackValueSegmentStartCallback
using ClipTrackValueSegmentEndCallback

Enumerations

enum  eClipCurveValueSource { CLIP_VALUE_SOURCE_SPEED_X , CLIP_VALUE_SOURCE_SPEED_Y , CLIP_VALUE_SOURCE_REPROJECTION_ERROR }

Functions

void ED_clip_buttons_register (ARegionType *art)
void clip_draw_dopesheet_main (SpaceClip *sc, ARegion *region, Scene *scene)
void clip_draw_dopesheet_channels (const bContext *C, ARegion *region)
void CLIP_OT_dopesheet_select_channel (wmOperatorType *ot)
void CLIP_OT_dopesheet_view_all (wmOperatorType *ot)
void clip_draw_main (const bContext *C, SpaceClip *sc, ARegion *region)
void clip_draw_grease_pencil (bContext *C, int onlyv2d)
void clip_draw_cache_and_notes (const bContext *C, SpaceClip *sc, ARegion *region)
void clip_start_prefetch_job (const bContext *C)
void clip_draw_graph (SpaceClip *sc, ARegion *region, Scene *scene)
void ED_clip_graph_center_current_frame (Scene *scene, ARegion *region)
void CLIP_OT_graph_select (wmOperatorType *ot)
void CLIP_OT_graph_select_box (wmOperatorType *ot)
void CLIP_OT_graph_select_all_markers (wmOperatorType *ot)
void CLIP_OT_graph_delete_curve (wmOperatorType *ot)
void CLIP_OT_graph_delete_knot (wmOperatorType *ot)
void CLIP_OT_graph_view_all (wmOperatorType *ot)
void CLIP_OT_graph_center_current_frame (wmOperatorType *ot)
void CLIP_OT_graph_disable_markers (wmOperatorType *ot)
void CLIP_OT_open (wmOperatorType *ot)
void CLIP_OT_reload (wmOperatorType *ot)
void CLIP_OT_view_pan (wmOperatorType *ot)
void CLIP_OT_view_zoom (wmOperatorType *ot)
void CLIP_OT_view_zoom_in (wmOperatorType *ot)
void CLIP_OT_view_zoom_out (wmOperatorType *ot)
void CLIP_OT_view_zoom_ratio (wmOperatorType *ot)
void CLIP_OT_view_all (wmOperatorType *ot)
void CLIP_OT_view_selected (wmOperatorType *ot)
void CLIP_OT_view_center_cursor (wmOperatorType *ot)
void CLIP_OT_change_frame (wmOperatorType *ot)
void CLIP_OT_rebuild_proxy (wmOperatorType *ot)
void CLIP_OT_mode_set (wmOperatorType *ot)
void CLIP_OT_prefetch (wmOperatorType *ot)
void CLIP_OT_set_scene_frames (wmOperatorType *ot)
void CLIP_OT_cursor_set (wmOperatorType *ot)
void CLIP_OT_lock_selection_toggle (wmOperatorType *ot)
bool clip_graph_value_visible (SpaceClip *sc, eClipCurveValueSource value_source)
void clip_graph_tracking_values_iterate_track (SpaceClip *sc, MovieTrackingTrack *track, void *userdata, ClipTrackValueCallback func, ClipTrackValueSegmentStartCallback segment_start, ClipTrackValueSegmentEndCallback segment_end)
void clip_graph_tracking_values_iterate (SpaceClip *sc, bool selected_only, bool include_hidden, void *userdata, ClipTrackValueCallback func, ClipTrackValueSegmentStartCallback segment_start, ClipTrackValueSegmentEndCallback segment_end)
void clip_graph_tracking_iterate (SpaceClip *sc, bool selected_only, bool include_hidden, void *userdata, void(*func)(void *userdata, MovieTrackingMarker *marker))
void clip_delete_track (bContext *C, MovieClip *clip, MovieTrackingTrack *track)
void clip_delete_marker (bContext *C, MovieClip *clip, MovieTrackingTrack *track, MovieTrackingMarker *marker)
void clip_delete_plane_track (bContext *C, MovieClip *clip, MovieTrackingPlaneTrack *plane_track)
void clip_view_offset_for_center_to_point (SpaceClip *sc, float x, float y, float *r_offset_x, float *r_offset_y)
void clip_view_center_to_point (SpaceClip *sc, float x, float y)
bool clip_view_calculate_view_selection (const bContext *C, bool fit, float *r_offset_x, float *r_offset_y, float *r_zoom)
bool clip_view_has_locked_selection (const bContext *C)
MovieTrackingTracktracking_find_slidable_track_in_proximity (bContext *C, const float co[2])
void CLIP_OT_add_marker (wmOperatorType *ot)
void CLIP_OT_add_marker_at_click (wmOperatorType *ot)
void CLIP_OT_delete_track (wmOperatorType *ot)
void CLIP_OT_delete_marker (wmOperatorType *ot)
void CLIP_OT_track_markers (wmOperatorType *ot)
void CLIP_OT_refine_markers (wmOperatorType *ot)
void CLIP_OT_solve_camera (wmOperatorType *ot)
void CLIP_OT_clear_solution (wmOperatorType *ot)
void CLIP_OT_clear_track_path (wmOperatorType *ot)
void CLIP_OT_join_tracks (wmOperatorType *ot)
void CLIP_OT_average_tracks (wmOperatorType *ot)
void CLIP_OT_disable_markers (wmOperatorType *ot)
void CLIP_OT_hide_tracks (wmOperatorType *ot)
void CLIP_OT_hide_tracks_clear (wmOperatorType *ot)
void CLIP_OT_lock_tracks (wmOperatorType *ot)
void CLIP_OT_set_solver_keyframe (wmOperatorType *ot)
void CLIP_OT_set_origin (wmOperatorType *ot)
void CLIP_OT_set_plane (wmOperatorType *ot)
void CLIP_OT_set_axis (wmOperatorType *ot)
void CLIP_OT_set_scale (wmOperatorType *ot)
void CLIP_OT_set_solution_scale (wmOperatorType *ot)
void CLIP_OT_apply_solution_scale (wmOperatorType *ot)
void CLIP_OT_slide_marker (wmOperatorType *ot)
void CLIP_OT_frame_jump (wmOperatorType *ot)
void CLIP_OT_track_copy_color (wmOperatorType *ot)
void CLIP_OT_detect_features (wmOperatorType *ot)
void CLIP_OT_stabilize_2d_add (wmOperatorType *ot)
void CLIP_OT_stabilize_2d_remove (wmOperatorType *ot)
void CLIP_OT_stabilize_2d_select (wmOperatorType *ot)
void CLIP_OT_stabilize_2d_rotation_add (wmOperatorType *ot)
void CLIP_OT_stabilize_2d_rotation_remove (wmOperatorType *ot)
void CLIP_OT_stabilize_2d_rotation_select (wmOperatorType *ot)
void CLIP_OT_clean_tracks (wmOperatorType *ot)
void CLIP_OT_tracking_object_new (wmOperatorType *ot)
void CLIP_OT_tracking_object_remove (wmOperatorType *ot)
void CLIP_OT_copy_tracks (wmOperatorType *ot)
void CLIP_OT_paste_tracks (wmOperatorType *ot)
void CLIP_OT_create_plane_track (wmOperatorType *ot)
void CLIP_OT_slide_plane_marker (wmOperatorType *ot)
void CLIP_OT_keyframe_insert (wmOperatorType *ot)
void CLIP_OT_keyframe_delete (wmOperatorType *ot)
void CLIP_OT_new_image_from_plane_marker (wmOperatorType *ot)
void CLIP_OT_update_image_from_plane_marker (wmOperatorType *ot)
void CLIP_OT_select (wmOperatorType *ot)
void CLIP_OT_select_all (wmOperatorType *ot)
void CLIP_OT_select_box (wmOperatorType *ot)
void CLIP_OT_select_lasso (wmOperatorType *ot)
void CLIP_OT_select_circle (wmOperatorType *ot)
void CLIP_OT_select_grouped (wmOperatorType *ot)
Inlined utilities.
BLI_INLINE bool ED_space_clip_marker_is_visible (const SpaceClip *space_clip, const MovieTrackingObject *tracking_object, const MovieTrackingTrack *track, const MovieTrackingMarker *marker)

Macro Definition Documentation

◆ CHANNEL_FIRST

◆ CHANNEL_HEIGHT

#define CHANNEL_HEIGHT   (0.8f * U.widget_unit)

Definition at line 26 of file clip_intern.hh.

Referenced by clip_draw_dopesheet_channels(), and clip_draw_dopesheet_main().

◆ CHANNEL_HEIGHT_HALF

#define CHANNEL_HEIGHT_HALF   (0.4f * U.widget_unit)

◆ CHANNEL_PAD

#define CHANNEL_PAD   4

Definition at line 31 of file clip_intern.hh.

Referenced by clip_draw_dopesheet_channels().

◆ CHANNEL_SKIP

#define CHANNEL_SKIP   (0.1f * U.widget_unit)

Definition at line 28 of file clip_intern.hh.

◆ CHANNEL_STEP

#define CHANNEL_STEP   (CHANNEL_HEIGHT + CHANNEL_SKIP)

◆ EXTRA_SCROLL_PAD

#define EXTRA_SCROLL_PAD   100.0f

Definition at line 34 of file clip_intern.hh.

◆ STRIP_HEIGHT_HALF

#define STRIP_HEIGHT_HALF   (0.25f * UI_UNIT_Y)

Definition at line 36 of file clip_intern.hh.

Referenced by clip_draw_dopesheet_main().

Typedef Documentation

◆ ClipTrackValueCallback

Initial value:
void (*)(void *userdata,
eClipCurveValueSource value_source,
int scene_framenr,
float val)
eClipCurveValueSource

Definition at line 120 of file clip_intern.hh.

◆ ClipTrackValueSegmentEndCallback

Initial value:
void (*)(void *userdata,
eClipCurveValueSource value_source)

Definition at line 132 of file clip_intern.hh.

◆ ClipTrackValueSegmentStartCallback

Initial value:
void (*)(void *userdata,
eClipCurveValueSource value_source,
bool is_point)

Definition at line 127 of file clip_intern.hh.

Enumeration Type Documentation

◆ eClipCurveValueSource

Enumerator
CLIP_VALUE_SOURCE_SPEED_X 
CLIP_VALUE_SOURCE_SPEED_Y 
CLIP_VALUE_SOURCE_REPROJECTION_ERROR 

Definition at line 114 of file clip_intern.hh.

Function Documentation

◆ clip_delete_marker()

◆ clip_delete_plane_track()

◆ clip_delete_track()

◆ clip_draw_cache_and_notes()

void clip_draw_cache_and_notes ( const bContext * C,
SpaceClip * sc,
ARegion * region )

◆ clip_draw_dopesheet_channels()

◆ clip_draw_dopesheet_main()

◆ clip_draw_graph()

◆ clip_draw_grease_pencil()

◆ clip_draw_main()

◆ clip_graph_tracking_iterate()

void clip_graph_tracking_iterate ( SpaceClip * sc,
bool selected_only,
bool include_hidden,
void * userdata,
void(* func )(void *userdata, MovieTrackingMarker *marker) )

◆ clip_graph_tracking_values_iterate()

◆ clip_graph_tracking_values_iterate_track()

◆ clip_graph_value_visible()

◆ CLIP_OT_add_marker()

◆ CLIP_OT_add_marker_at_click()

◆ CLIP_OT_apply_solution_scale()

◆ CLIP_OT_average_tracks()

◆ CLIP_OT_change_frame()

◆ CLIP_OT_clean_tracks()

◆ CLIP_OT_clear_solution()

void CLIP_OT_clear_solution ( wmOperatorType * ot)

◆ CLIP_OT_clear_track_path()

◆ CLIP_OT_copy_tracks()

void CLIP_OT_copy_tracks ( wmOperatorType * ot)

Definition at line 1920 of file tracking_ops.cc.

References copy_tracks_exec(), ED_space_clip_tracking_poll(), OPTYPE_REGISTER, and ot.

Referenced by clip_operatortypes().

◆ CLIP_OT_create_plane_track()

void CLIP_OT_create_plane_track ( wmOperatorType * ot)

◆ CLIP_OT_cursor_set()

◆ CLIP_OT_delete_marker()

◆ CLIP_OT_delete_track()

◆ CLIP_OT_detect_features()

◆ CLIP_OT_disable_markers()

◆ CLIP_OT_dopesheet_select_channel()

◆ CLIP_OT_dopesheet_view_all()

void CLIP_OT_dopesheet_view_all ( wmOperatorType * ot)

◆ CLIP_OT_frame_jump()

void CLIP_OT_frame_jump ( wmOperatorType * ot)

◆ CLIP_OT_graph_center_current_frame()

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().

◆ CLIP_OT_graph_delete_curve()

◆ CLIP_OT_graph_delete_knot()

void CLIP_OT_graph_delete_knot ( wmOperatorType * ot)

◆ CLIP_OT_graph_disable_markers()

void CLIP_OT_graph_disable_markers ( wmOperatorType * ot)

◆ CLIP_OT_graph_select()

◆ CLIP_OT_graph_select_all_markers()

void CLIP_OT_graph_select_all_markers ( wmOperatorType * ot)

◆ CLIP_OT_graph_select_box()

◆ CLIP_OT_graph_view_all()

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().

◆ CLIP_OT_hide_tracks()

void CLIP_OT_hide_tracks ( wmOperatorType * ot)

◆ CLIP_OT_hide_tracks_clear()

void CLIP_OT_hide_tracks_clear ( wmOperatorType * ot)

◆ CLIP_OT_join_tracks()

void CLIP_OT_join_tracks ( wmOperatorType * ot)

◆ CLIP_OT_keyframe_delete()

void CLIP_OT_keyframe_delete ( wmOperatorType * ot)

◆ CLIP_OT_keyframe_insert()

void CLIP_OT_keyframe_insert ( wmOperatorType * ot)

◆ CLIP_OT_lock_selection_toggle()

void CLIP_OT_lock_selection_toggle ( wmOperatorType * ot)

Definition at line 1865 of file clip_ops.cc.

References ED_space_clip_poll(), lock_selection_toggle_exec(), OPTYPE_LOCK_BYPASS, and ot.

Referenced by clip_operatortypes().

◆ CLIP_OT_lock_tracks()

◆ CLIP_OT_mode_set()

◆ CLIP_OT_new_image_from_plane_marker()

void CLIP_OT_new_image_from_plane_marker ( wmOperatorType * ot)

◆ CLIP_OT_open()

◆ CLIP_OT_paste_tracks()

void CLIP_OT_paste_tracks ( wmOperatorType * ot)

Definition at line 1965 of file tracking_ops.cc.

References OPTYPE_REGISTER, OPTYPE_UNDO, ot, paste_tracks_exec(), and paste_tracks_poll().

Referenced by clip_operatortypes().

◆ CLIP_OT_prefetch()

void CLIP_OT_prefetch ( wmOperatorType * ot)

◆ CLIP_OT_rebuild_proxy()

void CLIP_OT_rebuild_proxy ( wmOperatorType * ot)

Definition at line 1572 of file clip_ops.cc.

References clip_rebuild_proxy_exec(), ED_space_clip_poll(), OPTYPE_REGISTER, and ot.

Referenced by clip_operatortypes().

◆ CLIP_OT_refine_markers()

void CLIP_OT_refine_markers ( wmOperatorType * ot)

◆ CLIP_OT_reload()

void CLIP_OT_reload ( wmOperatorType * ot)

Definition at line 350 of file clip_ops.cc.

References ot, and reload_exec().

Referenced by clip_operatortypes().

◆ CLIP_OT_select()

◆ CLIP_OT_select_all()

◆ CLIP_OT_select_box()

◆ CLIP_OT_select_circle()

◆ CLIP_OT_select_grouped()

void CLIP_OT_select_grouped ( wmOperatorType * ot)

◆ CLIP_OT_select_lasso()

◆ CLIP_OT_set_axis()

void CLIP_OT_set_axis ( wmOperatorType * ot)

◆ CLIP_OT_set_origin()

void CLIP_OT_set_origin ( wmOperatorType * ot)

◆ CLIP_OT_set_plane()

void CLIP_OT_set_plane ( wmOperatorType * ot)

◆ CLIP_OT_set_scale()

void CLIP_OT_set_scale ( wmOperatorType * ot)

◆ CLIP_OT_set_scene_frames()

void CLIP_OT_set_scene_frames ( wmOperatorType * ot)

Definition at line 1763 of file clip_ops.cc.

References clip_set_scene_frames_exec(), ED_space_clip_view_clip_poll(), and ot.

Referenced by clip_operatortypes().

◆ CLIP_OT_set_solution_scale()

◆ CLIP_OT_set_solver_keyframe()

◆ CLIP_OT_slide_marker()

◆ CLIP_OT_slide_plane_marker()

◆ CLIP_OT_solve_camera()

◆ CLIP_OT_stabilize_2d_add()

void CLIP_OT_stabilize_2d_add ( wmOperatorType * ot)

◆ CLIP_OT_stabilize_2d_remove()

void CLIP_OT_stabilize_2d_remove ( wmOperatorType * ot)

◆ CLIP_OT_stabilize_2d_rotation_add()

void CLIP_OT_stabilize_2d_rotation_add ( wmOperatorType * ot)

◆ CLIP_OT_stabilize_2d_rotation_remove()

void CLIP_OT_stabilize_2d_rotation_remove ( wmOperatorType * ot)

◆ CLIP_OT_stabilize_2d_rotation_select()

void CLIP_OT_stabilize_2d_rotation_select ( wmOperatorType * ot)

◆ CLIP_OT_stabilize_2d_select()

void CLIP_OT_stabilize_2d_select ( wmOperatorType * ot)

◆ CLIP_OT_track_copy_color()

void CLIP_OT_track_copy_color ( wmOperatorType * ot)

◆ CLIP_OT_track_markers()

◆ CLIP_OT_tracking_object_new()

void CLIP_OT_tracking_object_new ( wmOperatorType * ot)

◆ CLIP_OT_tracking_object_remove()

void CLIP_OT_tracking_object_remove ( wmOperatorType * ot)

◆ CLIP_OT_update_image_from_plane_marker()

void CLIP_OT_update_image_from_plane_marker ( wmOperatorType * ot)

◆ CLIP_OT_view_all()

◆ CLIP_OT_view_center_cursor()

void CLIP_OT_view_center_cursor ( wmOperatorType * ot)

Definition at line 1012 of file clip_ops.cc.

References ED_space_clip_maskedit_poll(), ot, and view_center_cursor_exec().

Referenced by clip_operatortypes().

◆ CLIP_OT_view_pan()

◆ CLIP_OT_view_selected()

void CLIP_OT_view_selected ( wmOperatorType * ot)

Definition at line 1044 of file clip_ops.cc.

References ED_space_clip_view_clip_poll(), OPTYPE_LOCK_BYPASS, ot, and view_selected_exec().

Referenced by clip_operatortypes().

◆ CLIP_OT_view_zoom()

◆ CLIP_OT_view_zoom_in()

◆ CLIP_OT_view_zoom_out()

◆ CLIP_OT_view_zoom_ratio()

void CLIP_OT_view_zoom_ratio ( wmOperatorType * ot)

◆ clip_start_prefetch_job()

◆ clip_view_calculate_view_selection()

◆ clip_view_center_to_point()

void clip_view_center_to_point ( SpaceClip * sc,
float x,
float y )

◆ clip_view_has_locked_selection()

bool clip_view_has_locked_selection ( const bContext * C)

Returns truth if lock-to-selection is enabled and possible. Locking to selection is not possible if there is no selection.

Definition at line 589 of file clip_utils.cc.

References C, CTX_wm_space_clip(), SpaceClip::flag, mask_has_selection(), SpaceClip::mode, SC_LOCK_SELECTION, SC_MODE_TRACKING, and tracking_has_selection().

Referenced by sclip_zoom_set(), view_pan_exec(), and view_pan_init().

◆ clip_view_offset_for_center_to_point()

void clip_view_offset_for_center_to_point ( SpaceClip * sc,
float x,
float y,
float * r_offset_x,
float * r_offset_y )

Calculate space clip offset to be centered at the given point.

Definition at line 384 of file clip_utils.cc.

References ED_space_clip_get_aspect(), ED_space_clip_get_size(), x, and y.

Referenced by clip_view_calculate_view_selection(), and clip_view_center_to_point().

◆ ED_clip_buttons_register()

◆ ED_clip_graph_center_current_frame()

void ED_clip_graph_center_current_frame ( Scene * scene,
ARegion * region )

◆ ED_space_clip_marker_is_visible()

◆ tracking_find_slidable_track_in_proximity()

MovieTrackingTrack * tracking_find_slidable_track_in_proximity ( bContext * C,
const float co[2] )

Definition at line 571 of file tracking_ops.cc.

References C, and tracking_marker_check_slide().