163 SpaceClip *sc = MEM_new<SpaceClip>(__func__);
208 return reinterpret_cast<SpaceLink *
>(sc);
238 SpaceClip *scn = MEM_new<SpaceClip>(
"clip_duplicate", *
reinterpret_cast<SpaceClip *
>(sl));
245 return reinterpret_cast<SpaceLink *
>(scn);
364#ifdef WITH_INPUT_NDOF
564 region_preview->v2d.cur = region_preview->v2d.tot;
606 float x1, y1,
w, h, aspx, aspy;
607 int width, height, winx, winy;
682 float aspx, aspy, zoomx, zoomy,
x,
y;
684 bool show_cursor =
false;
694 ImBuf *tmpibuf =
nullptr;
731 int mask_width, mask_height;
1047 switch (wmn->
data) {
1235 std::unique_ptr<SpaceType> st = std::make_unique<SpaceType>();
1256 st->blend_read_after_liblink =
nullptr;
#define BKE_LIB_FOREACHID_PROCESS_IDSUPER(data_, id_super_, cb_flag_)
#define STRNCPY_UTF8(dst, src)
#define REGION_DRAW_POST_VIEW
#define REGION_DRAW_PRE_VIEW
Read Blender memory allocation and freeing.
#define UI_SIDEBAR_PANEL_WIDTH
#define UI_COMPACT_PANEL_WIDTH
#define UI_TIME_SCRUB_MARGIN_Y
#define ND_GPENCIL_EDITMODE
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
IDRemapperApplyResult apply(ID **r_id_ptr, IDRemapperApplyOptions options, ID *id_self=nullptr) const
bool contains_mappings_for_any(IDTypeFilter filter) const
void frame_buffer_clear(int colorid)
void view2d_view_to_region_fl(const View2D *v2d, float x, float y, float *r_region_x, float *r_region_y) ATTR_NONNULL()
void view2d_view_ortho(const View2D *v2d)
void view2d_view_restore(const bContext *C)
ARegionType * ED_area_type_hud(int space_type)
void view2d_scrollers_draw(View2D *v2d, const rcti *mask_custom)
void VIEW2D_GGT_navigate_impl(wmGizmoGroupType *gzgt, const char *idname)
void view2d_draw_scale_y(const ARegion *region, const View2D *v2d, const rcti *rect, int colorid, int base)
void view2d_draw_lines_x_frames(const View2D *v2d, const Scene *scene, bool display_seconds, bool show_fractions, bool draw_minor_lines)
void CLIP_OT_add_marker(wmOperatorType *ot)
void CLIP_OT_create_plane_track(wmOperatorType *ot)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
void CLIP_OT_graph_select_all_markers(wmOperatorType *ot)
const char * WM_drag_get_single_path(const wmDrag *drag)
static bool clip_drop_poll(bContext *, wmDrag *drag, const wmEvent *)
void ED_space_clip_get_size(const SpaceClip *sc, int *r_width, int *r_height)
void ED_image_draw_cursor(ARegion *region, const float cursor[2])
void ED_time_scrub_draw_current_frame(const ARegion *region, const Scene *scene, bool display_seconds, bool display_stalk, bool clamp_playhead)
static void clip_preview_region_draw(const bContext *C, ARegion *region)
void CLIP_OT_stabilize_2d_add(wmOperatorType *ot)
void CLIP_OT_change_frame(wmOperatorType *ot)
void CLIP_OT_keyframe_insert(wmOperatorType *ot)
ScrArea * CTX_wm_area(const bContext *C)
void ED_time_scrub_draw(const ARegion *region, const Scene *scene, bool display_seconds, bool discrete_frames, const int base)
wmDropBox * WM_dropbox_add(ListBaseT< wmDropBox > *lb, const char *idname, bool(*poll)(bContext *C, wmDrag *drag, const wmEvent *event), void(*copy)(bContext *C, wmDrag *drag, wmDropBox *drop), void(*cancel)(Main *bmain, wmDrag *drag, wmDropBox *drop), WMDropboxTooltipFunc tooltip)
void ED_region_draw_cb_draw(const bContext *C, ARegion *region, int type)
void clip_draw_graph(SpaceClip *sc, ARegion *region, Scene *scene)
static bool clip_channels_region_poll(const RegionPollParams *params)
void CLIP_OT_tracking_object_remove(wmOperatorType *ot)
void CLIP_OT_keyframe_delete(wmOperatorType *ot)
void CLIP_OT_average_tracks(wmOperatorType *ot)
static void clip_header_region_init(wmWindowManager *, ARegion *region)
void CTX_data_dir_set(bContextDataResult *result, const char **dir)
static SpaceLink * clip_create(const ScrArea *, const Scene *)
static void clip_listener(const wmSpaceTypeListenerParams *params)
@ V2D_VIEWSYNC_AREA_VERTICAL
void CLIP_OT_track_markers(wmOperatorType *ot)
static bool clip_properties_region_poll(const RegionPollParams *params)
void CLIP_OT_join_tracks(wmOperatorType *ot)
void CLIP_OT_stabilize_2d_rotation_add(wmOperatorType *ot)
void BLI_addhead(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static void clip_tools_region_draw(const bContext *C, ARegion *region)
void CLIP_OT_clear_solution(wmOperatorType *ot)
void CLIP_OT_solve_camera(wmOperatorType *ot)
static void clip_free(SpaceLink *sl)
static void clip_preview_region_init(wmWindowManager *wm, ARegion *region)
static void clip_header_region_listener(const wmRegionListenerParams *params)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
void CLIP_OT_copy_tracks(wmOperatorType *ot)
void ANIM_draw_cfra(const bContext *C, View2D *v2d, short flag)
void CLIP_OT_lock_tracks(wmOperatorType *ot)
SpaceClip * CTX_wm_space_clip(const bContext *C)
void CLIP_OT_rebuild_proxy(wmOperatorType *ot)
void CLIP_OT_select_grouped(wmOperatorType *ot)
void CLIP_OT_stabilize_2d_select(wmOperatorType *ot)
void CLIP_OT_hide_tracks(wmOperatorType *ot)
void CLIP_OT_view_selected(wmOperatorType *ot)
void CLIP_OT_slide_marker(wmOperatorType *ot)
static void clip_init(wmWindowManager *, ScrArea *area)
void CLIP_OT_set_plane(wmOperatorType *ot)
@ TH_TIME_SCRUB_BACKGROUND
static void clip_header_region_draw(const bContext *C, ARegion *region)
static void clip_foreach_id(SpaceLink *space_link, LibraryForeachIDData *data)
void CLIP_OT_tracking_object_new(wmOperatorType *ot)
bool CTX_data_equals(const char *member, const char *str)
static void CLIP_GGT_navigate(wmGizmoGroupType *gzgt)
void ED_region_tag_redraw(ARegion *region)
void CLIP_OT_frame_jump(wmOperatorType *ot)
LibraryForeachIDFlag BKE_lib_query_foreachid_process_flags_get(const LibraryForeachIDData *data)
void CLIP_OT_slide_plane_marker(wmOperatorType *ot)
void CLIP_OT_mode_set(wmOperatorType *ot)
void CLIP_OT_view_zoom_in(wmOperatorType *ot)
void GPU_matrix_mul(const float m[4][4])
void CLIP_OT_select_lasso(wmOperatorType *ot)
void GPU_matrix_scale_2f(float x, float y)
void ED_space_clip_get_aspect(const SpaceClip *sc, float *r_aspx, float *r_aspy)
static void clip_gizmos()
static void clip_properties_region_draw(const bContext *C, ARegion *region)
void CLIP_OT_graph_select(wmOperatorType *ot)
void CLIP_OT_add_marker_at_click(wmOperatorType *ot)
void CTX_data_id_pointer_set(bContextDataResult *result, ID *id)
static bool clip_tools_region_poll(const RegionPollParams *params)
void CLIP_OT_detect_features(wmOperatorType *ot)
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
static void clip_area_sync_frame_from_scene(ScrArea *area, const Scene *scene)
void CLIP_OT_delete_track(wmOperatorType *ot)
wmEventHandler_Dropbox * WM_event_add_dropbox_handler(ListBaseT< wmEventHandler > *handlers, ListBaseT< wmDropBox > *dropboxes)
void IMB_freeImBuf(ImBuf *ibuf)
void RNA_collection_clear(PointerRNA *ptr, const char *name)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
static void clip_scopes_check_gpencil_change(ScrArea *area)
void CLIP_OT_prefetch(wmOperatorType *ot)
int ED_region_generic_panel_region_snap_size(const ARegion *region, int size, int axis)
static void clip_channels_region_draw(const bContext *C, ARegion *region)
wmGizmoGroupTypeRef * WM_gizmogrouptype_append_and_link(wmGizmoMapType *gzmap_type, void(*wtfunc)(wmGizmoGroupType *))
void CLIP_OT_apply_solution_scale(wmOperatorType *ot)
void clip_draw_main(const bContext *C, SpaceClip *sc, ARegion *region)
BMesh const char void * data
static void clip_properties_region_init(wmWindowManager *wm, ARegion *region)
void CLIP_OT_view_center_cursor(wmOperatorType *ot)
void CLIP_OT_stabilize_2d_rotation_remove(wmOperatorType *ot)
wmEventHandler_Keymap * WM_event_add_keymap_handler_v2d_mask(ListBaseT< wmEventHandler > *handlers, wmKeyMap *keymap)
static void clip_main_region_draw(const bContext *C, ARegion *region)
bool ED_clip_view_selection(const bContext *C, const ARegion *region, bool fit)
void ED_clip_buttons_register(ARegionType *art)
void CLIP_OT_stabilize_2d_rotation_select(wmOperatorType *ot)
static int clip_context(const bContext *C, const char *member, bContextDataResult *result)
void clip_draw_grease_pencil(bContext *C, int onlyv2d)
void clip_draw_cache_and_notes(const bContext *C, SpaceClip *sc, ARegion *region)
ImBuf * ED_space_clip_get_stable_buffer(const SpaceClip *sc, float loc[2], float *scale, float *angle)
void ED_region_panels(const bContext *C, ARegion *region)
static void init_preview_region(const Scene *scene, const ScrArea *area, const SpaceClip *sc, ARegion *region)
void CLIP_OT_graph_center_current_frame(wmOperatorType *ot)
bool ED_time_scrub_event_in_region_poll(const wmWindow *, const ScrArea *, const ARegion *region, const wmEvent *event)
void BKE_movieclip_update_scopes(MovieClip *clip, const MovieClipUser *user, MovieClipScopes *scopes)
static void clip_operatortypes()
void ED_mask_get_size(ScrArea *area, int *r_width, int *r_height)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
rcti ED_time_scrub_clamp_scroller_mask(const rcti &scroller_mask)
Mask * CTX_data_edit_mask(const bContext *C)
@ TRACKING_2D_STABILIZATION
void CLIP_OT_open(wmOperatorType *ot)
void CLIP_OT_graph_view_all(wmOperatorType *ot)
const char * clip_context_dir[]
void CLIP_OT_clear_track_path(wmOperatorType *ot)
static void clip_channels_region_init(wmWindowManager *wm, ARegion *region)
wmEventHandler_Keymap * WM_event_add_keymap_handler(ListBaseT< wmEventHandler > *handlers, wmKeyMap *keymap)
static void clip_channels_region_listener(const wmRegionListenerParams *)
ARegion * BKE_area_region_new()
void CLIP_OT_select(wmOperatorType *ot)
void CLIP_OT_view_zoom_out(wmOperatorType *ot)
void GPU_matrix_translate_2f(float x, float y)
static SpaceLink * clip_duplicate(SpaceLink *sl)
BLI_INLINE int BLI_rcti_size_x(const struct rcti *rct)
void CLIP_OT_view_zoom(wmOperatorType *ot)
static void clip_props_region_listener(const wmRegionListenerParams *params)
bool CTX_data_dir(const char *member)
void CLIP_OT_select_all(wmOperatorType *ot)
void CLIP_OT_view_all(wmOperatorType *ot)
void CLIP_OT_view_zoom_ratio(wmOperatorType *ot)
void BKE_movieclip_user_set_frame(MovieClipUser *user, int framenr)
static void clip_tools_region_init(wmWindowManager *wm, ARegion *region)
static void graph_region_draw(const bContext *C, ARegion *region)
wmEventHandler_Keymap * WM_event_add_keymap_handler_poll(ListBaseT< wmEventHandler > *handlers, wmKeyMap *keymap, EventHandlerPoll poll)
void BLI_rcti_init(struct rcti *rect, int xmin, int xmax, int ymin, int ymax)
int WM_drag_get_path_file_type(const wmDrag *drag)
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
static void clip_keymap(wmKeyConfig *keyconf)
void CLIP_OT_paste_tracks(wmOperatorType *ot)
@ V2D_SCROLL_HORIZONTAL_HANDLES
@ V2D_SCROLL_VERTICAL_HANDLES
void CLIP_OT_refine_markers(wmOperatorType *ot)
void CLIP_OT_stabilize_2d_remove(wmOperatorType *ot)
Depsgraph * CTX_data_expect_evaluated_depsgraph(const bContext *C)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void CLIP_OT_new_image_from_plane_marker(wmOperatorType *ot)
void CLIP_OT_reload(wmOperatorType *ot)
static void clip_refresh(const bContext *C, ScrArea *area)
static void clip_id_remap(ScrArea *, SpaceLink *slink, const bke::id::IDRemapper &mappings)
MovieClip * ED_space_clip_get_clip(const SpaceClip *sc)
void CLIP_OT_dopesheet_select_channel(wmOperatorType *ot)
void CLIP_OT_set_solver_keyframe(wmOperatorType *ot)
void CLIP_OT_set_origin(wmOperatorType *ot)
void BKE_spacetype_register(std::unique_ptr< SpaceType > st)
void CLIP_OT_set_scale(wmOperatorType *ot)
static void dopesheet_region_draw(const bContext *C, ARegion *region)
static void clip_main_region_listener(const wmRegionListenerParams *params)
static void clip_space_blend_write(BlendWriter *writer, SpaceLink *sl)
void WM_gizmomap_draw(wmGizmoMap *gzmap, const bContext *C, const eWM_GizmoFlagMapDrawStep drawstep)
void ED_area_hud_region_set_padding_flag(ScrArea *area, ARegion *changed_region, const bool set_padding=false)
void ED_region_header_init(ARegion *region)
void CLIP_OT_set_solution_scale(wmOperatorType *ot)
void BLI_path_split_dir_file(const char *filepath, char *dir, size_t dir_maxncpy, char *file, size_t file_maxncpy) ATTR_NONNULL(1
wmGizmoMapType * WM_gizmomaptype_ensure(const wmGizmoMapType_Params *gzmap_params)
@ UsePanelCategoriesSearch
void CLIP_OT_delete_marker(wmOperatorType *ot)
void CLIP_OT_update_image_from_plane_marker(wmOperatorType *ot)
void CLIP_OT_track_copy_color(wmOperatorType *ot)
Scene * CTX_data_scene(const bContext *C)
static void clip_preview_region_listener(const wmRegionListenerParams *)
static void clip_properties_region_listener(const wmRegionListenerParams *params)
static void clip_space_blend_read_data(BlendDataReader *, SpaceLink *sl)
static bool clip_main_region_poll(const RegionPollParams *params)
void BKE_autotrack_context_sync_user(AutoTrackContext *context, MovieClipUser *user)
@ CTX_RESULT_MEMBER_NOT_FOUND
void CLIP_OT_disable_markers(wmOperatorType *ot)
void CLIP_OT_graph_select_box(wmOperatorType *ot)
@ ID_REMAP_APPLY_ENSURE_REAL
@ IDWALK_CB_DIRECT_WEAK_LINK
void CLIP_OT_lock_selection_toggle(wmOperatorType *ot)
void clip_draw_dopesheet_channels(const bContext *C, ARegion *region)
ListBaseT< wmDropBox > * WM_dropboxmap_find(const char *idname, int spaceid, int regionid)
void CLIP_OT_set_scene_frames(wmOperatorType *ot)
void CLIP_OT_dopesheet_view_all(wmOperatorType *ot)
void CLIP_OT_select_box(wmOperatorType *ot)
static bool clip_preview_region_poll(const RegionPollParams *params)
void ED_region_header(const bContext *C, ARegion *region)
static void clip_drop_copy(bContext *, wmDrag *drag, wmDropBox *drop)
void RNA_collection_add(PointerRNA *ptr, const char *name, PointerRNA *r_value)
static void clip_dropboxes()
static void clip_main_region_init(wmWindowManager *wm, ARegion *region)
void CLIP_OT_graph_delete_curve(wmOperatorType *ot)
void CLIP_OT_clean_tracks(wmOperatorType *ot)
void ED_space_clip_get_zoom(const SpaceClip *sc, const ARegion *region, float *r_zoomx, float *r_zoomy)
void ED_region_panels_init(wmWindowManager *wm, ARegion *region)
void ED_mask_draw_region(Depsgraph *depsgraph, Mask *mask, ARegion *region, bool show_overlays, MaskDrawFlag draw_flag, MaskDrawType draw_type, MaskOverlayMode overlay_mode, float blend_factor, int width_i, int height_i, float aspx, float aspy, bool do_scale_applied, bool do_draw_cb, float stabmat[4][4], const bContext *C)
void CLIP_OT_set_axis(wmOperatorType *ot)
void CLIP_OT_graph_disable_markers(wmOperatorType *ot)
static void clip_scopes_tag_refresh(ScrArea *area)
void BKE_tracking_dopesheet_update(MovieTracking *tracking)
void CLIP_OT_select_circle(wmOperatorType *ot)
static void movieclip_main_area_set_view2d(const bContext *C, ARegion *region)
void CLIP_OT_cursor_set(wmOperatorType *ot)
MINLINE int round_db_to_int(double a)
void ED_clip_graph_center_current_frame(Scene *scene, ARegion *region)
@ WM_GIZMOMAP_DRAWSTEP_2D
void ED_area_tag_redraw(ScrArea *area)
void CLIP_OT_hide_tracks_clear(wmOperatorType *ot)
void CLIP_OT_graph_delete_knot(wmOperatorType *ot)
void CLIP_OT_view_pan(wmOperatorType *ot)
void clip_draw_dopesheet_main(SpaceClip *sc, ARegion *region, Scene *scene)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
int(*) snap_size(const ARegion *region, int size, int axis)
void(*) draw(const bContext *C, ARegion *region)
void(*) listener(const wmRegionListenerParams *params)
bool(*) poll(const RegionPollParams *params)
void(*) init(wmWindowManager *wm, ARegion *region)
bke::ARegionRuntime * runtime
eRegion_Alignment alignment
void write_struct_cast(const void *data, BlendStructWriterTypedFn< T > fn=nullptr)
MaskOverlayMode overlay_mode
struct ImBuf * track_preview
struct ImBuf * track_search
struct MovieTracking tracking
TrackingStabilizationFlag flag
MovieTrackingStabilization stabilization
ListBaseT< struct wmEventHandler > handlers
ListBaseT< ARegion > regionbase
ListBaseT< SpaceLink > spacedata
eSpaceClip_GPencil_Source gpencil_src
struct MovieClipScopes scopes
eSpaceClip_Gizmo_Flag gizmo_flag
struct MovieClipUser user
struct SpaceClipOverlay overlay
ListBaseT< ARegion > regionbase
eView2D_KeepZoom keepzoom
ListBaseT< wmEventHandler > handlers
const wmNotifier * notifier
const wmNotifier * notifier