|
Blender V5.0
|
#include <optional>#include "MEM_guardedalloc.h"#include "BLI_bounds_types.hh"#include "BLI_math_vector_types.hh"#include "BLI_utildefines.h"#include "DNA_windowmanager_enums.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 25 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 65 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 56 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 48 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 75 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 932 of file view3d_navigate.cc.
References C, View3D::camera, V3D_SmoothParams::camera_old, copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), DEG_get_evaluated(), 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, ARegion::regiondata, RV3D_CAMOB, RV3D_LOCK_FLAGS, RV3D_LOCK_ROTATION, RV3D_ORTHO, RV3D_VIEW_AXIS_ROLL_0, RV3D_VIEW_IS_AXIS, RV3D_VIEW_USER, U, 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 695 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(), size(), 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 387 of file view3d_navigate_smoothview.cc.
References C, 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(), depsgraph, RegionView3D::dist, SmoothView3DState::dist, V3D_SmoothParams::dist, 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, ID_TAG_DOIT, 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, ARegion::regiondata, 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, Camera::type, 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 568 of file view3d_navigate_smoothview.cc.
References C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_window(), depsgraph, ARegion::regiondata, RegionView3D::sms, and view3d_smooth_view_force_finish_ex().
Referenced by view3d_camera_to_view_exec(), view3d_from_minmax(), view3d_navigation_invoke_generic(), view3d_setobjectascamera_exec(), view_axis_exec(), view_camera_exec(), viewcenter_cursor_exec(), viewcenter_pick_invoke(), viewdolly_invoke(), vieworbit_exec(), viewpersportho_exec(), viewroll_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 582 of file view3d_navigate_smoothview.cc.
References depsgraph, ARegion::regiondata, 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 C, View3D::camera, ED_view3d_camera_lock_undo_test(), ListBase::first, Object::id, ID_TAG_DOIT, LISTBASE_FOREACH, ScrArea::regionbase, RGN_TYPE_WINDOW, ScrArea::spacedata, 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 C, View3D::camera, ED_view3d_camera_lock_undo_grouped_push(), ED_view3d_camera_lock_undo_push(), ED_view3d_camera_lock_undo_test(), ListBase::first, Object::id, ID_TAG_DOIT, LISTBASE_FOREACH, ScrArea::regionbase, ARegion::regiondata, RGN_TYPE_WINDOW, RegionView3D::sms, ScrArea::spacedata, ID::tag, U, 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 | ) |
References V3D_OP_PROP_USE_MOUSE_INIT.
| ENUM_OPERATORS | ( | eViewOpsFlag | , |
| VIEWOPS_FLAG_INIT_ZFAC | ) |
References VIEWOPS_FLAG_INIT_ZFAC.
| void fly_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 100 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().
| std::optional< blender::Bounds< blender::float3 > > view3d_calc_minmax_selected | ( | Depsgraph * | depsgraph, |
| ScrArea * | area, | ||
| ARegion * | region, | ||
| bool | use_all_regions, | ||
| bool | clip_bounds, | ||
| bool * | r_do_zoom ) |
Return the bounds of selected contents of the 3D viewport.
| depsgraph | The evaluated depsgraph. |
| clip_bounds | Clip the bounds by the viewport clipping. |
| r_do_zoom | When false, the bounds should be treated as a point (don't zoom to view the point). |
Definition at line 244 of file view3d_navigate_view_all.cc.
References BASE_SELECTED, BASE_SELECTED_EDITABLE, BKE_paint_get_active_from_paintmode(), BKE_paint_select_face_test(), BKE_paint_stroke_get_average(), BKE_pose_minmax(), BKE_view_layer_active_object_get(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), bounds(), copy_v3_v3(), DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), DEG_get_input_scene(), DEG_get_input_view_layer(), DEG_get_original(), depsgraph, ED_view3d_camera_lock_check(), ED_view3d_clipping_clamp_minmax(), ED_view3d_minmax_verts(), ListBase::first, View3D::flag2, FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, INIT_MINMAX, Invalid, LISTBASE_FOREACH, blender::Bounds< T >::max, max, blender::Bounds< T >::min, min, minmax_v3v3_v3(), Object::mode, Base::next, OB_ARMATURE, OB_MODE_PARTICLE_EDIT, OB_MODE_POSE, OB_MODE_SCULPT, OB_MODE_SCULPT_CURVES, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, OBEDIT_FROM_OBACT, Base::object, paintface_minmax(), PE_minmax(), ARegion::regiondata, ARegion::runtime, RV3D_CLIPPING_ENABLED, Sculpt, ScrArea::spacedata, Texture3D, blender::bounds::transform_bounds(), Object::type, V3D_LOCK_CAMERA, Vertex, view3d_object_calc_minmax(), view3d_object_skip_minmax(), Weight, WM_gizmomap_is_any_selected(), and WM_gizmomap_minmax().
Referenced by viewselected_exec().
| std::optional< blender::Bounds< blender::float3 > > view3d_calc_minmax_visible | ( | Depsgraph * | depsgraph, |
| ScrArea * | area, | ||
| ARegion * | region, | ||
| bool | use_all_regions, | ||
| bool | clip_bounds ) |
Return the bounds of visible contents of the 3D viewport.
| depsgraph | The evaluated depsgraph. |
| clip_bounds | Clip the bounds by the viewport clipping. |
Definition at line 194 of file view3d_navigate_view_all.cc.
References BASE_VISIBLE, BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), DEG_get_input_scene(), DEG_get_original(), depsgraph, ED_view3d_camera_lock_check(), ED_view3d_clipping_clamp_minmax(), ListBase::first, View3D::flag2, INIT_MINMAX, LISTBASE_FOREACH, max, min, ARegion::regiondata, RV3D_CLIPPING_ENABLED, ScrArea::spacedata, V3D_LOCK_CAMERA, view3d_object_calc_minmax(), and view3d_object_skip_minmax().
Referenced by view3d_all_exec().
| bool view3d_calc_point_in_selected_bounds | ( | Depsgraph * | depsgraph, |
| struct ViewLayer * | view_layer_eval, | ||
| const View3D * | v3d, | ||
| const blender::float3 & | point, | ||
| const float | scale_margin ) |
Iterate over objects and check if point might is inside any of them.
Definition at line 393 of file view3d_navigate_view_all.cc.
References BASE_SELECTED, BKE_view_layer_object_bases_get(), BLI_assert, bounds(), DEG_get_input_scene(), DEG_is_original(), depsgraph, LISTBASE_FOREACH, max, min, blender::math::transform_point(), and view3d_object_calc_minmax().
| void view3d_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 255 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 606 of file view3d_navigate.cc.
References C, 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 654 of file view3d_navigate.cc.
References C, 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().
| wmOperatorStatus view3d_navigate_invoke_impl | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event, | ||
| const ViewOpsType * | nav_type ) |
Definition at line 579 of file view3d_navigate.cc.
References C, 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().
| wmOperatorStatus view3d_navigate_modal_fn | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 628 of file view3d_navigate.cc.
References ViewOpsType::apply_fn, C, 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 666 of file view3d_navigate.cc.
References flag, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int(), RNA_def_property_flag(), 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 719 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 813 of file view3d_navigate.cc.
References add_v2_v2(), add_v3_v3(), BASE_SELECTED, BKE_object_boundbox_get(), BKE_object_pose_armature_get(), BKE_paint_get_active_from_context(), BKE_paint_stroke_get_average(), BKE_view_layer_active_object_get(), BKE_view_layer_object_bases_get(), BKE_view_layer_synced_ensure(), bounds(), C, blender::ed::transform::calc_pivot_pos(), copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_view3d(), Object::data, DEG_get_evaluated_scene(), DEG_get_evaluated_view_layer(), DEG_get_original(), depsgraph, Curve::editfont, ELEM, View3D_Runtime::flag, i, LISTBASE_FOREACH, blender::math::midpoint(), Object::mode, mul_v3_fl(), negate_v3_v3(), OB_FONT, OB_MODE_ALL_PAINT, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_PAINT_GREASE_PENCIL, OB_MODE_SCULPT_CURVES, OB_MODE_SCULPT_GREASE_PENCIL, OB_MODE_VERTEX_GREASE_PENCIL, OB_MODE_WEIGHT_GREASE_PENCIL, OB_MODE_WEIGHT_PAINT, View3D_Runtime::ofs_last_center, View3D::runtime, EditFont::textcurs, blender::math::transform_point(), Object::type, V3D_AROUND_CENTER_MEDIAN, V3D_RUNTIME_OFS_LAST_CENTER_IS_VALID, and zero_v3().
Referenced by axis_set_view(), and navigate_pivot_get().
| void VIEW3D_OT_dolly | ( | wmOperatorType * | ot | ) |
Definition at line 328 of file view3d_navigate_view_dolly.cc.
References OPTYPE_BLOCKING, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_GRAB_CURSOR_XY, ot, V3D_OP_PROP_DELTA, V3D_OP_PROP_MOUSE_CO, V3D_OP_PROP_USE_MOUSE_INIT, view3d_navigate_cancel_fn(), view3d_operator_properties_common(), view3d_zoom_or_dolly_or_rotation_poll(), viewdolly_exec(), viewdolly_invoke(), viewdolly_modal(), and ViewOpsType_dolly.
Referenced by view3d_operatortypes().
| void VIEW3D_OT_fly | ( | wmOperatorType * | ot | ) |
Definition at line 1202 of file view3d_navigate_fly.cc.
References ED_operator_region_view3d_active(), fly_cancel(), fly_invoke(), fly_modal(), OPTYPE_BLOCKING, and ot.
Referenced by view3d_operatortypes().
| void VIEW3D_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 111 of file view3d_navigate_view_move.cc.
References OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, ot, 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 373 of file view3d_navigate_view_rotate.cc.
References OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, ot, 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 609 of file view3d_navigate_smoothview.cc.
References ED_operator_view3d_active(), OPTYPE_INTERNAL, ot, and view3d_smoothview_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 493 of file view3d_navigate_view_all.cc.
References ED_operator_region_view3d_active(), ot, RNA_def_boolean(), 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 158 of file view3d_navigate_view_axis.cc.
References BLT_I18NCONTEXT_EDITOR_VIEW3D, ED_operator_rv3d_user_region_poll(), ot, PROP_SKIP_SAVE, prop_view_items, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), RNA_def_property_translation_context(), and view_axis_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_camera | ( | wmOperatorType * | ot | ) |
Definition at line 116 of file view3d_navigate_view_camera.cc.
References ED_operator_rv3d_user_region_poll(), ot, and view_camera_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_center_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 50 of file view3d_navigate_view_center_cursor.cc.
References ot, view3d_location_poll(), and viewcenter_cursor_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_center_pick | ( | wmOperatorType * | ot | ) |
Definition at line 61 of file view3d_navigate_view_center_pick.cc.
References ot, view3d_location_poll(), and viewcenter_pick_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_orbit | ( | wmOperatorType * | ot | ) |
Definition at line 137 of file view3d_navigate_view_orbit.cc.
References ED_operator_rv3d_user_region_poll(), FLT_MAX, ot, PROP_SKIP_SAVE, prop_view_orbit_items, RNA_def_enum(), RNA_def_float(), RNA_def_property_flag(), ViewOpsType_orbit, and vieworbit_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_pan | ( | wmOperatorType * | ot | ) |
Definition at line 70 of file view3d_navigate_view_pan.cc.
References ot, prop_view_pan_items, RNA_def_enum(), view3d_location_poll(), ViewOpsType_pan, and viewpan_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_roll | ( | wmOperatorType * | ot | ) |
Definition at line 290 of file view3d_navigate_view_roll.cc.
References ED_operator_rv3d_user_region_poll(), FLT_MAX, ot, PROP_SKIP_SAVE, prop_view_roll_items, RNA_def_enum(), RNA_def_float(), RNA_def_property_flag(), 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 553 of file view3d_navigate_view_all.cc.
References ot, 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 1644 of file view3d_navigate_walk.cc.
References ED_operator_region_view3d_active(), ot, walk_cancel(), walk_invoke(), and walk_modal().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 523 of file view3d_navigate_view_zoom.cc.
References OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, ot, 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 188 of file view3d_navigate_zoom_border.cc.
References ot, 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 611 of file view3d_navigate.cc.
References C, RV3D_LOCK_ROTATION, and view3d_navigation_poll_impl().
Referenced by VIEW3D_OT_rotate().
| bool view3d_zoom_or_dolly_or_rotation_poll | ( | bContext * | C | ) |
Definition at line 621 of file view3d_navigate.cc.
References C, RV3D_LOCK_ROTATION, RV3D_LOCK_ZOOM_AND_DOLLY, and view3d_navigation_poll_impl().
Referenced by VIEW3D_OT_dolly().
| bool view3d_zoom_or_dolly_poll | ( | bContext * | C | ) |
Definition at line 616 of file view3d_navigate.cc.
References C, 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 1040 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 906 of file view3d_navigate.cc.
References C, 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 917 of file view3d_navigate.cc.
References C, and 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 799 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 144 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 354 of file view3d_navigate_view_dolly.cc.
Referenced by VIEW3D_OT_dolly(), and viewdolly_invoke().
|
extern |
Definition at line 133 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 163 of file view3d_navigate_view_orbit.cc.
Referenced by VIEW3D_OT_view_orbit(), and vieworbit_exec().
|
extern |
Definition at line 91 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 324 of file view3d_navigate_view_roll.cc.
Referenced by VIEW3D_OT_view_roll(), viewroll_exec(), and viewroll_invoke().
|
extern |
Definition at line 394 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 547 of file view3d_navigate_view_zoom.cc.
Referenced by view3d_navigate_event(), view3d_navigation_type_from_idname(), VIEW3D_OT_zoom(), and viewzoom_invoke().