|
Blender V4.3
|
#include <cerrno>#include <fcntl.h>#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 "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 | ViewPanData |
| struct | ViewZoomData |
| struct | ProxyJob |
| struct | ProxyQueue |
| struct | ProxyThread |
|
static |
Definition at line 1064 of file clip_ops.cc.
References CTX_data_scene(), DEG_id_tag_update(), FRAMENUMBER_MIN_CLAMP, ID_RECALC_FRAME_CHANGE, NC_SCENE, ND_FRAME, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by change_frame_exec(), change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 1078 of file clip_ops.cc.
References change_frame_apply(), and OPERATOR_FINISHED.
Referenced by CLIP_OT_change_frame().
|
static |
Definition at line 1107 of file clip_ops.cc.
References change_frame_apply(), CTX_wm_region(), frame_from_event(), wmEvent::mval, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RGN_TYPE_WINDOW, RNA_int_set(), UI_SCALE_FAC, and WM_event_add_modal_handler().
Referenced by CLIP_OT_change_frame().
|
static |
Definition at line 1127 of file clip_ops.cc.
References 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.
Referenced by CLIP_OT_change_frame().
|
static |
Definition at line 1054 of file clip_ops.cc.
References CTX_wm_space_clip(), and G.
Referenced by CLIP_OT_change_frame().
|
static |
Definition at line 158 of file clip_ops.cc.
References wmOperator::ptr, RNA_string_set(), and WM_event_add_fileselect().
Referenced by open_invoke().
| void CLIP_OT_change_frame | ( | wmOperatorType * | ot | ) |
Definition at line 1149 of file clip_ops.cc.
References change_frame_exec(), change_frame_invoke(), change_frame_modal(), change_frame_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAXFRAME, MINAFRAME, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
| void CLIP_OT_cursor_set | ( | wmOperatorType * | ot | ) |
Definition at line 1805 of file clip_ops.cc.
References clip_set_2d_cursor_exec(), clip_set_2d_cursor_invoke(), wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
| void CLIP_OT_lock_selection_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1855 of file clip_ops.cc.
References wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lock_selection_toggle_exec(), wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_mode_set | ( | wmOperatorType * | ot | ) |
Definition at line 1606 of file clip_ops.cc.
References BLT_I18NCONTEXT_ID_MOVIECLIP, wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::idname, mode_set_exec(), wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_property_translation_context(), rna_enum_clip_editor_mode_items, SC_MODE_TRACKING, and wmOperatorType::srna.
Referenced by clip_operatortypes().
| void CLIP_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 300 of file clip_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, 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 1714 of file clip_ops.cc.
References clip_prefetch_invoke(), clip_prefetch_modal(), wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_rebuild_proxy | ( | wmOperatorType * | ot | ) |
Definition at line 1568 of file clip_ops.cc.
References clip_rebuild_proxy_exec(), wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 347 of file clip_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and reload_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_set_scene_frames | ( | wmOperatorType * | ot | ) |
Definition at line 1755 of file clip_ops.cc.
References clip_set_scene_frames_exec(), wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 962 of file clip_ops.cc.
References wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and view_all_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_view_center_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 1001 of file clip_ops.cc.
References wmOperatorType::description, ED_space_clip_maskedit_poll(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view_center_cursor_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_view_pan | ( | wmOperatorType * | ot | ) |
Definition at line 501 of file clip_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, RNA_def_float_vector(), wmOperatorType::srna, 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 1033 of file clip_ops.cc.
References wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, and view_selected_exec().
Referenced by clip_operatortypes().
| void CLIP_OT_view_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 704 of file clip_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float(), RNA_def_property_flag(), wmOperatorType::srna, 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 770 of file clip_ops.cc.
References wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), wmOperatorType::srna, view_zoom_in_exec(), and view_zoom_in_invoke().
Referenced by clip_operatortypes().
| void CLIP_OT_view_zoom_out | ( | wmOperatorType * | ot | ) |
Definition at line 827 of file clip_ops.cc.
References wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), wmOperatorType::srna, view_zoom_out_exec(), and view_zoom_out_invoke().
Referenced by clip_operatortypes().
| void CLIP_OT_view_zoom_ratio | ( | wmOperatorType * | ot | ) |
Definition at line 879 of file clip_ops.cc.
References wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, and view_zoom_ratio_exec().
Referenced by clip_operatortypes().
|
static |
Definition at line 1704 of file clip_ops.cc.
References clip_start_prefetch_job(), OPERATOR_RUNNING_MODAL, and WM_event_add_modal_handler().
Referenced by CLIP_OT_prefetch().
|
static |
Definition at line 1688 of file clip_ops.cc.
References 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 1519 of file clip_ops.cc.
References 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(), G, IMB_anim_index_rebuild_context(), ProxyJob::index_context, ProxyJob::main, MCLIP_TIMECODE_FLAGS, MCLIP_USE_PROXY, NC_MOVIECLIP, ND_DISPLAY, OPERATOR_CANCELLED, OPERATOR_FINISHED, proxy_endjob(), proxy_freejob(), proxy_startjob(), ProxyJob::scene, 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 1773 of file clip_ops.cc.
References SpaceClip::around, 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 1793 of file clip_ops.cc.
References 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 1733 of file clip_ops.cc.
References BKE_movieclip_get_duration(), CTX_data_edit_movieclip(), CTX_data_scene(), ELEM, max_ii(), NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by CLIP_OT_set_scene_frames().
|
static |
Definition at line 1222 of file clip_ops.cc.
References BKE_movieclip_build_proxy_frame(), BKE_movieclip_get_size(), BKE_tracking_distortion_free(), BKE_tracking_distortion_new(), BKE_tracking_distortion_set_threads(), BLI_system_thread_count(), ProxyJob::clip, ProxyJob::clip_flag, float, G, IMB_anim_index_rebuild(), ProxyJob::index_context, and ProxyJob::stop.
Referenced by proxy_startjob().
|
static |
Definition at line 1392 of file clip_ops.cc.
References BKE_movieclip_get_size(), BKE_tracking_distortion_free(), BKE_tracking_distortion_new(), BLI_spin_end(), BLI_spin_init(), BLI_task_pool_create(), BLI_task_pool_free(), BLI_task_pool_push(), BLI_task_pool_work_and_wait(), BLI_task_scheduler_num_threads(), ProxyJob::clip, ProxyThread::clip, handles, MEM_freeN(), proxy_task_func(), Scene::r, ProxyJob::scene, RenderData::sfra, task_pool, and TASK_PRIORITY_LOW.
Referenced by proxy_startjob().
| void ED_operatormacros_clip | ( | ) |
Definition at line 1876 of file clip_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), RNA_struct_idprops_unset(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
Definition at line 1085 of file clip_ops.cc.
References CTX_data_scene(), CTX_wm_region(), wmEvent::mval, RGN_TYPE_WINDOW, round_fl_to_int(), and UI_view2d_region_to_view().
Referenced by change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 1839 of file clip_ops.cc.
References 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 1589 of file clip_ops.cc.
References 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 173 of file clip_ops.cc.
References wmOperator::customdata.
Referenced by CLIP_OT_open().
|
static |
Definition at line 182 of file clip_ops.cc.
References BKE_movieclip_file_add_exists(), BKE_report(), BKE_reportf(), BLI_path_join, BLI_path_rel(), 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, 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 165 of file clip_ops.cc.
References 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 265 of file clip_ops.cc.
References BLI_path_abs(), BLI_path_parent_dir(), clip_filesel(), CTX_data_main(), CTX_wm_space_clip(), ED_space_clip_get_clip(), FILE_MAX, open_exec(), open_init(), OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_set(), RNA_struct_property_is_set(), STRNCPY, and USER_RELPATHS.
Referenced by CLIP_OT_open().
Definition at line 1191 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 1495 of file clip_ops.cc.
References MovieClip::anim, BKE_movieclip_clear_proxy_cache(), ProxyJob::clip, DEG_id_tag_update(), MovieClip::id, ID_RECALC_SOURCE, IMB_anim_index_rebuild_finish(), IMB_close_anim_proxies(), ProxyJob::index_context, MCLIP_SRC_MOVIE, NC_MOVIECLIP, ND_DISPLAY, MovieClip::source, ProxyJob::stop, and WM_main_add_notifier().
Referenced by clip_rebuild_proxy_exec().
|
static |
Definition at line 1184 of file clip_ops.cc.
References MEM_freeN().
Referenced by clip_rebuild_proxy_exec().
|
static |
Definition at line 1459 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(), and wmJobWorkerStatus::stop.
Referenced by clip_rebuild_proxy_exec().
|
static |
Definition at line 1358 of file clip_ops.cc.
References BKE_movieclip_build_proxy_frame_for_ibuf(), BLI_task_pool_user_data(), IB_alphamode_detect, IB_multilayer, IB_rect, IMB_freeImBuf(), IMB_ibImageFromMemory(), MEM_freeN(), proxy_thread_next_frame(), and size().
Referenced by do_sequence_proxy().
|
static |
Definition at line 1305 of file clip_ops.cc.
References BKE_movieclip_filepath_for_frame(), BLI_file_descriptor_size(), BLI_open(), BLI_read(), BLI_spin_lock(), BLI_spin_unlock(), DNA_struct_default_get, ELEM, file, FILE_MAX, float, MovieClipUser::framenr, MEM_freeN(), O_BINARY, size(), and UNLIKELY.
Referenced by proxy_task_func().
|
static |
Definition at line 331 of file clip_ops.cc.
References BKE_movieclip_reload(), 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 70 of file clip_ops.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), clip_view_has_locked_selection(), CTX_wm_region(), CTX_wm_space_clip(), ED_space_clip_get_aspect(), ED_space_clip_get_size(), w(), 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 124 of file clip_ops.cc.
References 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 134 of file clip_ops.cc.
References CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), ED_region_tag_redraw(), wmEvent::mval, sclip_zoom_set_factor(), and USER_ZOOM_TO_MOUSEPOS.
Referenced by view_zoom_invoke().
|
static |
Definition at line 911 of file clip_ops.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), 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(), SpaceClip::xof, and SpaceClip::yof.
Referenced by CLIP_OT_view_all().
|
static |
Definition at line 989 of file clip_ops.cc.
References 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().
|
static |
Definition at line 496 of file clip_ops.cc.
References view_pan_exit().
Referenced by CLIP_OT_view_pan().
|
static |
Definition at line 420 of file clip_ops.cc.
References 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 CLIP_OT_view_pan(), view_pan_invoke(), and view_pan_modal().
|
static |
Definition at line 404 of file clip_ops.cc.
References copy_v2_v2(), CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN(), ViewPanData::own_cursor, ViewPanData::vec, WM_cursor_modal_restore(), and ViewPanData::xorig.
Referenced by view_pan_cancel(), and view_pan_modal().
|
static |
Definition at line 372 of file clip_ops.cc.
References clip_view_has_locked_selection(), copy_v2_v2(), CTX_wm_space_clip(), CTX_wm_window(), wmOperator::customdata, wmWindow::grabcursor, ViewPanData::launch_event, ViewPanData::own_cursor, wmEvent::type, ViewPanData::vec, WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_userdef_event_type_from_keymap_type(), ViewPanData::x, SpaceClip::xlockof, SpaceClip::xof, ViewPanData::xof, ViewPanData::xorig, and ViewPanData::y.
Referenced by view_pan_invoke().
|
static |
Definition at line 441 of file clip_ops.cc.
References 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.
Referenced by CLIP_OT_view_pan().
|
static |
Definition at line 462 of file clip_ops.cc.
References copy_v2_v2(), CTX_wm_space_clip(), wmOperator::customdata, EVT_ESCKEY, EVT_SPACEKEY, KM_RELEASE, ViewPanData::launch_event, MOUSEMOVE, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, wmEvent::val, ViewPanData::vec, view_pan_exec(), view_pan_exit(), ViewPanData::x, ViewPanData::xorig, ViewPanData::y, and SpaceClip::zoom.
Referenced by CLIP_OT_view_pan().
|
static |
Definition at line 1019 of file clip_ops.cc.
References 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 631 of file clip_ops.cc.
References BLI_time_now_seconds(), CTX_wm_region(), CTX_wm_space_clip(), ED_region_tag_redraw(), float, ViewZoomData::location, wmOperator::ptr, RNA_float_set(), sclip_zoom_set(), time, ViewZoomData::timer_lastdraw, USER_ZOOM_CONTINUE, USER_ZOOM_HORIZ, USER_ZOOM_INVERT, USER_ZOOM_SCALE, ViewZoomData::x, wmEvent::xy, ViewZoomData::y, SpaceClip::zoom, and ViewZoomData::zoom.
Referenced by view_zoom_modal().
|
static |
Definition at line 699 of file clip_ops.cc.
References view_zoom_exit().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 598 of file clip_ops.cc.
References 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 578 of file clip_ops.cc.
References CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_clip(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN(), ViewZoomData::own_cursor, ViewZoomData::timer, wmTimer::win, WM_cursor_modal_restore(), WM_event_timer_remove(), SpaceClip::zoom, and ViewZoomData::zoom.
Referenced by view_zoom_cancel(), and view_zoom_modal().
|
static |
Definition at line 744 of file clip_ops.cc.
References CTX_wm_region(), ED_region_tag_redraw(), OPERATOR_FINISHED, powf, wmOperator::ptr, RNA_float_get_array(), sclip_zoom_set_factor(), and USER_ZOOM_TO_MOUSEPOS.
Referenced by CLIP_OT_view_zoom_in(), and view_zoom_in_invoke().
|
static |
Definition at line 757 of file clip_ops.cc.
References 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 547 of file clip_ops.cc.
References BLI_time_now_seconds(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_clip(), CTX_wm_window(), wmOperator::customdata, ED_clip_mouse_pos(), wmWindow::grabcursor, ViewZoomData::launch_event, ViewZoomData::location, wmEvent::mval, ViewZoomData::own_cursor, TIMER, ViewZoomData::timer, ViewZoomData::timer_lastdraw, wmEvent::type, USER_ZOOM_CONTINUE, WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_event_timer_add(), WM_userdef_event_type_from_keymap_type(), ViewZoomData::x, ViewZoomData::y, SpaceClip::zoom, and ViewZoomData::zoom.
Referenced by view_zoom_invoke().
|
static |
Definition at line 607 of file clip_ops.cc.
References ELEM, MOUSEPAN, MOUSEZOOM, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set(), sclip_zoom_set_factor_exec(), wmEvent::type, USER_ZOOM_INVERT, and view_zoom_init().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 674 of file clip_ops.cc.
References wmEvent::customdata, wmOperator::customdata, KM_RELEASE, ViewZoomData::launch_event, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_get(), TIMER, ViewZoomData::timer, wmEvent::type, USER_ZOOM_TO_MOUSEPOS, wmEvent::val, view_zoom_apply(), and view_zoom_exit().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 801 of file clip_ops.cc.
References CTX_wm_region(), ED_region_tag_redraw(), OPERATOR_FINISHED, powf, wmOperator::ptr, RNA_float_get_array(), sclip_zoom_set_factor(), and USER_ZOOM_TO_MOUSEPOS.
Referenced by CLIP_OT_view_zoom_out(), and view_zoom_out_invoke().
|
static |
Definition at line 814 of file clip_ops.cc.
References 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 864 of file clip_ops.cc.
References CTX_wm_region(), CTX_wm_space_clip(), ED_region_tag_redraw(), int, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), sclip_zoom_set(), SpaceClip::xof, and SpaceClip::yof.
Referenced by CLIP_OT_view_zoom_ratio().