|
Blender V4.5
|
#include <view3d_navigate.hh>
Inherited by ViewOpsData_Utility.
Classes | |
| struct | [struct].init |
| struct | [struct].prev |
| struct | [struct].curr |
Public Member Functions | |
ViewOpsData definition | |
| void | init_context (bContext *C) |
| void | state_backup () |
| void | state_restore () |
| void | init_navigation (bContext *C, const wmEvent *event, const ViewOpsType *nav_type, const float dyn_ofs_override[3]=nullptr, const bool use_cursor_init=false) |
| void | end_navigation (bContext *C) |
Public Attributes | |
| Scene * | scene |
| ScrArea * | area |
| ARegion * | region |
| View3D * | v3d |
| RegionView3D * | rv3d |
| Depsgraph * | depsgraph |
| wmTimer * | timer |
| struct | init |
| struct | prev |
| struct | curr |
| const ViewOpsType * | nav_type |
| eViewOpsFlag | viewops_flag |
| float | reverse |
| bool | axis_snap |
| float | dyn_ofs [3] |
| bool | use_dyn_ofs |
| bool | use_dyn_ofs_ortho_correction |
Generic View Operator Custom-Data
Definition at line 109 of file view3d_navigate.hh.
| void ViewOpsData::end_navigation | ( | bContext * | C | ) |
Definition at line 381 of file view3d_navigate.cc.
References BLI_dial_free(), C, CTX_wm_manager(), ED_region_tag_redraw(), init, region, RegionView3D::rflag, rv3d, RV3D_NAVIGATING, this, timer, wmTimer::win, and WM_event_timer_remove().
Referenced by ED_view3d_navigation_do(), ED_view3d_navigation_free(), view3d_navigate_modal_fn(), viewops_data_free(), and vieworbit_exec().
| void ViewOpsData::init_context | ( | bContext * | C | ) |
Definition at line 80 of file view3d_navigate.cc.
References area, C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), depsgraph, ListBase::first, region, ARegion::regiondata, rv3d, scene, ScrArea::spacedata, and v3d.
Referenced by view3d_navigate_invoke_impl(), viewops_data_create(), ViewOpsData_Utility::ViewOpsData_Utility(), and vieworbit_exec().
| void ViewOpsData::init_navigation | ( | bContext * | C, |
| const wmEvent * | event, | ||
| const ViewOpsType * | nav_type, | ||
| const float | dyn_ofs_override[3] = nullptr, | ||
| const bool | use_cursor_init = false ) |
Definition at line 224 of file view3d_navigate.cc.
References add_v3_v3v3(), BLI_rcti_cent_x(), BLI_rcti_cent_y(), C, calctrackballvec(), closest_to_line_v3(), copy_qt_qt(), copy_v2_v2_int(), copy_v3_v3(), curr, depsgraph, RegionView3D::dist, dyn_ofs, ED_region_tag_redraw(), ED_view3d_calc_zfac(), ED_view3d_camera_lock_init_ex(), ED_view3d_persp_ensure(), ED_view3d_win_to_3d(), ED_view3d_win_to_vector(), ELEM, ViewOpsType::flag, init, RegionView3D::is_persp, len_v3v3(), wmEvent::mval, nav_type, navigate_pivot_get(), NDOF_NAVIGATION_MODE_FLY, negate_v3(), negate_v3_v3(), RegionView3D::ofs, RegionView3D::persmat, RegionView3D::persp, prev, region, reverse, RegionView3D::rflag, rv3d, RV3D_NAVIGATING, state_backup(), this, blender::math::transform_point(), U, use_dyn_ofs, use_dyn_ofs_ortho_correction, v3d, RegionView3D::viewinv, viewops_flag, VIEWOPS_FLAG_DEPTH_NAVIGATE, viewops_flag_from_prefs(), VIEWOPS_FLAG_INIT_ZFAC, VIEWOPS_FLAG_ORBIT_SELECT, VIEWOPS_FLAG_PERSP_ENSURE, VIEWOPS_FLAG_ZOOM_TO_MOUSE, RegionView3D::viewquat, ARegion::winrct, ARegion::winx, ARegion::winy, wmEvent::xy, and zero_v2_int().
Referenced by view3d_navigation_invoke_generic(), viewops_data_create(), vieworbit_exec(), and viewroll_exec().
| void ViewOpsData::state_backup | ( | ) |
Definition at line 91 of file view3d_navigate.cc.
References RegionView3D::camdx, RegionView3D::camdy, RegionView3D::camzoom, copy_qt_qt(), copy_v2_v2(), copy_v3_v3(), RegionView3D::dist, init, RegionView3D::ofs, RegionView3D::ofs_lock, RegionView3D::persp, rv3d, RegionView3D::view, RegionView3D::view_axis_roll, and RegionView3D::viewquat.
Referenced by init_navigation().
| void ViewOpsData::state_restore | ( | ) |
Definition at line 106 of file view3d_navigate.cc.
References area, RegionView3D::camdx, RegionView3D::camdy, RegionView3D::camzoom, copy_qt_qt(), copy_v2_v2(), copy_v3_v3(), depsgraph, RegionView3D::dist, ED_view3d_camera_lock_check(), ED_view3d_camera_lock_sync(), ED_view3d_offset_lock_check(), init, RegionView3D::ofs, RegionView3D::ofs_lock, RegionView3D::persp, region, rv3d, RV3D_BOXVIEW, RV3D_CAMOB, RV3D_LOCK_FLAGS, this, v3d, RegionView3D::view, view3d_boxview_sync(), RegionView3D::view_axis_roll, and RegionView3D::viewquat.
Referenced by viewdolly_modal(), viewmove_modal_impl(), viewroll_modal(), viewrotate_modal_impl(), and viewzoom_modal_impl().
| ScrArea* ViewOpsData::area |
Definition at line 112 of file view3d_navigate.hh.
Referenced by init_context(), state_restore(), viewdolly_apply(), viewdolly_exec(), viewmove_apply(), viewroll_apply(), viewzoom_apply_3d(), and viewzoom_invoke_impl().
| bool ViewOpsData::axis_snap |
Definition at line 183 of file view3d_navigate.hh.
Referenced by view3d_navigate_event(), and viewrotate_apply().
| struct ViewOpsData::[struct].curr ViewOpsData::curr |
Referenced by init_navigation(), vieworbit_exec(), viewrotate_apply(), and viewrotate_apply_snap().
| Depsgraph* ViewOpsData::depsgraph |
Definition at line 116 of file view3d_navigate.hh.
Referenced by ED_view3d_navigation_do(), init_context(), init_navigation(), state_restore(), viewdolly_apply(), viewmove_apply(), viewroll_apply(), viewroll_exec(), viewrotate_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), and viewzoom_invoke_impl().
| float ViewOpsData::dyn_ofs[3] |
Use for orbit selection and auto-dist.
Definition at line 186 of file view3d_navigate.hh.
Referenced by init_navigation(), vieworbit_exec(), viewroll_apply(), viewroll_exec(), and viewrotate_apply_dyn_ofs().
| struct ViewOpsData::[struct].init ViewOpsData::init |
Referenced by end_navigation(), init_navigation(), state_backup(), state_restore(), view3d_navigate_event(), viewdolly_apply(), viewdolly_exec(), viewdolly_invoke(), viewdolly_modal(), viewmove_apply(), viewroll_apply(), viewroll_invoke(), viewroll_modal(), viewrotate_apply(), viewrotate_apply_dyn_ofs(), viewrotate_apply_snap(), viewzoom_apply_3d(), viewzoom_apply_camera(), and viewzoom_invoke_impl().
| const ViewOpsType* ViewOpsData::nav_type |
Definition at line 179 of file view3d_navigate.hh.
Referenced by ED_view3d_navigation_do(), init_navigation(), view3d_navigate_event(), and view3d_navigate_modal_fn().
| struct ViewOpsData::[struct].prev ViewOpsData::prev |
| ARegion* ViewOpsData::region |
Definition at line 113 of file view3d_navigate.hh.
Referenced by ED_view3d_navigation_do(), end_navigation(), init_context(), init_navigation(), state_restore(), view3d_navigation_invoke_generic(), viewdolly_apply(), viewdolly_exec(), viewdolly_invoke(), viewmove_apply(), vieworbit_exec(), viewroll_apply(), viewroll_exec(), viewroll_invoke(), viewrotate_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), and viewzoom_invoke_impl().
| float ViewOpsData::reverse |
Definition at line 182 of file view3d_navigate.hh.
Referenced by init_navigation(), and viewrotate_apply().
| RegionView3D* ViewOpsData::rv3d |
Definition at line 115 of file view3d_navigate.hh.
Referenced by ED_view3d_navigation_do(), end_navigation(), init_context(), init_navigation(), state_backup(), state_restore(), view3d_navigate_event(), view3d_navigate_modal_fn(), viewdolly_apply(), viewdolly_invoke(), viewdolly_modal(), viewmove_apply(), viewmove_invoke_impl(), viewmove_modal_impl(), vieworbit_exec(), viewroll_apply(), viewroll_exec(), viewroll_invoke(), viewroll_modal(), viewrotate_apply(), viewrotate_apply_dyn_ofs(), viewrotate_apply_snap(), viewrotate_invoke_impl(), viewrotate_modal_impl(), viewzoom_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), viewzoom_invoke_impl(), and viewzoom_modal_impl().
| Scene* ViewOpsData::scene |
Context pointers (assigned by viewops_data_create).
Definition at line 111 of file view3d_navigate.hh.
Referenced by ED_view3d_navigation_do(), init_context(), viewzoom_apply_camera(), and viewzoom_invoke_impl().
| wmTimer* ViewOpsData::timer |
Needed for continuous zoom.
Definition at line 119 of file view3d_navigate.hh.
Referenced by end_navigation(), view3d_navigate_event(), and viewzoom_invoke_impl().
| bool ViewOpsData::use_dyn_ofs |
Definition at line 187 of file view3d_navigate.hh.
Referenced by init_navigation(), vieworbit_exec(), viewroll_apply(), viewroll_exec(), viewrotate_apply_dyn_ofs(), and viewrotate_invoke_impl().
| bool ViewOpsData::use_dyn_ofs_ortho_correction |
In orthographic views, a dynamic offset should not cause RegionView3D::ofs to end up at a location that has no relation to the content where ofs originated or to dyn_ofs. Failing to do so can cause the orthographic views ofs to be far away from the content to the point it gets clipped out of the view. See view3d_orbit_apply_dyn_ofs code-comments for an example, also see: #104385.
Definition at line 196 of file view3d_navigate.hh.
Referenced by init_navigation(), viewrotate_apply_dyn_ofs(), and viewrotate_invoke_impl().
| View3D* ViewOpsData::v3d |
Definition at line 114 of file view3d_navigate.hh.
Referenced by ED_view3d_navigation_do(), init_context(), init_navigation(), state_restore(), view3d_navigate_modal_fn(), view3d_navigation_invoke_generic(), viewdolly_apply(), viewdolly_invoke(), viewdolly_modal(), viewmove_apply(), viewmove_invoke_impl(), viewmove_modal_impl(), vieworbit_exec(), viewroll_apply(), viewroll_exec(), viewroll_invoke(), viewroll_modal(), viewrotate_apply(), viewrotate_invoke_impl(), viewrotate_modal_impl(), viewzoom_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), viewzoom_invoke_impl(), and viewzoom_modal_impl().
| eViewOpsFlag ViewOpsData::viewops_flag |
Definition at line 180 of file view3d_navigate.hh.
Referenced by init_navigation(), viewzoom_apply(), and viewzoom_invoke_impl().