Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | ViewOpsData |
struct | V3D_SmoothParams |
Macros | |
#define | V3D_OP_TRACKBALLSIZE (1.1f) |
Typedefs | |
typedef struct ViewOpsData | ViewOpsData |
typedef struct V3D_SmoothParams | V3D_SmoothParams |
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 | { VIEW_PASS = 0 , VIEW_APPLY , VIEW_CONFIRM } |
enum | { 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_ORBIT_SELECT = (1 << 0) , VIEWOPS_FLAG_DEPTH_NAVIGATE = (1 << 1) , VIEWOPS_FLAG_PERSP_ENSURE = (1 << 2) , VIEWOPS_FLAG_USE_MOUSE_INIT = (1 << 3) } |
#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 14 of file view3d_navigate.h.
typedef struct V3D_SmoothParams V3D_SmoothParams |
Parameters for setting the new 3D Viewport state.
Each of the struct members may be NULL to signify they aren't to be adjusted.
typedef struct ViewOpsData ViewOpsData |
Generic View Operator Custom-Data
anonymous enum |
Enumerator | |
---|---|
VIEW_PASS | |
VIEW_APPLY | |
VIEW_CONFIRM |
Definition at line 36 of file view3d_navigate.h.
anonymous enum |
Enumerator | |
---|---|
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 43 of file view3d_navigate.h.
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 29 of file view3d_navigate.h.
enum eViewOpsFlag |
Enumerator | |
---|---|
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_USE_MOUSE_INIT | When set, ignore any options that depend on initial cursor location. |
Definition at line 52 of file view3d_navigate.h.
void ED_view3d_smooth_view | ( | struct bContext * | C, |
struct View3D * | v3d, | ||
struct ARegion * | region, | ||
int | smooth_viewtx, | ||
const V3D_SmoothParams * | sview | ||
) |
void ED_view3d_smooth_view_ex | ( | const struct Depsgraph * | depsgraph, |
struct wmWindowManager * | wm, | ||
struct wmWindow * | win, | ||
struct ScrArea * | area, | ||
struct View3D * | v3d, | ||
struct ARegion * | region, | ||
int | smooth_viewtx, | ||
const V3D_SmoothParams * | sview | ||
) |
The arguments are the desired situation.
Referenced by view3d_localview_exit(), and view3d_localview_init().
void ED_view3d_smooth_view_force_finish | ( | struct bContext * | C, |
struct View3D * | v3d, | ||
struct ARegion * | region | ||
) |
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 522 of file view3d_navigate_smoothview.c.
References C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, ED_view3d_update_viewmat(), NULL, ARegion::regiondata, scene, RegionView3D::sms, SmoothView3DStore::time_allowed, and view3d_smoothview_apply().
Referenced by view3d_from_minmax(), view_axis_exec(), view_camera_exec(), viewcenter_cursor_exec(), viewcenter_pick_invoke(), viewdolly_invoke(), viewmove_invoke(), vieworbit_exec(), viewroll_exec(), viewroll_invoke(), viewrotate_invoke(), and viewzoom_invoke().
Call before multiple smooth-view operations begin to properly handle undo.
Definition at line 48 of file view3d_navigate_smoothview.c.
References blender::compositor::area(), C, View3D::camera, camera, ED_view3d_camera_lock_undo_test(), LIB_TAG_DOIT, LISTBASE_FOREACH, and RGN_TYPE_WINDOW.
Referenced by ED_view3d_smooth_view(), view3d_all_exec(), and viewselected_exec().
void ED_view3d_smooth_view_undo_end | ( | struct bContext * | C, |
struct 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 73 of file view3d_navigate_smoothview.c.
References blender::compositor::area(), C, View3D::camera, camera, ED_view3d_camera_lock_undo_grouped_push(), ED_view3d_camera_lock_undo_push(), ED_view3d_camera_lock_undo_test(), LIB_TAG_DOIT, LISTBASE_FOREACH, NULL, ARegion::regiondata, RGN_TYPE_WINDOW, RegionView3D::sms, USER_GLOBALUNDO, and view3d_smoothview_apply_ex().
Referenced by ED_view3d_smooth_view(), view3d_all_exec(), and viewselected_exec().
void fly_modal_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 92 of file view3d_navigate_fly.c.
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, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().
void view3d_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 210 of file view3d_ops.c.
References fly_modal_keymap(), 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().
Definition at line 60 of file view3d_navigate.c.
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_operator_properties_common | ( | struct wmOperatorType * | ot, |
const enum eV3D_OpPropFlag | flag | ||
) |
Definition at line 81 of file view3d_navigate.c.
References 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 134 of file view3d_navigate.c.
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_ex(), viewroll_apply(), and viewrotate_apply_dyn_ofs().
Definition at line 160 of file view3d_navigate.c.
References add_v2_v2(), add_v3_v3(), BASE_SELECTED, Object_Runtime::bb, BKE_boundbox_calc_center_aabb(), BKE_object_pose_armature_get(), BKE_paint_stroke_get_average(), BOUNDBOX_DIRTY, C, calculateTransformCenter(), copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_view3d(), Object::data, DEG_get_evaluated_view_layer(), DEG_get_original_object(), depsgraph, Curve::editfont, FIRSTBASE, BoundBox::flag, Object::mode, mul_m4_v3(), mul_v2_fl(), mul_v3_fl(), Base::next, NULL, OB_FONT, OB_MODE_ALL_PAINT, OB_MODE_EDIT, OB_MODE_OBJECT, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, OBACT, Base::object, Object::obmat, Object::runtime, scene, EditFont::textcurs, Object::type, V3D_AROUND_CENTER_MEDIAN, and zero_v3().
Referenced by axis_set_view(), viewops_data_create(), vieworbit_exec(), and viewroll_exec().
void VIEW3D_OT_dolly | ( | struct wmOperatorType * | ot | ) |
Definition at line 323 of file view3d_navigate_dolly.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, 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_operator_properties_common(), view3d_rotation_poll(), viewdolly_cancel(), viewdolly_exec(), viewdolly_invoke(), and viewdolly_modal().
Referenced by view3d_operatortypes().
void VIEW3D_OT_fly | ( | struct wmOperatorType * | ot | ) |
Definition at line 1125 of file view3d_navigate_fly.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 189 of file view3d_navigate_move.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, 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_operator_properties_common(), viewmove_cancel(), viewmove_invoke(), and viewmove_modal().
Referenced by view3d_operatortypes().
void VIEW3D_OT_rotate | ( | struct wmOperatorType * | ot | ) |
Definition at line 439 of file view3d_navigate_rotate.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, ot, wmOperatorType::poll, V3D_OP_PROP_USE_MOUSE_INIT, view3d_operator_properties_common(), view3d_rotation_poll(), viewrotate_cancel(), viewrotate_invoke(), and viewrotate_modal().
Referenced by view3d_operatortypes().
void VIEW3D_OT_smoothview | ( | struct wmOperatorType * | ot | ) |
Definition at line 538 of file view3d_navigate_smoothview.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 830 of file view3d_navigate.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 1257 of file view3d_navigate.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 1385 of file view3d_navigate.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 1057 of file view3d_navigate.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 1115 of file view3d_navigate.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 1529 of file view3d_navigate.c.
References 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_orbit_items, RNA_def_enum(), RNA_def_float(), RNA_def_property_flag(), wmOperatorType::srna, and vieworbit_exec().
Referenced by view3d_operatortypes().
void VIEW3D_OT_view_pan | ( | struct wmOperatorType * | ot | ) |
Definition at line 1605 of file view3d_navigate.c.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, wmOperatorType::prop, prop_view_pan_items, RNA_def_enum(), wmOperatorType::srna, view3d_location_poll(), and viewpan_invoke().
Referenced by view3d_operatortypes().
void VIEW3D_OT_view_roll | ( | struct wmOperatorType * | ot | ) |
Definition at line 272 of file view3d_navigate_roll.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_rv3d_user_region_poll(), wmOperatorType::exec, wmOperatorType::flag, 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, viewroll_cancel(), viewroll_exec(), viewroll_invoke(), and viewroll_modal().
Referenced by view3d_operatortypes().
void VIEW3D_OT_view_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 1003 of file view3d_navigate.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 1434 of file view3d_navigate_walk.c.
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 | ( | struct wmOperatorType * | ot | ) |
Definition at line 585 of file view3d_navigate_zoom.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, 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_operator_properties_common(), view3d_zoom_or_dolly_poll(), viewzoom_cancel(), viewzoom_exec(), viewzoom_invoke(), and viewzoom_modal().
Referenced by view3d_operatortypes().
void VIEW3D_OT_zoom_border | ( | struct wmOperatorType * | ot | ) |
Definition at line 190 of file view3d_navigate_zoom_border.c.
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().
Definition at line 65 of file view3d_navigate.c.
References C, RV3D_LOCK_ROTATION, and view3d_navigation_poll_impl().
Referenced by VIEW3D_OT_dolly(), and VIEW3D_OT_rotate().
Definition at line 70 of file view3d_navigate.c.
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 | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 31 of file view3d_navigate_dolly.c.
References EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, KM_ANY, KM_PRESS, KM_RELEASE, LEFTMOUSE, wmKeyMap::modal_items, NULL, VIEW_MODAL_CONFIRM, VIEWROT_MODAL_SWITCH_MOVE, VIEWROT_MODAL_SWITCH_ROTATE, WM_modalkeymap_add_item(), 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 553 of file view3d_navigate.c.
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, 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(), viewmove_modal(), and viewpan_invoke().
void viewmove_modal_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 25 of file view3d_navigate_move.c.
References EVT_ESCKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, KM_ANY, KM_PRESS, KM_RELEASE, LEFTMOUSE, MIDDLEMOUSE, wmKeyMap::modal_items, NULL, VIEW_MODAL_CONFIRM, VIEWROT_MODAL_SWITCH_ROTATE, VIEWROT_MODAL_SWITCH_ZOOM, WM_modalkeymap_add_item(), WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().
ViewOpsData* viewops_data_create | ( | struct bContext * | C, |
const struct wmEvent * | event, | ||
enum eViewOpsFlag | viewops_flag | ||
) |
Allocate, fill in context pointers and calculate the values for ViewOpsData
void viewops_data_free | ( | struct bContext * | C, |
ViewOpsData * | vod | ||
) |
Allocate and fill in context pointers for ViewOpsData
Definition at line 414 of file view3d_navigate.c.
References C, CTX_wm_manager(), CTX_wm_region(), ViewOpsData::dial, ED_region_tag_redraw(), ViewOpsData::init, MEM_freeN, ViewOpsData::region, RegionView3D::rflag, ViewOpsData::rv3d, RV3D_NAVIGATING, ViewOpsData::timer, wmTimer::win, and WM_event_remove_timer().
Referenced by viewdolly_cancel(), viewdolly_exec(), viewdolly_invoke(), viewdolly_modal(), viewmove_cancel(), viewmove_invoke(), viewmove_modal(), viewpan_invoke(), viewroll_cancel(), viewroll_exec(), viewroll_invoke(), viewroll_modal(), viewrotate_cancel(), viewrotate_invoke(), viewrotate_modal(), viewzoom_cancel(), viewzoom_exec(), viewzoom_invoke(), and viewzoom_modal().
enum eViewOpsFlag viewops_flag_from_prefs | ( | void | ) |
Definition at line 160 of file view3d_navigate.c.
Referenced by viewdolly_invoke(), viewmove_invoke(), viewpan_invoke(), viewroll_invoke(), viewrotate_invoke(), and viewzoom_invoke().
void viewrotate_apply_dyn_ofs | ( | ViewOpsData * | vod, |
const float | viewquat_new[4] | ||
) |
Definition at line 151 of file view3d_navigate.c.
References ViewOpsData::dyn_ofs, ViewOpsData::init, ViewOpsData::ofs, RegionView3D::ofs, ViewOpsData::quat, ViewOpsData::rv3d, ViewOpsData::use_dyn_ofs, and view3d_orbit_apply_dyn_ofs().
Referenced by viewrotate_apply(), and viewrotate_apply_snap().
void viewrotate_modal_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 24 of file view3d_navigate_rotate.c.
References EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, KM_ANY, KM_PRESS, LEFTMOUSE, wmKeyMap::modal_items, NULL, VIEW_MODAL_CONFIRM, VIEWROT_MODAL_AXIS_SNAP_DISABLE, VIEWROT_MODAL_AXIS_SNAP_ENABLE, VIEWROT_MODAL_SWITCH_MOVE, VIEWROT_MODAL_SWITCH_ZOOM, WM_modalkeymap_add_item(), WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().
void viewzoom_modal_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 31 of file view3d_navigate_zoom.c.
References EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, KM_ANY, KM_PRESS, KM_RELEASE, LEFTMOUSE, wmKeyMap::modal_items, NULL, VIEW_MODAL_CONFIRM, VIEWROT_MODAL_SWITCH_MOVE, VIEWROT_MODAL_SWITCH_ROTATE, WM_modalkeymap_add_item(), WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by view3d_keymap().
void walk_modal_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 130 of file view3d_navigate_walk.c.
References wmKeyMap::modal_items, NULL, WALK_MODAL_ACCELERATE, WALK_MODAL_AXIS_LOCK_Z, WALK_MODAL_CANCEL, WALK_MODAL_CONFIRM, WALK_MODAL_DECELERATE, 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_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_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().