|
Blender V4.3
|
#include "BKE_context.hh"#include "BKE_report.hh"#include "BLI_math_vector.h"#include "WM_api.hh"#include "RNA_access.hh"#include "ED_screen.hh"#include "view3d_intern.hh"#include "view3d_navigate.hh"Go to the source code of this file.
Functions | |
View Dolly Operator | |
Like zoom but translates the view offset along the view direction which avoids RegionView3D.dist approaching zero. | |
| void | viewdolly_modal_keymap (wmKeyConfig *keyconf) |
| static bool | viewdolly_offset_lock_check (bContext *C, wmOperator *op) |
| static void | view_dolly_to_vector_3d (ARegion *region, const float orig_ofs[3], const float dvec[3], float dfac) |
| static void | viewdolly_apply (ViewOpsData *vod, const int xy[2], const bool zoom_invert) |
| static int | viewdolly_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | viewdolly_exec (bContext *C, wmOperator *op) |
| static int | viewdolly_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | VIEW3D_OT_dolly (wmOperatorType *ot) |
Variables | |
| ViewOpsType | ViewOpsType_dolly |
| void VIEW3D_OT_dolly | ( | wmOperatorType * | ot | ) |
Definition at line 308 of file view3d_navigate_view_dolly.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, ViewOpsType::idname, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_GRAB_CURSOR_XY, ot, wmOperatorType::poll, V3D_OP_PROP_DELTA, V3D_OP_PROP_MOUSE_CO, V3D_OP_PROP_USE_MOUSE_INIT, view3d_navigate_cancel_fn(), view3d_operator_properties_common(), view3d_rotation_poll(), viewdolly_exec(), viewdolly_invoke(), viewdolly_modal(), and ViewOpsType_dolly.
Referenced by view3d_operatortypes().
|
static |
Definition at line 68 of file view3d_navigate_view_dolly.cc.
References madd_v3_v3v3fl(), and RegionView3D::ofs.
Referenced by viewdolly_apply(), and viewdolly_exec().
|
static |
Definition at line 77 of file view3d_navigate_view_dolly.cc.
References ViewOpsData::area, ViewOpsData::depsgraph, RegionView3D::dist, ED_region_tag_redraw(), ED_view3d_camera_lock_sync(), ViewOpsData::event_xy, ViewOpsData::init, ViewOpsData::mousevec, ViewOpsData::ofs, ViewOpsData::region, ViewOpsData::rv3d, RV3D_BOXVIEW, RV3D_LOCK_FLAGS, USER_ZOOM_HORIZ, ViewOpsData::v3d, view3d_boxview_sync(), view_dolly_to_vector_3d(), ARegion::winrct, rcti::xmax, xy, and rcti::ymax.
Referenced by viewdolly_invoke(), and viewdolly_modal().
|
static |
Definition at line 186 of file view3d_navigate_view_dolly.cc.
References ViewOpsData::area, copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, ED_region_tag_redraw(), ED_view3d_camera_lock_sync(), ViewOpsData::init, ViewOpsData::mousevec, negate_v3(), negate_v3_v3(), normalize_v3(), normalize_v3_v3(), RegionView3D::ofs, OPERATOR_FINISHED, wmOperator::ptr, ViewOpsData::region, RNA_boolean_get(), RNA_int_get(), RV3D_BOXVIEW, RV3D_LOCK_FLAGS, USER_ZOOM_TO_MOUSEPOS, view3d_boxview_sync(), view_dolly_to_vector_3d(), RegionView3D::viewinv, and viewops_data_free().
Referenced by VIEW3D_OT_dolly(), and viewdolly_invoke().
|
static |
Definition at line 238 of file view3d_navigate_view_dolly.cc.
References CTX_data_ensure_evaluated_depsgraph(), wmOperator::customdata, depsgraph, ED_region_tag_redraw(), ED_view3d_persp_switch_from_camera(), ED_view3d_smooth_view_force_finish(), ViewOpsData::event_xy, ViewOpsData::init, ViewOpsData::mousevec, MOUSEZOOM, negate_v3_v3(), normalize_v3(), OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, RegionView3D::persp, ViewOpsData::prev, wmEvent::prev_xy, wmOperator::ptr, ViewOpsData::region, RNA_boolean_get(), RNA_int_set(), RNA_struct_property_is_set(), ViewOpsData::rv3d, RV3D_CAMOB, RV3D_PERSP, wmEvent::type, USER_ZOOM_HORIZ, USER_ZOOM_INVERT, USER_ZOOM_TO_MOUSEPOS, ViewOpsData::v3d, viewdolly_apply(), viewdolly_exec(), viewdolly_offset_lock_check(), RegionView3D::viewinv, viewops_data_create(), viewops_data_free(), ViewOpsType_dolly, WM_event_add_modal_handler(), and wmEvent::xy.
Referenced by VIEW3D_OT_dolly().
|
static |
Definition at line 112 of file view3d_navigate_view_dolly.cc.
References CTX_wm_manager(), wmOperator::customdata, ED_screen_animation_playing(), ED_view3d_camera_lock_autokey(), ED_view3d_camera_lock_undo_push(), ViewOpsData::event_type, EVT_ESCKEY, EVT_MODAL_MAP, ViewOpsData::init, KM_PRESS, KM_RELEASE, MOUSEMOVE, wmOperatorType::name, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ret, ViewOpsData::rv3d, ViewOpsData::state_restore(), wmEvent::type, wmOperator::type, USER_ZOOM_INVERT, ViewOpsData::v3d, wmEvent::val, VIEW_APPLY, VIEW_CANCEL, VIEW_CONFIRM, VIEW_MODAL_CONFIRM, VIEW_PASS, viewdolly_apply(), viewops_data_free(), VIEWROT_MODAL_SWITCH_MOVE, VIEWROT_MODAL_SWITCH_ROTATE, WM_OP_INVOKE_DEFAULT, WM_operator_name_call(), and wmEvent::xy.
Referenced by VIEW3D_OT_dolly().
| void viewdolly_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 30 of file view3d_navigate_view_dolly.cc.
References wmKeyMap::modal_items, VIEW_MODAL_CANCEL, VIEW_MODAL_CONFIRM, VIEWROT_MODAL_SWITCH_MOVE, VIEWROT_MODAL_SWITCH_ROTATE, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().
|
static |
Definition at line 57 of file view3d_navigate_view_dolly.cc.
References BKE_report(), CTX_wm_region_view3d(), CTX_wm_view3d(), ED_view3d_offset_lock_check(), wmOperator::reports, and RPT_WARNING.
Referenced by viewdolly_invoke().
| ViewOpsType ViewOpsType_dolly |
Definition at line 332 of file view3d_navigate_view_dolly.cc.
Referenced by VIEW3D_OT_dolly(), and viewdolly_invoke().