|
Blender V4.3
|
#include "BLI_utildefines.h"Go to the source code of this file.
Classes | |
| struct | ViewOpsType |
| struct | ViewOpsData |
| struct | V3D_SmoothParams |
Macros | |
| #define | V3D_OP_TRACKBALLSIZE (1.1f) |
Enumerations | |
| enum | eV3D_OpPropFlag { V3D_OP_PROP_MOUSE_CO = (1 << 0) , V3D_OP_PROP_DELTA = (1 << 1) , V3D_OP_PROP_USE_ALL_REGIONS = (1 << 2) , V3D_OP_PROP_USE_MOUSE_INIT = (1 << 3) } |
| enum | eV3D_OpEvent { VIEW_PASS = 0 , VIEW_APPLY , VIEW_CONFIRM , VIEW_CANCEL } |
| enum | { VIEW_MODAL_CANCEL = 0 , VIEW_MODAL_CONFIRM = 1 , VIEWROT_MODAL_AXIS_SNAP_ENABLE = 2 , VIEWROT_MODAL_AXIS_SNAP_DISABLE = 3 , VIEWROT_MODAL_SWITCH_ZOOM = 4 , VIEWROT_MODAL_SWITCH_MOVE = 5 , VIEWROT_MODAL_SWITCH_ROTATE = 6 } |
| enum | eViewOpsFlag { VIEWOPS_FLAG_NONE = 0 , VIEWOPS_FLAG_ORBIT_SELECT = (1 << 0) , VIEWOPS_FLAG_DEPTH_NAVIGATE = (1 << 1) , VIEWOPS_FLAG_PERSP_ENSURE = (1 << 2) , VIEWOPS_FLAG_ZOOM_TO_MOUSE = (1 << 3) , VIEWOPS_FLAG_INIT_ZFAC = (1 << 4) } |
Variables | |
| ViewOpsType | ViewOpsType_dolly |
| const ViewOpsType | ViewOpsType_move |
| const ViewOpsType | ViewOpsType_roll |
| const ViewOpsType | ViewOpsType_rotate |
| const ViewOpsType | ViewOpsType_orbit |
| const ViewOpsType | ViewOpsType_pan |
| const ViewOpsType | ViewOpsType_zoom |
| #define V3D_OP_TRACKBALLSIZE (1.1f) |
Size of the sphere being dragged for trackball rotation within the view bounds. also affects speed (smaller is faster).
Definition at line 17 of file view3d_navigate.hh.
Referenced by calctrackballvec(), and viewrotate_apply().
| anonymous enum |
| Enumerator | |
|---|---|
| VIEW_MODAL_CANCEL | |
| VIEW_MODAL_CONFIRM | |
| VIEWROT_MODAL_AXIS_SNAP_ENABLE | |
| VIEWROT_MODAL_AXIS_SNAP_DISABLE | |
| VIEWROT_MODAL_SWITCH_ZOOM | |
| VIEWROT_MODAL_SWITCH_MOVE | |
| VIEWROT_MODAL_SWITCH_ROTATE | |
Definition at line 55 of file view3d_navigate.hh.
| enum eV3D_OpEvent |
| Enumerator | |
|---|---|
| VIEW_PASS | |
| VIEW_APPLY | |
| VIEW_CONFIRM | |
| VIEW_CANCEL | Only supported by some viewport operators. |
Definition at line 46 of file view3d_navigate.hh.
| enum eV3D_OpPropFlag |
| Enumerator | |
|---|---|
| V3D_OP_PROP_MOUSE_CO | |
| V3D_OP_PROP_DELTA | |
| V3D_OP_PROP_USE_ALL_REGIONS | |
| V3D_OP_PROP_USE_MOUSE_INIT | |
Definition at line 38 of file view3d_navigate.hh.
| enum eViewOpsFlag |
| Enumerator | |
|---|---|
| VIEWOPS_FLAG_NONE | |
| VIEWOPS_FLAG_ORBIT_SELECT | When enabled, rotate around the selection. |
| VIEWOPS_FLAG_DEPTH_NAVIGATE | When enabled, use the depth under the cursor for navigation. |
| VIEWOPS_FLAG_PERSP_ENSURE | When enabled run ED_view3d_persp_ensure this may switch out of camera view when orbiting or switch from orthographic to perspective when auto-perspective is enabled. Some operations don't require this (view zoom/pan or NDOF where subtle rotation is common so we don't want it to trigger auto-perspective). |
| VIEWOPS_FLAG_ZOOM_TO_MOUSE | |
| VIEWOPS_FLAG_INIT_ZFAC | |
Definition at line 65 of file view3d_navigate.hh.
| void axis_set_view | ( | bContext * | C, |
| View3D * | v3d, | ||
| ARegion * | region, | ||
| const float | quat_[4], | ||
| char | view, | ||
| char | view_axis_roll, | ||
| int | perspo, | ||
| const float * | align_to_quat, | ||
| const int | smooth_viewtx ) |
| align_to_quat | When not nullptr, set the axis relative to this rotation. |
Definition at line 885 of file view3d_navigate.cc.
References View3D::camera, V3D_SmoothParams::camera_old, copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), DEG_get_evaluated_object(), RegionView3D::dist, V3D_SmoothParams::dist, V3D_SmoothParams::dyn_ofs, ED_region_tag_redraw(), ED_view3d_from_object(), ED_view3d_smooth_view(), mul_qt_qtqt(), negate_v3(), normalize_qt_qt(), RegionView3D::ofs, V3D_SmoothParams::ofs, RegionView3D::persp, V3D_SmoothParams::quat, RV3D_CAMOB, RV3D_LOCK_FLAGS, RV3D_LOCK_ROTATION, RV3D_ORTHO, RV3D_VIEW_AXIS_ROLL_0, RV3D_VIEW_IS_AXIS, RV3D_VIEW_USER, V3D_SmoothParams::undo_str, USER_AUTOPERSP, USER_ORBIT_SELECTION, RegionView3D::view, view, view3d_orbit_calc_center(), and RegionView3D::view_axis_roll.
Referenced by view_axis_exec(), and view_camera_exec().
Definition at line 665 of file view3d_navigate.cc.
References BLI_rcti_cent_x(), BLI_rcti_cent_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), float, len_v2(), M_SQRT2, min_ff(), sqrtf, square_f(), and V3D_OP_TRACKBALLSIZE.
Referenced by ViewOpsData::init_navigation(), and viewrotate_apply().
| void ED_view3d_smooth_view | ( | bContext * | C, |
| View3D * | v3d, | ||
| ARegion * | region, | ||
| int | smooth_viewtx, | ||
| const V3D_SmoothParams * | sview ) |
Definition at line 385 of file view3d_navigate_smoothview.cc.
References CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_window(), depsgraph, ED_view3d_smooth_view_ex(), ED_view3d_smooth_view_undo_begin(), ED_view3d_smooth_view_undo_end(), V3D_SmoothParams::undo_grouped, and V3D_SmoothParams::undo_str.
Referenced by axis_set_view(), sync_viewport_camera_smoothview(), view3d_from_minmax(), view3d_setobjectascamera_exec(), view3d_zoom_border_exec(), view_camera_exec(), viewcenter_cursor_exec(), viewcenter_pick_invoke(), vieworbit_exec(), and viewroll_exec().
| void ED_view3d_smooth_view_ex | ( | const Depsgraph * | depsgraph, |
| wmWindowManager * | wm, | ||
| wmWindow * | win, | ||
| ScrArea * | area, | ||
| View3D * | v3d, | ||
| ARegion * | region, | ||
| int | smooth_viewtx, | ||
| const V3D_SmoothParams * | sview ) |
The arguments are the desired situation.
Definition at line 205 of file view3d_navigate_smoothview.cc.
References angle_signed_normalized_qtqt(), BLI_assert, BLI_assert_msg, CAM_ORTHO, V3D_SmoothParams::camera, View3D::camera, V3D_SmoothParams::camera_old, copy_qt_qt(), copy_v3_v3(), Object::data, DEG_get_evaluated_object(), depsgraph, RegionView3D::dist, SmoothView3DState::dist, V3D_SmoothParams::dist, double(), SmoothView3DStore::dst, SmoothView3DStore::dyn_ofs, V3D_SmoothParams::dyn_ofs, ED_region_tag_redraw(), ED_view3d_camera_lock_init(), ED_view3d_camera_lock_sync(), ED_view3d_from_object(), ED_view3d_offset_distance(), equals_v3v3(), equals_v4v4(), fabsf, Object::id, RegionView3D::is_persp, SmoothView3DState::lens, V3D_SmoothParams::lens, View3D::lens, M_PI, MEM_mallocN, OB_CAMERA, OB_RENDER, RegionView3D::ofs, SmoothView3DState::ofs, V3D_SmoothParams::ofs, SmoothView3DStore::org, SmoothView3DStore::org_view, SmoothView3DStore::org_view_axis_roll, RegionView3D::persp, SmoothView3DState::quat, V3D_SmoothParams::quat, RegionView3D::rflag, RV3D_BOXVIEW, RV3D_LOCK_FLAGS, RV3D_LOCK_ROTATION, RV3D_NAVIGATING, RV3D_ORTHO, RV3D_PERSP, RV3D_VIEW_USER, View3D::shading, RegionView3D::smooth_timer, RegionView3D::sms, SmoothView3DStore::src, ID::tag, SmoothView3DStore::time_allowed, TIMER1, SmoothView3DStore::to_camera, Object::type, View3DShading::type, V3D_SmoothParams::undo_str, SmoothView3DStore::use_dyn_ofs, RegionView3D::view, view3d_boxview_copy(), VIEW3D_DIST_FALLBACK, view3d_orbit_apply_dyn_ofs(), view3d_smooth_view_state_backup(), view3d_smooth_view_state_restore(), RegionView3D::view_axis_roll, RegionView3D::view_render, RegionView3D::viewquat, WM_event_add_mousemove(), WM_event_timer_add(), and WM_event_timer_remove().
Referenced by ED_view3d_smooth_view(), view3d_localview_exit(), and view3d_localview_init().
Apply the smooth-view immediately, use when we need to start a new view operation. (so we don't end up half-applying a view operation when pressing keys quickly).
Definition at line 564 of file view3d_navigate_smoothview.cc.
References CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_window(), depsgraph, RegionView3D::sms, and view3d_smooth_view_force_finish_ex().
Referenced by view3d_from_minmax(), view3d_navigation_invoke_generic(), view_axis_exec(), view_camera_exec(), viewcenter_cursor_exec(), viewcenter_pick_invoke(), viewdolly_invoke(), vieworbit_exec(), and viewroll_invoke().
| void ED_view3d_smooth_view_force_finish_no_camera_lock | ( | const Depsgraph * | depsgraph, |
| wmWindowManager * | wm, | ||
| wmWindow * | win, | ||
| const Scene * | scene, | ||
| View3D * | v3d, | ||
| ARegion * | region ) |
A version of ED_view3d_smooth_view_force_finish that doesn't support camera locking or auto-keying. Use for viewport actions that don't control the camera, entering/exiting the local-view for example (see code-comments for details).
Definition at line 578 of file view3d_navigate_smoothview.cc.
References depsgraph, RegionView3D::sms, and view3d_smooth_view_force_finish_ex().
Referenced by view3d_localview_exit(), and view3d_localview_init().
Call before multiple smooth-view operations begin to properly handle undo.
Definition at line 46 of file view3d_navigate_smoothview.cc.
References View3D::camera, ED_view3d_camera_lock_undo_test(), Object::id, ID_TAG_DOIT, LISTBASE_FOREACH, RGN_TYPE_WINDOW, and ID::tag.
Referenced by ED_view3d_smooth_view(), view3d_all_exec(), and viewselected_exec().
| void ED_view3d_smooth_view_undo_end | ( | bContext * | C, |
| const ScrArea * | area, | ||
| const char * | undo_str, | ||
| bool | undo_grouped ) |
Run after multiple smooth-view operations have run to push undo as needed.
Definition at line 71 of file view3d_navigate_smoothview.cc.
References View3D::camera, ED_view3d_camera_lock_undo_grouped_push(), ED_view3d_camera_lock_undo_push(), ED_view3d_camera_lock_undo_test(), Object::id, ID_TAG_DOIT, LISTBASE_FOREACH, ARegion::regiondata, RGN_TYPE_WINDOW, RegionView3D::sms, ID::tag, USER_GLOBALUNDO, and view3d_smoothview_apply_with_interp().
Referenced by ED_view3d_smooth_view(), view3d_all_exec(), and viewselected_exec().
| ENUM_OPERATORS | ( | eV3D_OpPropFlag | , |
| V3D_OP_PROP_USE_MOUSE_INIT | ) |
| ENUM_OPERATORS | ( | eViewOpsFlag | , |
| VIEWOPS_FLAG_INIT_ZFAC | ) |
| void fly_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 94 of file view3d_navigate_fly.cc.
References FLY_MODAL_ACCELERATE, FLY_MODAL_AXIS_LOCK_X, FLY_MODAL_AXIS_LOCK_Z, FLY_MODAL_CANCEL, FLY_MODAL_CONFIRM, FLY_MODAL_DECELERATE, FLY_MODAL_DIR_BACKWARD, FLY_MODAL_DIR_DOWN, FLY_MODAL_DIR_FORWARD, FLY_MODAL_DIR_LEFT, FLY_MODAL_DIR_RIGHT, FLY_MODAL_DIR_UP, FLY_MODAL_FREELOOK_DISABLE, FLY_MODAL_FREELOOK_ENABLE, FLY_MODAL_PAN_DISABLE, FLY_MODAL_PAN_ENABLE, FLY_MODAL_PRECISION_DISABLE, FLY_MODAL_PRECISION_ENABLE, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().
| void view3d_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 238 of file view3d_ops.cc.
References fly_modal_keymap(), RGN_TYPE_WINDOW, SPACE_VIEW3D, viewdolly_modal_keymap(), viewmove_modal_keymap(), viewplace_modal_keymap(), viewrotate_modal_keymap(), viewzoom_modal_keymap(), walk_modal_keymap(), and WM_keymap_ensure().
Referenced by ED_spacetype_view3d().
| bool view3d_location_poll | ( | bContext * | C | ) |
Definition at line 583 of file view3d_navigate.cc.
References RV3D_LOCK_LOCATION, and view3d_navigation_poll_impl().
Referenced by VIEW3D_OT_move(), VIEW3D_OT_view_center_cursor(), VIEW3D_OT_view_center_pick(), and VIEW3D_OT_view_pan().
| void view3d_navigate_cancel_fn | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 624 of file view3d_navigate.cc.
References wmOperator::customdata, and viewops_data_free().
Referenced by VIEW3D_OT_dolly(), VIEW3D_OT_move(), VIEW3D_OT_rotate(), VIEW3D_OT_view_roll(), and VIEW3D_OT_zoom().
| int view3d_navigate_invoke_impl | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event, | ||
| const ViewOpsType * | nav_type ) |
Definition at line 557 of file view3d_navigate.cc.
References wmOperator::customdata, ViewOpsData::init_context(), OPERATOR_RUNNING_MODAL, wmOperator::ptr, ret, view3d_navigation_invoke_generic(), viewops_data_free(), and WM_event_add_modal_handler().
Referenced by viewmove_invoke(), viewpan_invoke(), viewrotate_invoke(), and viewzoom_invoke().
| int view3d_navigate_modal_fn | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 598 of file view3d_navigate.cc.
References ViewOpsType::apply_fn, wmOperator::customdata, ED_view3d_camera_lock_undo_push(), ViewOpsData::end_navigation(), ViewOpsType::idname, wmOperatorType::name, ViewOpsData::nav_type, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ret, ViewOpsData::rv3d, wmOperator::type, ViewOpsData::v3d, view3d_navigate_event(), view3d_navigation_invoke_generic(), viewops_data_free(), WM_operator_type_set(), WM_operatortype_find(), and wmEvent::xy.
Referenced by VIEW3D_OT_move(), VIEW3D_OT_rotate(), and VIEW3D_OT_zoom().
| void view3d_operator_properties_common | ( | wmOperatorType * | ot, |
| const eV3D_OpPropFlag | flag ) |
Definition at line 636 of file view3d_navigate.cc.
References flag, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int(), RNA_def_property_flag(), wmOperatorType::srna, V3D_OP_PROP_DELTA, V3D_OP_PROP_MOUSE_CO, V3D_OP_PROP_USE_ALL_REGIONS, V3D_OP_PROP_USE_MOUSE_INIT, and WM_operator_properties_use_cursor_init().
Referenced by VIEW3D_OT_dolly(), VIEW3D_OT_move(), VIEW3D_OT_rotate(), VIEW3D_OT_view_all(), VIEW3D_OT_view_selected(), and VIEW3D_OT_zoom().
| void view3d_orbit_apply_dyn_ofs | ( | float | r_ofs[3], |
| const float | ofs_old[3], | ||
| const float | viewquat_old[4], | ||
| const float | viewquat_new[4], | ||
| const float | dyn_ofs[3] ) |
Definition at line 689 of file view3d_navigate.cc.
References add_v3_v3(), invert_qt_normalized(), invert_qt_qt_normalized(), mul_qt_qtqt(), mul_qt_v3(), and sub_v3_v3v3().
Referenced by ED_view3d_smooth_view_ex(), view3d_smoothview_apply_with_interp(), viewroll_apply(), and viewrotate_apply_dyn_ofs().
Definition at line 783 of file view3d_navigate.cc.
References add_v3_v3(), BASE_SELECTED, BKE_object_boundbox_get(), BKE_object_pose_armature_get(), BKE_paint_stroke_get_average(), BKE_view_layer_active_object_get(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), bounds(), copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_view3d(), Object::data, DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), DEG_get_original_object(), depsgraph, ED_transform_calc_pivot_pos(), Curve::editfont, LISTBASE_FOREACH, blender::math::midpoint(), Object::mode, mul_v3_fl(), OB_FONT, OB_MODE_ALL_PAINT, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_WEIGHT_PAINT, EditFont::textcurs, blender::math::transform_point(), Object::type, V3D_AROUND_CENTER_MEDIAN, and zero_v3().
Referenced by axis_set_view(), and navigate_pivot_get().
| 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().
| void VIEW3D_OT_fly | ( | wmOperatorType * | ot | ) |
Definition at line 1146 of file view3d_navigate_fly.cc.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::flag, fly_cancel(), fly_invoke(), fly_modal(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, ot, and wmOperatorType::poll.
Referenced by view3d_operatortypes().
| void VIEW3D_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 109 of file view3d_navigate_view_move.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, ViewOpsType::idname, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, ot, wmOperatorType::poll, V3D_OP_PROP_USE_MOUSE_INIT, view3d_location_poll(), view3d_navigate_cancel_fn(), view3d_navigate_modal_fn(), view3d_operator_properties_common(), viewmove_invoke(), and ViewOpsType_move.
Referenced by view3d_operatortypes().
| void VIEW3D_OT_rotate | ( | wmOperatorType * | ot | ) |
Definition at line 371 of file view3d_navigate_view_rotate.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, ViewOpsType::idname, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, ot, wmOperatorType::poll, V3D_OP_PROP_USE_MOUSE_INIT, view3d_navigate_cancel_fn(), view3d_navigate_modal_fn(), view3d_operator_properties_common(), view3d_rotation_poll(), ViewOpsType_rotate, and viewrotate_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_smoothview | ( | wmOperatorType * | ot | ) |
Definition at line 605 of file view3d_navigate_smoothview.cc.
References ED_operator_view3d_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, and view3d_smoothview_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 271 of file view3d_navigate_view_all.cc.
References wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, V3D_OP_PROP_USE_ALL_REGIONS, view3d_all_exec(), and view3d_operator_properties_common().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_axis | ( | wmOperatorType * | ot | ) |
Definition at line 157 of file view3d_navigate_view_axis.cc.
References BLT_I18NCONTEXT_EDITOR_VIEW3D, wmOperatorType::description, ED_operator_rv3d_user_region_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_SKIP_SAVE, prop_view_items, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), RNA_def_property_translation_context(), wmOperatorType::srna, and view_axis_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_camera | ( | wmOperatorType * | ot | ) |
Definition at line 118 of file view3d_navigate_view_camera.cc.
References wmOperatorType::description, ED_operator_rv3d_user_region_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view_camera_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_center_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 52 of file view3d_navigate_view_center_cursor.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, view3d_location_poll(), and viewcenter_cursor_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_center_pick | ( | wmOperatorType * | ot | ) |
Definition at line 63 of file view3d_navigate_view_center_pick.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, view3d_location_poll(), and viewcenter_pick_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_orbit | ( | wmOperatorType * | ot | ) |
Definition at line 134 of file view3d_navigate_view_orbit.cc.
References wmOperatorType::description, ED_operator_rv3d_user_region_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, ViewOpsType::idname, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_SKIP_SAVE, prop_view_orbit_items, RNA_def_enum(), RNA_def_float(), RNA_def_property_flag(), wmOperatorType::srna, ViewOpsType_orbit, and vieworbit_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_pan | ( | wmOperatorType * | ot | ) |
Definition at line 72 of file view3d_navigate_view_pan.cc.
References wmOperatorType::description, wmOperatorType::flag, ViewOpsType::idname, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, prop_view_pan_items, RNA_def_enum(), wmOperatorType::srna, view3d_location_poll(), ViewOpsType_pan, and viewpan_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_roll | ( | wmOperatorType * | ot | ) |
Definition at line 268 of file view3d_navigate_view_roll.cc.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_rv3d_user_region_poll(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, ViewOpsType::idname, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_SKIP_SAVE, prop_view_roll_items, RNA_def_enum(), RNA_def_float(), RNA_def_property_flag(), wmOperatorType::srna, view3d_navigate_cancel_fn(), ViewOpsType_roll, viewroll_exec(), viewroll_invoke(), and viewroll_modal().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 431 of file view3d_navigate_view_all.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, V3D_OP_PROP_USE_ALL_REGIONS, view3d_operator_properties_common(), view3d_zoom_or_dolly_poll(), and viewselected_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_walk | ( | wmOperatorType * | ot | ) |
Definition at line 1547 of file view3d_navigate_walk.cc.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, walk_cancel(), walk_invoke(), and walk_modal().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 529 of file view3d_navigate_view_zoom.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, ViewOpsType::idname, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, 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_navigate_modal_fn(), view3d_operator_properties_common(), view3d_zoom_or_dolly_poll(), ViewOpsType_zoom, viewzoom_exec(), and viewzoom_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_zoom_border | ( | wmOperatorType * | ot | ) |
Definition at line 187 of file view3d_navigate_zoom_border.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, view3d_zoom_border_exec(), view3d_zoom_or_dolly_poll(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_gesture_box_zoom().
Referenced by view3d_operatortypes().
| bool view3d_rotation_poll | ( | bContext * | C | ) |
Definition at line 588 of file view3d_navigate.cc.
References RV3D_LOCK_ROTATION, and view3d_navigation_poll_impl().
Referenced by VIEW3D_OT_dolly(), and VIEW3D_OT_rotate().
| bool view3d_zoom_or_dolly_poll | ( | bContext * | C | ) |
Definition at line 593 of file view3d_navigate.cc.
References RV3D_LOCK_ZOOM_AND_DOLLY, and view3d_navigation_poll_impl().
Referenced by VIEW3D_OT_view_selected(), VIEW3D_OT_zoom(), and VIEW3D_OT_zoom_border().
| 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().
| void viewmove_apply | ( | ViewOpsData * | vod, |
| int | x, | ||
| int | y ) |
Definition at line 994 of file view3d_navigate.cc.
References ViewOpsData::area, ViewOpsData::depsgraph, ED_region_tag_redraw(), ED_view3d_camera_lock_check(), ED_view3d_camera_lock_sync(), ED_view3d_camera_view_pan(), ED_view3d_offset_lock_check(), ED_view3d_win_to_delta(), ViewOpsData::event_xy, float, ViewOpsData::init, RegionView3D::ofs, RegionView3D::ofs_lock, RegionView3D::persp, ViewOpsData::prev, ViewOpsData::region, ViewOpsData::rv3d, RV3D_BOXVIEW, RV3D_CAMOB, RV3D_LOCK_FLAGS, sub_v3_v3(), ViewOpsData::v3d, view3d_boxview_sync(), ARegion::winx, ARegion::winy, x, y, and ViewOpsData::zfac.
Referenced by viewmove_invoke_impl(), viewmove_modal_impl(), and viewpan_invoke_impl().
| void viewmove_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 24 of file view3d_navigate_view_move.cc.
References wmKeyMap::modal_items, VIEW_MODAL_CANCEL, VIEW_MODAL_CONFIRM, VIEWROT_MODAL_SWITCH_ROTATE, VIEWROT_MODAL_SWITCH_ZOOM, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().
| ViewOpsData * viewops_data_create | ( | bContext * | C, |
| const wmEvent * | event, | ||
| const ViewOpsType * | nav_type, | ||
| const bool | use_cursor_init ) |
Allocate, fill in context pointers and calculate the values for ViewOpsData
Definition at line 856 of file view3d_navigate.cc.
References ViewOpsData::init_context(), and ViewOpsData::init_navigation().
Referenced by viewdolly_invoke(), and viewroll_invoke().
| void viewops_data_free | ( | bContext * | C, |
| ViewOpsData * | vod ) |
Allocate and fill in context pointers for ViewOpsData
Definition at line 867 of file view3d_navigate.cc.
References ViewOpsData::end_navigation().
Referenced by view3d_navigate_cancel_fn(), view3d_navigate_invoke_impl(), view3d_navigate_modal_fn(), viewdolly_exec(), viewdolly_invoke(), viewdolly_modal(), viewroll_exec(), viewroll_invoke(), and viewroll_modal().
| void viewrotate_apply_dyn_ofs | ( | ViewOpsData * | vod, |
| const float | viewquat_new[4] ) |
Definition at line 769 of file view3d_navigate.cc.
References ViewOpsData::dyn_ofs, ViewOpsData::init, RegionView3D::ofs, ViewOpsData::ofs, ViewOpsData::quat, ViewOpsData::rv3d, ViewOpsData::use_dyn_ofs, ViewOpsData::use_dyn_ofs_ortho_correction, view3d_orbit_apply_dyn_ofs(), and view3d_orbit_apply_dyn_ofs_ortho_correction().
Referenced by viewrotate_apply(), and viewrotate_apply_snap().
| void viewrotate_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 26 of file view3d_navigate_view_rotate.cc.
References wmKeyMap::modal_items, VIEW_MODAL_CANCEL, VIEW_MODAL_CONFIRM, VIEWROT_MODAL_AXIS_SNAP_DISABLE, VIEWROT_MODAL_AXIS_SNAP_ENABLE, VIEWROT_MODAL_SWITCH_MOVE, VIEWROT_MODAL_SWITCH_ZOOM, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().
| void viewzoom_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 29 of file view3d_navigate_view_zoom.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().
| void walk_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 138 of file view3d_navigate_walk.cc.
References wmKeyMap::modal_items, WALK_MODAL_ACCELERATE, WALK_MODAL_AXIS_LOCK_Z, WALK_MODAL_CANCEL, WALK_MODAL_CONFIRM, WALK_MODAL_DECELERATE, WALK_MODAL_DECREASE_JUMP, WALK_MODAL_DIR_BACKWARD, WALK_MODAL_DIR_BACKWARD_STOP, WALK_MODAL_DIR_DOWN, WALK_MODAL_DIR_DOWN_STOP, WALK_MODAL_DIR_FORWARD, WALK_MODAL_DIR_FORWARD_STOP, WALK_MODAL_DIR_LEFT, WALK_MODAL_DIR_LEFT_STOP, WALK_MODAL_DIR_LOCAL_DOWN, WALK_MODAL_DIR_LOCAL_DOWN_STOP, WALK_MODAL_DIR_LOCAL_UP, WALK_MODAL_DIR_LOCAL_UP_STOP, WALK_MODAL_DIR_RIGHT, WALK_MODAL_DIR_RIGHT_STOP, WALK_MODAL_DIR_UP, WALK_MODAL_DIR_UP_STOP, WALK_MODAL_FAST_DISABLE, WALK_MODAL_FAST_ENABLE, WALK_MODAL_GRAVITY_TOGGLE, WALK_MODAL_INCREASE_JUMP, WALK_MODAL_JUMP, WALK_MODAL_JUMP_STOP, WALK_MODAL_SLOW_DISABLE, WALK_MODAL_SLOW_ENABLE, WALK_MODAL_TELEPORT, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().
|
extern |
Definition at line 332 of file view3d_navigate_view_dolly.cc.
Referenced by VIEW3D_OT_dolly(), and viewdolly_invoke().
|
extern |
Definition at line 131 of file view3d_navigate_view_move.cc.
Referenced by view3d_navigate_event(), view3d_navigation_type_from_idname(), VIEW3D_OT_move(), and viewmove_invoke().
|
extern |
Definition at line 160 of file view3d_navigate_view_orbit.cc.
Referenced by VIEW3D_OT_view_orbit(), and vieworbit_exec().
|
extern |
Definition at line 93 of file view3d_navigate_view_pan.cc.
Referenced by view3d_navigation_type_from_idname(), VIEW3D_OT_view_pan(), and viewpan_invoke().
|
extern |
Definition at line 302 of file view3d_navigate_view_roll.cc.
Referenced by VIEW3D_OT_view_roll(), viewroll_exec(), and viewroll_invoke().
|
extern |
Definition at line 392 of file view3d_navigate_view_rotate.cc.
Referenced by view3d_navigate_event(), view3d_navigation_type_from_idname(), VIEW3D_OT_rotate(), and viewrotate_invoke().
|
extern |
Definition at line 553 of file view3d_navigate_view_zoom.cc.
Referenced by view3d_navigate_event(), view3d_navigation_type_from_idname(), VIEW3D_OT_zoom(), and viewzoom_invoke().