|
Blender V4.3
|
#include "BKE_context.hh"#include "BLI_math_matrix.h"#include "BLI_math_rotation.h"#include "BLI_math_vector.h"#include "WM_api.hh"#include "ED_screen.hh"#include "view3d_intern.hh"#include "view3d_navigate.hh"Go to the source code of this file.
Functions | |
View Rotate Operator | |
| void | viewrotate_modal_keymap (wmKeyConfig *keyconf) |
| static void | viewrotate_apply_snap (ViewOpsData *vod) |
| static void | viewrotate_apply (ViewOpsData *vod, const int event_xy[2]) |
| static int | viewrotate_modal_impl (bContext *C, ViewOpsData *vod, const eV3D_OpEvent event_code, const int xy[2]) |
| static int | viewrotate_invoke_impl (bContext *, ViewOpsData *vod, const wmEvent *event, PointerRNA *) |
| static int | viewrotate_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | VIEW3D_OT_rotate (wmOperatorType *ot) |
Variables | |
| const ViewOpsType | ViewOpsType_rotate |
| 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().
|
static |
Definition at line 164 of file view3d_navigate_view_rotate.cc.
References angle(), angle_normalized_v3v3(), angle_wrap_rad(), axis_angle_to_quat(), axis_angle_to_quat_single(), ViewOpsData::axis_snap, calctrackballvec(), copy_qt_qt(), copy_v3_v3(), cross_v3_v3v3(), ViewOpsData::curr, ViewOpsData::depsgraph, dot_v3v3(), ED_region_tag_redraw(), ED_view3d_camera_lock_sync(), ViewOpsData::event_xy, ViewOpsData::event_xy_offset, fabsf, float, ViewOpsData::init, interp_v3_v3v3(), invert_m3_m3(), len_squared_v3v3(), len_v3(), M_PI, mul_qt_qtqt(), negate_v3(), normalize_qt(), ViewOpsData::prev, q1, ViewOpsData::quat, quat_to_mat3(), ViewOpsData::region, ViewOpsData::reverse, ViewOpsData::rv3d, RV3D_VIEW_USER, sub_v3_v3v3(), ViewOpsData::trackvec, UI_SCALE_FAC, USER_TRACKBALL, ViewOpsData::v3d, V3D_OP_TRACKBALLSIZE, RegionView3D::view, RegionView3D::viewquat, ViewOpsData::viewquat, viewrotate_apply_dyn_ofs(), viewrotate_apply_snap(), and ARegion::winrct.
Referenced by viewrotate_invoke_impl(), and viewrotate_modal_impl().
|
static |
Definition at line 54 of file view3d_navigate_view_rotate.cc.
References angle(), angle_normalized_v3v3(), angle_v3v3(), axis_angle_to_quat(), axis_limit(), copy_qt_qt(), copy_v3_v3(), ViewOpsData::curr, DEG2RADF, ED_view3d_quat_to_axis_view_and_reset_quat(), float, ViewOpsData::init, invert_qt_normalized(), invert_qt_qt_normalized(), mul_qt_qtqt(), mul_qt_v3(), normalize_qt(), normalize_v3(), OB_NEGZ, OB_POSY, RegionView3D::persp, ViewOpsData::persp_with_auto_persp_applied, rotation_between_vecs_to_quat(), ViewOpsData::rv3d, RV3D_ORTHO, RV3D_PERSP, RV3D_VIEW_IS_AXIS, USER_AUTOPERSP, vec_to_quat(), RegionView3D::view, RegionView3D::view_axis_roll, RegionView3D::viewquat, ViewOpsData::viewquat, viewrotate_apply_dyn_ofs(), x, y, and z().
Referenced by viewrotate_apply().
|
static |
Definition at line 366 of file view3d_navigate_view_rotate.cc.
References view3d_navigate_invoke_impl(), and ViewOpsType_rotate.
Referenced by VIEW3D_OT_rotate().
|
static |
Definition at line 335 of file view3d_navigate_view_rotate.cc.
References copy_v2_v2_int(), ELEM, RegionView3D::is_persp, MOUSEPAN, MOUSEROTATE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::prev_xy, ViewOpsData::rv3d, wmEvent::type, ViewOpsData::use_dyn_ofs, ViewOpsData::use_dyn_ofs_ortho_correction, VIEW_CONFIRM, VIEW_PASS, viewrotate_apply(), and WM_EVENT_SCROLL_INVERT.
|
static |
Definition at line 298 of file view3d_navigate_view_rotate.cc.
References CTX_wm_manager(), ED_screen_animation_playing(), ED_view3d_camera_lock_autokey(), OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ret, ViewOpsData::rv3d, ViewOpsData::state_restore(), ViewOpsData::v3d, VIEW_APPLY, VIEW_CANCEL, VIEW_CONFIRM, VIEW_PASS, viewrotate_apply(), and xy.
| 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().
| const ViewOpsType ViewOpsType_rotate |
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().