|
Blender V4.3
|
#include "BLI_blenlib.h"#include "BLI_dial_2d.h"#include "BLI_math_rotation.h"#include "BLI_math_vector.h"#include "BKE_context.hh"#include "WM_api.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "ED_screen.hh"#include "view3d_intern.hh"#include "view3d_navigate.hh"Go to the source code of this file.
Variables | |
| const ViewOpsType | ViewOpsType_roll |
View Roll Operator | |
| enum | { V3D_VIEW_STEPLEFT = 1 , V3D_VIEW_STEPRIGHT } |
| static const EnumPropertyItem | prop_view_roll_items [] |
| static void | view_roll_angle (ARegion *region, float quat[4], const float orig_quat[4], const float dvec[3], float angle, bool use_axis_view) |
| static void | viewroll_apply (ViewOpsData *vod, int x, int y) |
| static int | viewroll_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | viewroll_exec (bContext *C, wmOperator *op) |
| static int | viewroll_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | VIEW3D_OT_view_roll (wmOperatorType *ot) |
| anonymous enum |
| Enumerator | |
|---|---|
| V3D_VIEW_STEPLEFT | |
| V3D_VIEW_STEPRIGHT | |
Definition at line 161 of file view3d_navigate_view_roll.cc.
| 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().
|
static |
| use_axis_view | When true, keep axis-aligned orthographic views (when rotating in 90 degree increments). While this may seem obscure some NDOF devices have key shortcuts to do this (see NDOF_BUTTON_ROLL_CW & NDOF_BUTTON_ROLL_CCW). |
Definition at line 35 of file view3d_navigate_view_roll.cc.
References axis_angle_normalized_to_quat(), ED_view3d_quat_to_axis_view_and_reset_quat(), fabsf, M_PI_2, mul_qt_qtqt(), normalize_qt(), RV3D_VIEW_IS_AXIS, RV3D_VIEW_USER, RegionView3D::view, and RegionView3D::view_axis_roll.
Referenced by viewroll_apply(), and viewroll_exec().
|
static |
Definition at line 61 of file view3d_navigate_view_roll.cc.
References ViewOpsData::area, BLI_dial_angle(), ViewOpsData::depsgraph, ViewOpsData::dial, ViewOpsData::dyn_ofs, ED_region_tag_redraw(), ED_view3d_camera_lock_sync(), float, ViewOpsData::init, ViewOpsData::mousevec, RegionView3D::ofs, ViewOpsData::ofs, ViewOpsData::quat, ViewOpsData::region, ViewOpsData::rv3d, RV3D_BOXVIEW, RV3D_LOCK_FLAGS, ViewOpsData::use_dyn_ofs, ViewOpsData::v3d, view3d_boxview_sync(), view3d_orbit_apply_dyn_ofs(), view_roll_angle(), and RegionView3D::viewquat.
Referenced by viewroll_invoke(), and viewroll_modal().
|
static |
Definition at line 173 of file view3d_navigate_view_roll.cc.
References angle(), CTX_data_ensure_evaluated_depsgraph(), wmOperator::customdata, DEG2RADF, ViewOpsData::depsgraph, V3D_SmoothParams::dyn_ofs, ViewOpsData::dyn_ofs, ED_view3d_camera_lock_check(), ED_view3d_context_user_region(), ED_view3d_smooth_view(), ViewOpsData::init_navigation(), wmOperatorType::name, negate_v3(), normalize_v3_v3(), OPERATOR_CANCELLED, OPERATOR_FINISHED, RegionView3D::persp, wmOperator::ptr, V3D_SmoothParams::quat, ViewOpsData::region, ARegion::regiondata, RNA_enum_get(), RNA_float_get(), ViewOpsData::rv3d, RV3D_CAMOB, wmOperator::type, V3D_SmoothParams::undo_grouped, V3D_SmoothParams::undo_str, ViewOpsData::use_dyn_ofs, ViewOpsData::v3d, V3D_VIEW_STEPLEFT, view_roll_angle(), RegionView3D::viewinv, viewops_data_free(), ViewOpsType_roll, RegionView3D::viewquat, and WM_operator_smooth_viewtx_get().
Referenced by VIEW3D_OT_view_roll(), and viewroll_invoke().
|
static |
Definition at line 229 of file view3d_navigate_view_roll.cc.
References BLI_dial_init(), BLI_rcti_cent_x(), BLI_rcti_cent_y(), wmOperator::customdata, ViewOpsData::dial, ED_view3d_smooth_view_force_finish(), ViewOpsData::event_xy, float, ViewOpsData::init, MOUSEROTATE, ViewOpsData::mousevec, negate_v3(), normalize_v3_v3(), OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ViewOpsData::prev, wmEvent::prev_xy, wmOperator::ptr, ViewOpsData::region, RNA_enum_get(), RNA_struct_property_is_set(), ViewOpsData::rv3d, wmEvent::type, ViewOpsData::v3d, RegionView3D::viewinv, viewops_data_create(), viewops_data_free(), ViewOpsType_roll, viewroll_apply(), viewroll_exec(), ARegion::winrct, and WM_event_add_modal_handler().
Referenced by VIEW3D_OT_view_roll().
|
static |
Definition at line 85 of file view3d_navigate_view_roll.cc.
References CTX_wm_manager(), wmOperator::customdata, ED_screen_animation_playing(), ED_view3d_camera_lock_autokey(), ViewOpsData::event_type, EVT_ESCKEY, EVT_MODAL_MAP, ViewOpsData::init, KM_PRESS, KM_RELEASE, MOUSEMOVE, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ret, ViewOpsData::rv3d, ViewOpsData::state_restore(), wmEvent::type, ViewOpsData::v3d, wmEvent::val, VIEW_APPLY, VIEW_CANCEL, VIEW_CONFIRM, VIEW_MODAL_CANCEL, VIEW_MODAL_CONFIRM, VIEW_PASS, viewops_data_free(), viewroll_apply(), VIEWROT_MODAL_SWITCH_MOVE, VIEWROT_MODAL_SWITCH_ROTATE, WM_OP_INVOKE_DEFAULT, WM_operator_name_call(), and wmEvent::xy.
Referenced by VIEW3D_OT_view_roll().
|
static |
Definition at line 166 of file view3d_navigate_view_roll.cc.
Referenced by VIEW3D_OT_view_roll().
| const ViewOpsType ViewOpsType_roll |
Definition at line 302 of file view3d_navigate_view_roll.cc.
Referenced by VIEW3D_OT_view_roll(), viewroll_exec(), and viewroll_invoke().