|
Blender V5.0
|
#include <cerrno>#include <fcntl.h>#include <mutex>#include <sys/types.h>#include <unistd.h>#include "MEM_guardedalloc.h"#include "DNA_defaults.h"#include "DNA_scene_types.h"#include "DNA_userdef_types.h"#include "BLI_fileops.h"#include "BLI_math_vector.h"#include "BLI_path_utils.hh"#include "BLI_rect.h"#include "BLI_string.h"#include "BLI_task.h"#include "BLI_time.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_movieclip.h"#include "BKE_report.hh"#include "BKE_tracking.h"#include "WM_api.hh"#include "WM_types.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "MOV_read.hh"#include "ED_clip.hh"#include "ED_screen.hh"#include "UI_interface.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "UI_view2d.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "clip_intern.hh"Go to the source code of this file.
Classes | |
| struct | ProxyJob |
| struct | ProxyQueue |
| struct | ProxyThread |
|
static |
Definition at line 1075 of file clip_ops.cc.
References C, RenderData::cfra, CTX_data_scene(), DEG_id_tag_update(), FRAMENUMBER_MIN_CLAMP, Scene::id, ID_RECALC_FRAME_CHANGE, NC_SCENE, ND_FRAME, wmOperator::ptr, Scene::r, RNA_int_get(), RenderData::subframe, and WM_event_add_notifier().
Referenced by change_frame_exec(), change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 1089 of file clip_ops.cc.
References C, change_frame_apply(), and OPERATOR_FINISHED.
|
static |
Definition at line 1118 of file clip_ops.cc.
References C, change_frame_apply(), CTX_wm_region(), frame_from_event(), wmEvent::mval, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ARegion::regiontype, RGN_TYPE_WINDOW, RNA_int_set(), UI_SCALE_FAC, and WM_event_add_modal_handler().
|
static |
Definition at line 1138 of file clip_ops.cc.
References C, change_frame_apply(), EVT_ESCKEY, frame_from_event(), KM_RELEASE, LEFTMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RIGHTMOUSE, RNA_int_set(), wmEvent::type, and wmEvent::val.
|
static |
Definition at line 1065 of file clip_ops.cc.
References C, CTX_wm_space_clip(), and G.
|
static |
Definition at line 161 of file clip_ops.cc.
References C, wmOperator::ptr, RNA_string_set(), and WM_event_add_fileselect().
Referenced by open_invoke().
| void CLIP_OT_change_frame | ( | wmOperatorType * | ot | ) |
Definition at line 1163 of file clip_ops.cc.
References change_frame_exec(), change_frame_invoke(), change_frame_modal(), change_frame_poll(), MAXFRAME, MINAFRAME, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, and RNA_def_int().
Referenced by clip_operatortypes().
| void CLIP_OT_cursor_set | ( | wmOperatorType * | ot | ) |
Definition at line 1815 of file clip_ops.cc.
References clip_set_2d_cursor_exec(), clip_set_2d_cursor_invoke(), ED_space_clip_poll(), FLT_MAX, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_float_vector().
Referenced by clip_operatortypes().
| 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().
| void CLIP_OT_mode_set | ( | wmOperatorType * | ot | ) |
Definition at line 1610 of file clip_ops.cc.
References BLT_I18NCONTEXT_ID_MOVIECLIP, ED_space_clip_poll(), mode_set_exec(), ot, RNA_def_enum(), RNA_def_property_translation_context(), rna_enum_clip_editor_mode_items, and SC_MODE_TRACKING.
Referenced by clip_operatortypes().
| void CLIP_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 303 of file clip_ops.cc.
References FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, open_cancel(), open_exec(), open_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, WM_FILESEL_DIRECTORY, WM_FILESEL_FILES, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by clip_operatortypes().
| void CLIP_OT_prefetch | ( | wmOperatorType * | ot | ) |
Definition at line 1722 of file clip_ops.cc.
References clip_prefetch_invoke(), clip_prefetch_modal(), ED_space_clip_view_clip_poll(), and ot.
Referenced by clip_operatortypes().
| 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().
| void CLIP_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 350 of file clip_ops.cc.
References ot, and reload_exec().
Referenced by clip_operatortypes().
| 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().
| void CLIP_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 973 of file clip_ops.cc.
References ED_space_clip_view_clip_poll(), OPTYPE_LOCK_BYPASS, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and view_all_exec().
Referenced by clip_operatortypes().
| 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().
| void CLIP_OT_view_pan | ( | wmOperatorType * | ot | ) |
Definition at line 508 of file clip_ops.cc.
References ED_space_clip_view_clip_poll(), FLT_MAX, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, RNA_def_float_vector(), view_pan_cancel(), view_pan_exec(), view_pan_invoke(), and view_pan_modal().
Referenced by clip_operatortypes().
| 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().
| void CLIP_OT_view_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 715 of file clip_ops.cc.
References ED_space_clip_view_clip_poll(), FLT_MAX, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, PROP_HIDDEN, RNA_def_float(), RNA_def_property_flag(), view_zoom_cancel(), view_zoom_exec(), view_zoom_invoke(), view_zoom_modal(), and WM_operator_properties_use_cursor_init().
Referenced by clip_operatortypes().
| void CLIP_OT_view_zoom_in | ( | wmOperatorType * | ot | ) |
Definition at line 781 of file clip_ops.cc.
References ED_space_clip_view_clip_poll(), FLT_MAX, OPTYPE_LOCK_BYPASS, ot, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), view_zoom_in_exec(), and view_zoom_in_invoke().
Referenced by clip_operatortypes().
| void CLIP_OT_view_zoom_out | ( | wmOperatorType * | ot | ) |
Definition at line 838 of file clip_ops.cc.
References ED_space_clip_view_clip_poll(), FLT_MAX, OPTYPE_LOCK_BYPASS, ot, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), view_zoom_out_exec(), and view_zoom_out_invoke().
Referenced by clip_operatortypes().
| void CLIP_OT_view_zoom_ratio | ( | wmOperatorType * | ot | ) |
Definition at line 890 of file clip_ops.cc.
References ED_space_clip_view_clip_poll(), FLT_MAX, OPTYPE_LOCK_BYPASS, ot, RNA_def_float(), and view_zoom_ratio_exec().
Referenced by clip_operatortypes().
|
static |
Definition at line 1710 of file clip_ops.cc.
References C, clip_start_prefetch_job(), OPERATOR_RUNNING_MODAL, and WM_event_add_modal_handler().
Referenced by CLIP_OT_prefetch().
|
static |
Definition at line 1691 of file clip_ops.cc.
References C, CTX_wm_area(), CTX_wm_manager(), EVT_ESCKEY, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmEvent::type, WM_JOB_TYPE_CLIP_PREFETCH, and WM_jobs_test().
Referenced by CLIP_OT_prefetch().
|
static |
Definition at line 1524 of file clip_ops.cc.
References MovieClip::anim, MovieClipProxy::build_size_flag, MovieClipProxy::build_tc_flag, C, ProxyJob::clip, ProxyJob::clip_flag, CTX_data_main(), CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_space_clip(), CTX_wm_window(), ED_area_tag_redraw(), ED_space_clip_get_clip(), MovieClip::flag, G, ProxyJob::main, MCLIP_TIMECODE_FLAGS, MCLIP_USE_PROXY, MEM_callocN(), MOV_proxy_builder_start(), NC_MOVIECLIP, ND_DISPLAY, OPERATOR_CANCELLED, OPERATOR_FINISHED, MovieClip::proxy, ProxyJob::proxy_builder, proxy_endjob(), proxy_freejob(), proxy_startjob(), MovieClipProxy::quality, ProxyJob::scene, WM_JOB_PROGRESS, WM_JOB_TYPE_CLIP_BUILD_PROXY, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), and WM_jobs_timer().
Referenced by CLIP_OT_rebuild_proxy().
|
static |
Definition at line 1781 of file clip_ops.cc.
References SpaceClip::around, C, CTX_wm_space_clip(), SpaceClip::cursor, SpaceClip::mode, NC_SPACE, ND_SPACE_CLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_float_get_array(), SC_MODE_MASKEDIT, V3D_AROUND_CURSOR, and WM_event_add_notifier().
Referenced by CLIP_OT_cursor_set(), and clip_set_2d_cursor_invoke().
|
static |
Definition at line 1801 of file clip_ops.cc.
References C, clip_set_2d_cursor_exec(), CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), wmEvent::mval, wmOperator::ptr, and RNA_float_set_array().
Referenced by CLIP_OT_cursor_set().
|
static |
Definition at line 1741 of file clip_ops.cc.
References BKE_movieclip_get_duration(), C, CTX_data_edit_movieclip(), CTX_data_scene(), RenderData::efra, ELEM, max_ii(), NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, RenderData::sfra, MovieClip::start_frame, and WM_event_add_notifier().
Referenced by CLIP_OT_set_scene_frames().
|
static |
Definition at line 1236 of file clip_ops.cc.
References BKE_movieclip_build_proxy_frame(), BKE_movieclip_get_size(), BKE_tracking_distortion_free(), BKE_tracking_distortion_new(), ProxyJob::clip, ProxyJob::clip_flag, float, G, MovieClip::len, MOV_proxy_builder_process(), ProxyJob::proxy_builder, ProxyJob::stop, and MovieClip::tracking.
Referenced by proxy_startjob().
|
static |
Definition at line 1400 of file clip_ops.cc.
References BKE_movieclip_get_size(), BKE_tracking_distortion_free(), BKE_tracking_distortion_new(), BLI_task_pool_create(), BLI_task_pool_free(), BLI_task_pool_push(), BLI_task_pool_work_and_wait(), BLI_task_scheduler_num_threads(), ProxyThread::build_count, ProxyThread::build_sizes, ProxyThread::build_undistort_count, ProxyThread::build_undistort_sizes, ProxyQueue::cfra, ProxyJob::clip, ProxyThread::clip, ProxyThread::distortion, ProxyQueue::do_update, ProxyQueue::efra, RenderData::efra, handles, i, MEM_calloc_arrayN(), MEM_freeN(), ProxyQueue::progress, proxy_task_func(), Scene::r, ProxyJob::scene, ProxyQueue::sfra, RenderData::sfra, ProxyQueue::stop, task_pool, TASK_PRIORITY_LOW, and MovieClip::tracking.
Referenced by proxy_startjob().
| void ED_operatormacros_clip | ( | ) |
Definition at line 1886 of file clip_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), RNA_struct_system_idprops_unset(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
Definition at line 1096 of file clip_ops.cc.
References C, CTX_data_scene(), CTX_wm_region(), RenderData::efra, wmEvent::mval, Scene::r, ARegion::regiontype, RGN_TYPE_WINDOW, round_fl_to_int(), RenderData::sfra, UI_view2d_region_to_view(), ARegion::v2d, and ARegion::winx.
|
static |
Definition at line 1849 of file clip_ops.cc.
References C, CTX_wm_space_clip(), ED_clip_view_lock_state_restore_no_jump(), ED_clip_view_lock_state_store(), SpaceClip::flag, NC_SPACE, ND_SPACE_CLIP, OPERATOR_FINISHED, SC_LOCK_SELECTION, and WM_event_add_notifier().
Referenced by CLIP_OT_lock_selection_toggle().
|
static |
Definition at line 1593 of file clip_ops.cc.
References C, CTX_wm_space_clip(), SpaceClip::mode, NC_SPACE, ND_SPACE_CLIP, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SC_MODE_MASKEDIT, SC_VIEW_CLIP, SpaceClip::view, and WM_event_add_notifier().
Referenced by CLIP_OT_mode_set().
|
static |
Definition at line 176 of file clip_ops.cc.
References wmOperator::customdata.
|
static |
Definition at line 185 of file clip_ops.cc.
References BKE_movieclip_file_add_exists(), BKE_report(), BKE_reportf(), BLI_path_join, BLI_path_rel(), C, CTX_data_main(), CTX_wm_screen(), CTX_wm_space_clip(), wmOperator::customdata, DEG_relations_tag_update(), ED_space_clip_set_clip(), FILE_MAX, Main::filepath, MovieClip::id, id_us_min(), NA_ADDED, NC_MOVIECLIP, open_init(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_collection_is_empty(), RNA_id_pointer_create(), RNA_property_collection_lookup_int(), RNA_property_pointer_set(), RNA_property_update(), RNA_string_get(), RNA_struct_find_property(), RPT_, RPT_ERROR, and WM_event_add_notifier().
Referenced by CLIP_OT_open(), and open_invoke().
|
static |
Definition at line 168 of file clip_ops.cc.
References C, wmOperator::customdata, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and UI_context_active_but_prop_get_templateID().
Referenced by open_exec(), and open_invoke().
|
static |
Definition at line 268 of file clip_ops.cc.
References BLI_path_abs(), BLI_path_parent_dir(), C, clip_filesel(), CTX_wm_space_clip(), ED_space_clip_get_clip(), FILE_MAX, MovieClip::filepath, MovieClip::id, ID_BLEND_PATH_FROM_GLOBAL, open_exec(), open_init(), OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_set(), RNA_struct_property_is_set(), STRNCPY(), U, and USER_RELPATHS.
|
static |
Definition at line 1205 of file clip_ops.cc.
References MCLIP_PROXY_RENDER_SIZE_100, MCLIP_PROXY_RENDER_SIZE_25, MCLIP_PROXY_RENDER_SIZE_50, MCLIP_PROXY_RENDER_SIZE_75, MCLIP_PROXY_SIZE_100, MCLIP_PROXY_SIZE_25, MCLIP_PROXY_SIZE_50, MCLIP_PROXY_SIZE_75, MCLIP_PROXY_UNDISTORTED_SIZE_100, MCLIP_PROXY_UNDISTORTED_SIZE_25, MCLIP_PROXY_UNDISTORTED_SIZE_50, and MCLIP_PROXY_UNDISTORTED_SIZE_75.
Referenced by proxy_startjob().
|
static |
Definition at line 1500 of file clip_ops.cc.
References MovieClip::anim, BKE_movieclip_clear_proxy_cache(), ProxyJob::clip, DEG_id_tag_update(), MovieClip::id, ID_RECALC_SOURCE, MCLIP_SRC_MOVIE, MOV_close_proxies(), MOV_proxy_builder_finish(), NC_MOVIECLIP, ND_DISPLAY, ProxyJob::proxy_builder, MovieClip::source, ProxyJob::stop, and WM_main_add_notifier().
Referenced by clip_rebuild_proxy_exec().
|
static |
Definition at line 1198 of file clip_ops.cc.
References MEM_freeN().
Referenced by clip_rebuild_proxy_exec().
|
static |
Definition at line 1464 of file clip_ops.cc.
References MovieClipProxy::build_size_flag, ProxyJob::clip, do_movie_proxy(), do_sequence_proxy(), wmJobWorkerStatus::do_update, MCLIP_SRC_MOVIE, wmJobWorkerStatus::progress, MovieClip::proxy, proxy_bitflag_to_array(), MovieClip::source, and wmJobWorkerStatus::stop.
Referenced by clip_rebuild_proxy_exec().
|
static |
Definition at line 1365 of file clip_ops.cc.
References BKE_movieclip_build_proxy_frame_for_ibuf(), BLI_task_pool_user_data(), data, IB_alphamode_detect, IB_byte_data, IB_multilayer, IMB_freeImBuf(), IMB_load_image_from_memory(), MEM_freeN(), proxy_thread_next_frame(), and size().
Referenced by do_sequence_proxy().
|
static |
Definition at line 1317 of file clip_ops.cc.
References BKE_movieclip_filepath_for_frame(), BLI_file_descriptor_size(), BLI_open(), BLI_read(), ProxyQueue::cfra, DNA_struct_default_get, ProxyQueue::do_update, ProxyQueue::efra, ELEM, FILE_MAX, float, MovieClipUser::framenr, lock, MEM_calloc_arrayN(), MEM_freeN(), ProxyQueue::mutex, O_BINARY, ProxyQueue::progress, ProxyQueue::sfra, size(), ProxyQueue::stop, and UNLIKELY.
Referenced by proxy_task_func().
|
static |
Definition at line 334 of file clip_ops.cc.
References BKE_movieclip_reload(), C, CTX_data_edit_movieclip(), CTX_data_main(), CTX_wm_manager(), NA_EDITED, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_FINISHED, WM_event_add_notifier(), WM_JOB_TYPE_CLIP_PREFETCH, and WM_jobs_kill_type().
Referenced by CLIP_OT_reload().
|
static |
Definition at line 73 of file clip_ops.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), C, clip_view_has_locked_selection(), CTX_wm_region(), CTX_wm_space_clip(), ED_space_clip_get_aspect(), ED_space_clip_get_size(), w(), ARegion::winrct, SpaceClip::xlockof, SpaceClip::xof, SpaceClip::ylockof, SpaceClip::yof, and SpaceClip::zoom.
Referenced by sclip_zoom_set_factor(), view_all_exec(), view_zoom_apply(), and view_zoom_ratio_exec().
|
static |
Definition at line 127 of file clip_ops.cc.
References C, CTX_wm_space_clip(), sclip_zoom_set(), and SpaceClip::zoom.
Referenced by sclip_zoom_set_factor_exec(), view_zoom_exec(), view_zoom_in_exec(), and view_zoom_out_exec().
Definition at line 137 of file clip_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), ED_region_tag_redraw(), wmEvent::mval, sclip_zoom_set_factor(), U, and USER_ZOOM_TO_MOUSEPOS.
Referenced by view_zoom_invoke().
|
static |
Definition at line 922 of file clip_ops.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), C, CTX_wm_region(), CTX_wm_space_clip(), ED_region_tag_redraw(), ED_space_clip_get_aspect(), ED_space_clip_get_size(), float, min_ff(), OPERATOR_FINISHED, power_of_2(), wmOperator::ptr, RNA_boolean_get(), sclip_zoom_set(), w(), ARegion::winrct, SpaceClip::xof, and SpaceClip::yof.
|
static |
Definition at line 1000 of file clip_ops.cc.
References C, clip_view_center_to_point(), CTX_wm_region(), CTX_wm_space_clip(), SpaceClip::cursor, ED_region_tag_redraw(), and OPERATOR_FINISHED.
Referenced by CLIP_OT_view_center_cursor(), and IMAGE_OT_view_center_cursor().
|
static |
Definition at line 503 of file clip_ops.cc.
References C, and view_pan_exit().
|
static |
Definition at line 427 of file clip_ops.cc.
References C, clip_view_has_locked_selection(), CTX_wm_region(), CTX_wm_space_clip(), ED_region_tag_redraw(), OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get_array(), SpaceClip::xlockof, SpaceClip::xof, SpaceClip::ylockof, and SpaceClip::yof.
Referenced by view_pan_invoke(), and view_pan_modal().
|
static |
Definition at line 411 of file clip_ops.cc.
References C, copy_v2_v2(), CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN(), and WM_cursor_modal_restore().
Referenced by view_pan_cancel(), and view_pan_modal().
|
static |
Definition at line 379 of file clip_ops.cc.
References C, clip_view_has_locked_selection(), copy_v2_v2(), CTX_wm_space_clip(), CTX_wm_window(), wmOperator::customdata, MEM_callocN(), wmEvent::type, WM_cursor_modal_is_set_ok(), WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_userdef_event_type_from_keymap_type(), SpaceClip::xlockof, and SpaceClip::xof.
Referenced by view_pan_invoke().
|
static |
Definition at line 448 of file clip_ops.cc.
References C, CTX_wm_space_clip(), MOUSEPAN, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, view_pan_exec(), view_pan_init(), and SpaceClip::zoom.
|
static |
Definition at line 469 of file clip_ops.cc.
References C, copy_v2_v2(), CTX_wm_space_clip(), wmOperator::customdata, EVT_ESCKEY, EVT_SPACEKEY, KM_RELEASE, MOUSEMOVE, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, wmEvent::val, view_pan_exec(), view_pan_exit(), and SpaceClip::zoom.
|
static |
Definition at line 1030 of file clip_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_clip_view_selection(), ED_region_tag_redraw(), OPERATOR_FINISHED, SpaceClip::xlockof, and SpaceClip::ylockof.
Referenced by CLIP_OT_view_selected().
|
static |
Definition at line 642 of file clip_ops.cc.
References BLI_time_now_seconds(), C, CTX_wm_region(), CTX_wm_space_clip(), ED_region_tag_redraw(), float, wmOperator::ptr, RNA_float_set(), sclip_zoom_set(), U, USER_ZOOM_CONTINUE, USER_ZOOM_HORIZ, USER_ZOOM_INVERT, USER_ZOOM_SCALE, wmEvent::xy, and SpaceClip::zoom.
Referenced by view_zoom_modal().
|
static |
Definition at line 710 of file clip_ops.cc.
References C, and view_zoom_exit().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 609 of file clip_ops.cc.
References C, CTX_wm_region(), ED_region_tag_redraw(), OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and sclip_zoom_set_factor().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 589 of file clip_ops.cc.
References C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_clip(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN(), wmTimer::win, WM_cursor_modal_restore(), WM_event_timer_remove(), and SpaceClip::zoom.
Referenced by view_zoom_cancel(), and view_zoom_modal().
|
static |
Definition at line 755 of file clip_ops.cc.
References C, CTX_wm_region(), ED_region_tag_redraw(), OPERATOR_FINISHED, powf, wmOperator::ptr, RNA_float_get_array(), sclip_zoom_set_factor(), U, and USER_ZOOM_TO_MOUSEPOS.
Referenced by CLIP_OT_view_zoom_in(), and view_zoom_in_invoke().
|
static |
Definition at line 768 of file clip_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), and view_zoom_in_exec().
Referenced by CLIP_OT_view_zoom_in().
|
static |
Definition at line 558 of file clip_ops.cc.
References BLI_time_now_seconds(), C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_clip(), CTX_wm_window(), wmOperator::customdata, ED_clip_mouse_pos(), MEM_callocN(), wmEvent::mval, TIMER, wmEvent::type, U, USER_ZOOM_CONTINUE, WM_cursor_modal_is_set_ok(), WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_event_timer_add(), WM_userdef_event_type_from_keymap_type(), and SpaceClip::zoom.
Referenced by view_zoom_invoke().
|
static |
Definition at line 618 of file clip_ops.cc.
References C, ELEM, MOUSEPAN, MOUSEZOOM, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set(), sclip_zoom_set_factor_exec(), wmEvent::type, U, USER_ZOOM_INVERT, and view_zoom_init().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 685 of file clip_ops.cc.
References C, wmEvent::customdata, wmOperator::customdata, KM_RELEASE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_get(), TIMER, wmEvent::type, U, USER_ZOOM_TO_MOUSEPOS, wmEvent::val, view_zoom_apply(), and view_zoom_exit().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 812 of file clip_ops.cc.
References C, CTX_wm_region(), ED_region_tag_redraw(), OPERATOR_FINISHED, powf, wmOperator::ptr, RNA_float_get_array(), sclip_zoom_set_factor(), U, and USER_ZOOM_TO_MOUSEPOS.
Referenced by CLIP_OT_view_zoom_out(), and view_zoom_out_invoke().
|
static |
Definition at line 825 of file clip_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), and view_zoom_out_exec().
Referenced by CLIP_OT_view_zoom_out().
|
static |
Definition at line 875 of file clip_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_region_tag_redraw(), OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), sclip_zoom_set(), SpaceClip::xof, and SpaceClip::yof.
Referenced by CLIP_OT_view_zoom_ratio().