|
Blender
V2.93
|
#include <float.h>#include <math.h>#include <stdio.h>#include <string.h>#include "DNA_armature_types.h"#include "DNA_camera_types.h"#include "DNA_curve_types.h"#include "DNA_gpencil_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_math.h"#include "BLI_utildefines.h"#include "BKE_action.h"#include "BKE_armature.h"#include "BKE_camera.h"#include "BKE_context.h"#include "BKE_font.h"#include "BKE_gpencil_geom.h"#include "BKE_layer.h"#include "BKE_lib_id.h"#include "BKE_main.h"#include "BKE_object.h"#include "BKE_paint.h"#include "BKE_report.h"#include "BKE_scene.h"#include "BKE_screen.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_query.h"#include "WM_api.h"#include "WM_message.h"#include "WM_types.h"#include "RNA_access.h"#include "RNA_define.h"#include "ED_armature.h"#include "ED_mesh.h"#include "ED_particle.h"#include "ED_screen.h"#include "ED_transform.h"#include "ED_transform_snap_object_context.h"#include "ED_view3d.h"#include "UI_resources.h"#include "PIL_time.h"#include "view3d_intern.h"Go to the source code of this file.
Classes | |
| struct | ViewOpsData |
Enumerations | |
| enum | { HAS_TRANSLATE = (1 << 0) , HAS_ROTATE = (1 << 0) } |
Functions | |
| static bool | view3d_camera_user_poll (bContext *C) |
| static bool | view3d_lock_poll (bContext *C) |
| static bool | view3d_pan_poll (bContext *C) |
| static bool | view3d_zoom_or_dolly_poll (bContext *C) |
View Move (Pan) Operator | |
| void | viewmove_modal_keymap (wmKeyConfig *keyconf) |
| static void | viewmove_apply (ViewOpsData *vod, int x, int y) |
| static int | viewmove_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | viewmove_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | viewmove_cancel (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_move (wmOperatorType *ot) |
View Zoom Operator | |
| void | viewzoom_modal_keymap (wmKeyConfig *keyconf) |
| static void | view_zoom_to_window_xy_camera (Scene *scene, Depsgraph *depsgraph, View3D *v3d, ARegion *region, float dfac, const int zoom_xy[2]) |
| static void | view_zoom_to_window_xy_3d (ARegion *region, float dfac, const int zoom_xy[2]) |
| static float | viewzoom_scale_value (const rcti *winrct, const eViewZoom_Style viewzoom, const bool zoom_invert, const bool zoom_invert_force, const int xy_curr[2], const int xy_init[2], const float val, const float val_orig, double *r_timer_lastdraw) |
| static float | viewzoom_scale_value_offset (const rcti *winrct, const eViewZoom_Style viewzoom, const bool zoom_invert, const bool zoom_invert_force, const int xy_curr[2], const int xy_init[2], const int xy_offset[2], const float val, const float val_orig, double *r_timer_lastdraw) |
| static void | viewzoom_apply_camera (ViewOpsData *vod, const int xy[2], const eViewZoom_Style viewzoom, const bool zoom_invert, const bool zoom_to_pos) |
| static void | viewzoom_apply_3d (ViewOpsData *vod, const int xy[2], const eViewZoom_Style viewzoom, const bool zoom_invert, const bool zoom_to_pos) |
| static void | viewzoom_apply (ViewOpsData *vod, const int xy[2], const eViewZoom_Style viewzoom, const bool zoom_invert, const bool zoom_to_pos) |
| static int | viewzoom_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | viewzoom_exec (bContext *C, wmOperator *op) |
| static int | viewzoom_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | viewzoom_cancel (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_zoom (wmOperatorType *ot) |
View Dolly Operator | |
Like zoom but translates the view offset along the view direction which avoids RegionView3D.dist approaching zero. | |
| void | viewdolly_modal_keymap (wmKeyConfig *keyconf) |
| static bool | viewdolly_offset_lock_check (bContext *C, wmOperator *op) |
| static void | view_dolly_to_vector_3d (ARegion *region, const float orig_ofs[3], const float dvec[3], float dfac) |
| static void | viewdolly_apply (ViewOpsData *vod, const int xy[2], const short zoom_invert) |
| static int | viewdolly_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | viewdolly_exec (bContext *C, wmOperator *op) |
| static int | viewdolly_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | viewdolly_cancel (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_dolly (wmOperatorType *ot) |
View All Operator | |
Move & Zoom the view to fit all of its contents. | |
| static bool | view3d_object_skip_minmax (const View3D *v3d, const RegionView3D *rv3d, const Object *ob, const bool skip_camera, bool *r_only_center) |
| static void | view3d_object_calc_minmax (Depsgraph *depsgraph, Scene *scene, Object *ob_eval, const bool only_center, float min[3], float max[3]) |
| static void | view3d_from_minmax (bContext *C, View3D *v3d, ARegion *region, const float min[3], const float max[3], bool ok_dist, const int smooth_viewtx) |
| static void | view3d_from_minmax_multi (bContext *C, View3D *v3d, const float min[3], const float max[3], const bool ok_dist, const int smooth_viewtx) |
| static int | view3d_all_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_view_all (wmOperatorType *ot) |
Frame Selected Operator | |
Move & Zoom the view to fit selected contents. | |
| static int | viewselected_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_view_selected (wmOperatorType *ot) |
View Lock Clear Operator | |
| static int | view_lock_clear_exec (bContext *C, wmOperator *UNUSED(op)) |
| void | VIEW3D_OT_view_lock_clear (wmOperatorType *ot) |
View Lock to Active Operator | |
| static int | view_lock_to_active_exec (bContext *C, wmOperator *UNUSED(op)) |
| void | VIEW3D_OT_view_lock_to_active (wmOperatorType *ot) |
View Center Cursor Operator | |
| static int | viewcenter_cursor_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_view_center_cursor (wmOperatorType *ot) |
View Center Pick Operator | |
| static int | viewcenter_pick_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | VIEW3D_OT_view_center_pick (wmOperatorType *ot) |
Frame Camera Bounds Operator | |
| static int | view3d_center_camera_exec (bContext *C, wmOperator *UNUSED(op)) |
| void | VIEW3D_OT_view_center_camera (wmOperatorType *ot) |
View Lock Center Operator | |
| static int | view3d_center_lock_exec (bContext *C, wmOperator *UNUSED(op)) |
| void | VIEW3D_OT_view_center_lock (wmOperatorType *ot) |
Set Render Border Operator | |
| static int | render_border_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_render_border (wmOperatorType *ot) |
Clear Render Border Operator | |
| static int | clear_render_border_exec (bContext *C, wmOperator *UNUSED(op)) |
| void | VIEW3D_OT_clear_render_border (wmOperatorType *ot) |
Border Zoom Operator | |
| static int | view3d_zoom_border_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_zoom_border (wmOperatorType *ot) |
Set Camera Zoom 1:1 Operator | |
Sets the view to 1:1 camera/render-pixel. | |
| static void | view3d_set_1_to_1_viewborder (Scene *scene, Depsgraph *depsgraph, ARegion *region, View3D *v3d) |
| static int | view3d_zoom_1_to_1_camera_exec (bContext *C, wmOperator *UNUSED(op)) |
| void | VIEW3D_OT_zoom_camera_1_to_1 (wmOperatorType *ot) |
View Camera Operator | |
| static int | view_camera_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_view_camera (wmOperatorType *ot) |
View Pan Operator | |
Move (pan) in incremental steps. For interactive pan see VIEW3D_OT_move. | |
| static int | viewpan_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | VIEW3D_OT_view_pan (wmOperatorType *ot) |
View Toggle Perspective/Orthographic Operator | |
| static int | viewpersportho_exec (bContext *C, wmOperator *UNUSED(op)) |
| void | VIEW3D_OT_view_persportho (wmOperatorType *ot) |
View Navigate Operator | |
Wraps walk/fly modes. | |
| static int | view3d_navigate_invoke (bContext *C, wmOperator *UNUSED(op), const wmEvent *UNUSED(event)) |
| void | VIEW3D_OT_navigate (wmOperatorType *ot) |
Background Image Add Operator | |
| static Camera * | background_image_camera_from_context (bContext *C) |
| static int | background_image_add_exec (bContext *C, wmOperator *UNUSED(op)) |
| static int | background_image_add_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) |
| static bool | background_image_add_poll (bContext *C) |
| void | VIEW3D_OT_background_image_add (wmOperatorType *ot) |
Background Image Remove Operator | |
| static int | background_image_remove_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_background_image_remove (wmOperatorType *ot) |
View Clipping Planes Operator | |
Draw border or toggle off. | |
| static void | calc_local_clipping (float clip_local[6][4], const BoundBox *clipbb, const float mat[4][4]) |
| void | ED_view3d_clipping_local (RegionView3D *rv3d, const float mat[4][4]) |
| static int | view3d_clipping_exec (bContext *C, wmOperator *op) |
| static int | view3d_clipping_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | VIEW3D_OT_clip_border (wmOperatorType *ot) |
Set Cursor Operator | |
| void | ED_view3d_cursor3d_position (bContext *C, const int mval[2], const bool use_depth, float cursor_co[3]) |
| void | ED_view3d_cursor3d_position_rotation (bContext *C, const int mval[2], const bool use_depth, enum eV3DCursorOrient orientation, float cursor_co[3], float cursor_quat[4]) |
| void | ED_view3d_cursor3d_update (bContext *C, const int mval[2], const bool use_depth, enum eV3DCursorOrient orientation) |
| static int | view3d_cursor3d_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | VIEW3D_OT_cursor3d (wmOperatorType *ot) |
Toggle XRay | |
| static int | toggle_xray_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_toggle_xray (wmOperatorType *ot) |
Generic View Operator Custom-Data | |
| #define | TRACKBALLSIZE (1.1f) |
| 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) } |
| typedef struct ViewOpsData | ViewOpsData |
| static void | calctrackballvec (const rcti *rect, const int event_xy[2], float r_dir[3]) |
| static void | viewops_data_alloc (bContext *C, wmOperator *op) |
| 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]) |
| static bool | view3d_orbit_calc_center (bContext *C, float r_dyn_ofs[3]) |
| static enum eViewOpsFlag | viewops_flag_from_args (bool use_select, bool use_depth) |
| static enum eViewOpsFlag | viewops_flag_from_prefs (void) |
| static void | viewops_data_create (bContext *C, wmOperator *op, const wmEvent *event, enum eViewOpsFlag viewops_flag) |
| static void | viewops_data_free (bContext *C, wmOperator *op) |
Generic View Operator Properties | |
| 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) } |
| static void | view3d_operator_properties_common (wmOperatorType *ot, const enum eV3D_OpPropFlag flag) |
View Rotate Operator | |
| 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 } |
| void | viewrotate_modal_keymap (wmKeyConfig *keyconf) |
| static void | viewrotate_apply_dyn_ofs (ViewOpsData *vod, const float viewquat_new[4]) |
| static void | viewrotate_apply_snap (ViewOpsData *vod) |
| static void | viewrotate_apply (ViewOpsData *vod, const int event_xy[2]) |
| static int | viewrotate_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | viewrotate_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | viewrotate_cancel (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_rotate (wmOperatorType *ot) |
View Orbit Operator | |
Rotate (orbit) in incremental steps. For interactive orbit see VIEW3D_OT_rotate. | |
| enum | { V3D_VIEW_STEPLEFT = 1 , V3D_VIEW_STEPRIGHT , V3D_VIEW_STEPDOWN , V3D_VIEW_STEPUP } |
| static const EnumPropertyItem | prop_view_orbit_items [] |
| static int | vieworbit_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_view_orbit (wmOperatorType *ot) |
View Roll Operator | |
| enum | { V3D_VIEW_PANLEFT = 1 , V3D_VIEW_PANRIGHT , V3D_VIEW_PANDOWN , V3D_VIEW_PANUP } |
| static const EnumPropertyItem | prop_view_roll_items [] |
| static const EnumPropertyItem | prop_view_pan_items [] |
| static void | view_roll_angle (ARegion *region, float quat[4], const float orig_quat[4], const float dvec[3], float angle) |
| static void | viewroll_apply (ViewOpsData *vod, int x, int UNUSED(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) |
| static void | viewroll_cancel (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_view_roll (wmOperatorType *ot) |
View Axis Operator | |
| static const EnumPropertyItem | prop_view_items [] |
| static 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) |
| static int | view_axis_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_view_axis (wmOperatorType *ot) |
Toggle Shading Operator | |
| static const EnumPropertyItem | prop_shading_type_items [] |
| static int | toggle_shading_exec (bContext *C, wmOperator *op) |
| void | VIEW3D_OT_toggle_shading (wmOperatorType *ot) |
3D view manipulation/operators.
Definition in file view3d_edit.c.
| #define 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 242 of file view3d_edit.c.
| typedef struct ViewOpsData ViewOpsData |
| anonymous enum |
| Enumerator | |
|---|---|
| HAS_TRANSLATE | |
| HAS_ROTATE | |
Definition at line 83 of file view3d_edit.c.
| anonymous enum |
| Enumerator | |
|---|---|
| VIEW_PASS | |
| VIEW_APPLY | |
| VIEW_CONFIRM | |
Definition at line 598 of file view3d_edit.c.
| 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 605 of file view3d_edit.c.
| anonymous enum |
| Enumerator | |
|---|---|
| V3D_VIEW_STEPLEFT | |
| V3D_VIEW_STEPRIGHT | |
| V3D_VIEW_STEPDOWN | |
| V3D_VIEW_STEPUP | |
Definition at line 4224 of file view3d_edit.c.
| anonymous enum |
| Enumerator | |
|---|---|
| V3D_VIEW_PANLEFT | |
| V3D_VIEW_PANRIGHT | |
| V3D_VIEW_PANDOWN | |
| V3D_VIEW_PANUP | |
Definition at line 4610 of file view3d_edit.c.
| 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 138 of file view3d_edit.c.
| 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 ortho to perspective when auto-persp 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 389 of file view3d_edit.c.
|
static |
| align_to_quat | When not NULL, set the axis relative to this rotation. |
Definition at line 3870 of file view3d_edit.c.
References C, View3D::camera, copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), DEG_get_evaluated_object(), RegionView3D::dist, ED_region_tag_redraw(), ED_view3d_from_object(), ED_view3d_smooth_view(), mul_qt_qtqt(), negate_v3(), normalize_qt_qt(), NULL, RegionView3D::ofs, RegionView3D::persp, Object::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, USER_AUTOPERSP, USER_ORBIT_SELECTION, view, RegionView3D::view, view3d_orbit_calc_center(), and RegionView3D::view_axis_roll.
Referenced by view_axis_exec(), and view_camera_exec().
|
static |
Definition at line 4787 of file view3d_edit.c.
References background_image_camera_from_context(), BKE_camera_background_image_new(), C, and OPERATOR_FINISHED.
Referenced by VIEW3D_OT_background_image_add().
|
static |
Definition at line 4795 of file view3d_edit.c.
References background_image_camera_from_context(), BKE_camera_background_image_new(), C, CAM_SHOW_BG_IMAGE, DEG_id_tag_update(), Camera::flag, Camera::id, ID_IM, ID_RECALC_COPY_ON_WRITE, CameraBGImage::ima, NC_CAMERA, ND_DRAW_RENDER_VIEWPORT, OPERATOR_FINISHED, WM_event_add_notifier(), and WM_operator_drop_load_path().
Referenced by VIEW3D_OT_background_image_add().
|
static |
Definition at line 4815 of file view3d_edit.c.
References background_image_camera_from_context(), C, and NULL.
Referenced by VIEW3D_OT_background_image_add().
Definition at line 4773 of file view3d_edit.c.
References C, View3D::camera, CTX_data_pointer_get_type(), CTX_wm_view3d(), Object::data, PointerRNA::data, NULL, OB_CAMERA, RNA_Camera, and Object::type.
Referenced by background_image_add_exec(), background_image_add_invoke(), and background_image_add_poll().
|
static |
Definition at line 4854 of file view3d_edit.c.
References Camera::bg_images, BKE_camera_background_image_remove(), BLI_findlink(), C, CAM_BGIMG_SOURCE_IMAGE, CAM_BGIMG_SOURCE_MOVIE, CameraBGImage::clip, CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), Camera::id, ID_RECALC_COPY_ON_WRITE, id_us_min(), CameraBGImage::ima, NC_CAMERA, ND_DRAW_RENDER_VIEWPORT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_Camera, RNA_int_get(), CameraBGImage::source, and WM_event_add_notifier().
Referenced by VIEW3D_OT_background_image_remove().
|
static |
Definition at line 4905 of file view3d_edit.c.
References ED_view3d_clipping_calc_from_boundbox(), invert_m4_m4(), is_negative_m4(), mul_v3_m4v3(), and BoundBox::vec.
Referenced by ED_view3d_clipping_local().
Definition at line 244 of file view3d_edit.c.
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(), t, and TRACKBALLSIZE.
Referenced by viewops_data_create(), and viewrotate_apply().
|
static |
Definition at line 3564 of file view3d_edit.c.
References border, RenderData::border, C, CTX_data_scene(), CTX_wm_view3d(), DEG_id_tag_update(), ED_view3d_context_rv3d(), View3D::flag2, Scene::id, ID_RECALC_COPY_ON_WRITE, RenderData::mode, NC_SCENE, NC_SPACE, ND_RENDER_OPTIONS, ND_SPACE_VIEW3D, NULL, OPERATOR_FINISHED, RegionView3D::persp, Scene::r, R_BORDER, View3D::render_border, RV3D_CAMOB, scene, V3D_RENDER_BORDER, and WM_event_add_notifier().
Referenced by VIEW3D_OT_clear_render_border().
| void ED_view3d_clipping_local | ( | RegionView3D * | rv3d, |
| const float | mat[4][4] | ||
| ) |
Definition at line 4921 of file view3d_edit.c.
References calc_local_clipping(), RegionView3D::clip_local, RegionView3D::clipbb, RegionView3D::rflag, and RV3D_CLIPPING.
Referenced by DRW_draw_depth_object(), ED_view3d_init_mats_rv3d(), lattice_foreachScreenVert(), mesh_foreachScreenEdge(), mesh_foreachScreenEdge_clip_bb_segment(), mesh_foreachScreenVert(), meshobject_foreachScreenVert(), nurbs_foreachScreenVert(), and project_paint_begin().
| void ED_view3d_cursor3d_position | ( | bContext * | C, |
| const int | mval[2], | ||
| const bool | use_depth, | ||
| float | cursor_co[3] | ||
| ) |
Definition at line 4993 of file view3d_edit.c.
References C, copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_region(), CTX_wm_view3d(), depsgraph, ED_view3d_autodist(), ED_view3d_calc_zfac(), ED_view3d_win_to_3d_int(), negate_v3_v3(), NULL, RegionView3D::ofs, ARegion::regiondata, and view3d_operator_needs_opengl().
Referenced by collection_instance_add_exec(), ED_view3d_cursor3d_position_rotation(), empty_drop_named_image_invoke(), object_add_named_exec(), and object_data_instance_add_exec().
| void ED_view3d_cursor3d_position_rotation | ( | bContext * | C, |
| const int | mval[2], | ||
| const bool | use_depth, | ||
| enum eV3DCursorOrient | orientation, | ||
| float | cursor_co[3], | ||
| float | cursor_quat[4] | ||
| ) |
Definition at line 5035 of file view3d_edit.c.
References angle_normalized_qt(), axis_dominant_v3_ortho_single(), C, copy_qt_qt(), copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_region(), CTX_wm_view3d(), dot_v3v3(), ED_transform_calc_orientation_from_type(), ED_transform_snap_object_context_create_view3d(), ED_transform_snap_object_context_destroy(), ED_transform_snap_object_project_view3d_ex(), ED_view3d_cursor3d_position(), mat3_to_quat(), mul_qt_qtqt(), mul_qt_v3(), negate_v3(), normalize_v3(), NULL, project_plane_v3_v3v3(), SnapObjectContext::region, ARegion::regiondata, rotation_between_vecs_to_quat(), SCE_SNAP_MODE_FACE, scene, SNAP_ALL, UNPACK2, SnapObjectContext::v3d, V3D_CURSOR_ORIENT_GEOM, V3D_CURSOR_ORIENT_NONE, V3D_CURSOR_ORIENT_VIEW, V3D_CURSOR_ORIENT_XFORM, and RegionView3D::viewquat.
Referenced by ED_view3d_cursor3d_update().
| void ED_view3d_cursor3d_update | ( | bContext * | C, |
| const int | mval[2], | ||
| const bool | use_depth, | ||
| enum eV3DCursorOrient | orientation | ||
| ) |
Definition at line 5151 of file view3d_edit.c.
References angle_signed_on_axis_v3v3_v3(), axis_angle_to_mat3(), BKE_scene_cursor_quat_to_rot(), BKE_scene_cursor_rot_to_quat(), C, copy_qt_qt(), CTX_data_scene(), CTX_wm_message_bus(), CTX_wm_region(), CTX_wm_view3d(), Scene::cursor, DEG_id_tag_update(), ED_view3d_cursor3d_position_rotation(), ED_view3d_project_float_global(), equals_v4v4(), Scene::id, ID_RECALC_COPY_ON_WRITE, View3D::localvd, View3DCursor::location, NA_EDITED, NC_SCENE, NC_SPACE, ND_SPACE_VIEW3D, negate_v3_v3(), View3D::ob_center_cursor, RegionView3D::ofs_lock, wmMsgParams_RNA::ptr, quat_to_mat3(), SnapObjectContext::region, ARegion::regiondata, RNA_pointer_create(), RNA_View3DCursor, ROT_MODE_AXISANGLE, View3DCursor::rotation_angle, View3DCursor::rotation_axis, View3DCursor::rotation_mode, RV3D_VIEW_IS_AXIS, scene, USER_LOCK_CURSOR_ADJUST, SnapObjectContext::v3d, V3D_PROJ_RET_OK, V3D_PROJ_TEST_NOP, RegionView3D::view, ARegion::winx, ARegion::winy, WM_event_add_notifier(), WM_msg_publish_rna_params(), and zero_v2().
Referenced by edbm_point_normals_modal(), paintcurve_cursor_invoke(), and view3d_cursor3d_invoke().
|
static |
Definition at line 3463 of file view3d_edit.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), border, RenderData::border, C, CLAMP, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_region(), CTX_wm_view3d(), DEG_id_tag_update(), depsgraph, ED_view3d_calc_camera_border(), ED_view3d_context_rv3d(), View3D::flag2, float(), Scene::id, ID_RECALC_COPY_ON_WRITE, RenderData::mode, NC_SCENE, NC_SPACE, ND_RENDER_OPTIONS, ND_SPACE_VIEW3D, NULL, OPERATOR_FINISHED, RegionView3D::persp, Scene::r, R_BORDER, View3D::render_border, RV3D_CAMOB, scene, V3D_RENDER_BORDER, ARegion::winx, ARegion::winy, WM_event_add_notifier(), WM_operator_properties_border_to_rcti(), rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by VIEW3D_OT_render_border().
|
static |
Definition at line 5298 of file view3d_edit.c.
References blender::compositor::area(), C, CTX_data_main(), CTX_wm_area(), CTX_wm_view3d(), ED_view3d_shade_update(), ELEM, NC_SPACE, ND_SPACE_VIEW3D, OB_MATERIAL, OB_RENDER, OB_SOLID, OB_WIRE, OPERATOR_FINISHED, View3DShading::prev_type, View3DShading::prev_type_wire, wmOperator::ptr, RNA_enum_get(), View3D::shading, type, View3DShading::type, and WM_event_add_notifier().
Referenced by VIEW3D_OT_toggle_shading().
|
static |
Definition at line 5360 of file view3d_edit.c.
References blender::compositor::area(), BKE_object_pose_armature_get(), BKE_report(), C, CTX_data_active_object(), CTX_wm_area(), CTX_wm_view3d(), ED_area_tag_redraw(), ELEM, View3DShading::flag, View3DOverlay::flag, Object::mode, OB_MODE_EDIT, OB_MODE_POSE, OB_MODE_WEIGHT_PAINT, OB_SOLID, OB_WIRE, OPERATOR_FINISHED, View3D::overlay, wmOperator::reports, RPT_INFO, View3D::shading, View3DShading::type, V3D_OVERLAY_BONE_SELECT, V3D_SHADING_XRAY, and V3D_SHADING_XRAY_WIREFRAME.
Referenced by VIEW3D_OT_toggle_xray().
|
static |
Definition at line 2917 of file view3d_edit.c.
References BASE_VISIBLE, BKE_scene_cursor_mat3_to_rot(), C, center, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_message_bus(), CTX_wm_region(), CTX_wm_region_view3d(), CTX_wm_view3d(), Scene::cursor, DEG_get_evaluated_view_layer(), DEG_get_original_object(), DEG_id_tag_update(), depsgraph, ED_region_tag_redraw(), ED_view3d_camera_lock_check(), ED_view3d_clipping_clamp_minmax(), ListBase::first, View3D::flag2, Scene::id, ID_RECALC_COPY_ON_WRITE, INIT_MINMAX, View3DCursor::location, max, min, Base::next, Base::object, ViewLayer::object_bases, OPERATOR_FINISHED, wmOperator::ptr, ARegion::regiondata, RNA_boolean_get(), RV3D_CLIPPING_ENABLED, scene, unit_m3(), V3D_LOCK_CAMERA, view3d_from_minmax(), view3d_from_minmax_multi(), view3d_object_calc_minmax(), view3d_object_skip_minmax(), WM_msg_publish_rna_prop, WM_operator_smooth_viewtx_get(), and zero_v3().
Referenced by VIEW3D_OT_view_all().
|
static |
Definition at line 89 of file view3d_edit.c.
References C, ED_view3d_context_user_region(), RegionView3D::persp, ARegion::regiondata, RV3D_CAMOB, RV3D_LOCK_ANY_TRANSFORM, and RV3D_LOCK_FLAGS.
Referenced by VIEW3D_OT_view_center_camera(), and VIEW3D_OT_zoom_camera_1_to_1().
|
static |
Definition at line 3379 of file view3d_edit.c.
References BKE_screen_view3d_zoom_from_fac(), C, RegionView3D::camdx, RegionView3D::camdy, RegionView3D::camzoom, CLAMP, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, ED_view3d_calc_camera_border_size(), ED_view3d_context_user_region(), float(), min_ff(), NC_SPACE, ND_SPACE_VIEW3D, OPERATOR_FINISHED, ARegion::regiondata, RV3D_CAMZOOM_MAX, RV3D_CAMZOOM_MIN, scene, size(), ARegion::winx, ARegion::winy, and WM_event_add_notifier().
Referenced by VIEW3D_OT_view_center_camera().
|
static |
Definition at line 3431 of file view3d_edit.c.
References C, CTX_wm_region_view3d(), CTX_wm_view3d(), NC_SPACE, ND_SPACE_VIEW3D, RegionView3D::ofs_lock, OPERATOR_FINISHED, WM_event_add_notifier(), and zero_v2().
Referenced by VIEW3D_OT_view_center_lock().
|
static |
Definition at line 4928 of file view3d_edit.c.
References C, RegionView3D::clip, RegionView3D::clipbb, CTX_wm_region(), CTX_wm_region_view3d(), ED_view3d_clipping_calc(), MEM_callocN, NULL, OPERATOR_FINISHED, RegionView3D::rflag, RV3D_CLIPPING, and WM_operator_properties_border_to_rcti().
Referenced by VIEW3D_OT_clip_border().
|
static |
Definition at line 4945 of file view3d_edit.c.
References C, RegionView3D::clipbb, CTX_wm_region(), CTX_wm_region_view3d(), ED_region_tag_redraw(), MEM_freeN, NULL, OPERATOR_FINISHED, RegionView3D::rflag, RV3D_CLIPPING, and WM_gesture_box_invoke().
Referenced by VIEW3D_OT_clip_border().
|
static |
Definition at line 5224 of file view3d_edit.c.
References C, ED_view3d_cursor3d_update(), wmEvent::mval, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_property_boolean_get(), RNA_property_boolean_set(), RNA_property_is_set(), RNA_struct_find_property(), and USER_DEPTH_CURSOR.
Referenced by VIEW3D_OT_cursor3d().
|
static |
Definition at line 2810 of file view3d_edit.c.
References C, View3D::camera, View3D::clip_start, CTX_data_ensure_evaluated_depsgraph(), depsgraph, ED_view3d_camera_lock_check(), ED_view3d_radius_to_dist(), ED_view3d_smooth_view(), ED_view3d_smooth_view_force_finish(), RegionView3D::is_persp, max, max_ff(), max_fff(), mid_v3_v3v3(), min, negate_v3(), NULL, RegionView3D::persp, ARegion::regiondata, RV3D_CAMOB, RV3D_ORTHO, RV3D_PERSP, size(), sub_v3_v3v3(), and VIEW3D_MARGIN.
Referenced by view3d_all_exec(), view3d_from_minmax_multi(), and viewselected_exec().
|
static |
Same as view3d_from_minmax but for all regions (except cameras).
Definition at line 2896 of file view3d_edit.c.
References blender::compositor::area(), C, CTX_wm_area(), ED_view3d_camera_lock_check(), max, min, ARegion::next, RegionView3D::persp, ARegion::regiondata, ARegion::regiontype, RGN_TYPE_WINDOW, RV3D_CAMOB, and view3d_from_minmax().
Referenced by view3d_all_exec(), and viewselected_exec().
|
static |
Definition at line 104 of file view3d_edit.c.
References C, CTX_wm_region_view3d(), CTX_wm_view3d(), and ED_view3d_offset_lock_check().
Referenced by VIEW3D_OT_view_center_lock().
|
static |
Definition at line 4735 of file view3d_edit.c.
References C, NULL, OPERATOR_FINISHED, VIEW_NAVIGATION_FLY, VIEW_NAVIGATION_WALK, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
Referenced by VIEW3D_OT_navigate().
|
static |
Definition at line 2791 of file view3d_edit.c.
References BKE_object_minmax(), BKE_object_minmax_dupli(), depsgraph, max, min, minmax_v3v3_v3(), Object::obmat, and scene.
Referenced by view3d_all_exec(), and viewselected_exec().
|
static |
Definition at line 2769 of file view3d_edit.c.
References BKE_object_empty_image_frame_is_visible_in_view3d(), BLI_assert, View3D::camera, Object::empty_drawtype, Object::id, NULL, OB_EMPTY, OB_EMPTY_IMAGE, ID::orig_id, and Object::type.
Referenced by view3d_all_exec(), and viewselected_exec().
|
static |
Definition at line 145 of file view3d_edit.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 286 of file view3d_edit.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(), viewroll_apply(), and viewrotate_apply_dyn_ofs().
Definition at line 303 of file view3d_edit.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_background_image_add | ( | wmOperatorType * | ot | ) |
Definition at line 4820 of file view3d_edit.c.
References background_image_add_exec(), background_image_add_invoke(), background_image_add_poll(), wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_string(), wmOperatorType::srna, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_background_image_remove | ( | wmOperatorType * | ot | ) |
Definition at line 4878 of file view3d_edit.c.
References background_image_remove_exec(), wmOperatorType::description, ED_operator_camera(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by view3d_operatortypes().
| void VIEW3D_OT_clear_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 3596 of file view3d_edit.c.
References clear_render_border_exec(), wmOperatorType::description, ED_operator_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by view3d_operatortypes().
| void VIEW3D_OT_clip_border | ( | wmOperatorType * | ot | ) |
Definition at line 4962 of file view3d_edit.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::poll, view3d_clipping_exec(), view3d_clipping_invoke(), WM_gesture_box_cancel(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_cursor3d | ( | wmOperatorType * | ot | ) |
Definition at line 5242 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, V3D_CURSOR_ORIENT_GEOM, V3D_CURSOR_ORIENT_NONE, V3D_CURSOR_ORIENT_VIEW, V3D_CURSOR_ORIENT_XFORM, and view3d_cursor3d_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_dolly | ( | wmOperatorType * | ot | ) |
Definition at line 2739 of file view3d_edit.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_region_view3d_active(), 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(), viewdolly_cancel(), viewdolly_exec(), viewdolly_invoke(), and viewdolly_modal().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 1861 of file view3d_edit.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_region_view3d_active(), 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(), viewmove_cancel(), viewmove_invoke(), and viewmove_modal().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_navigate | ( | wmOperatorType * | ot | ) |
Definition at line 4754 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_view3d_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, and view3d_navigate_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_render_border | ( | wmOperatorType * | ot | ) |
Definition at line 3536 of file view3d_edit.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, render_border_exec(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_rotate | ( | wmOperatorType * | ot | ) |
Definition at line 1035 of file view3d_edit.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_region_view3d_active(), 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(), viewrotate_cancel(), viewrotate_invoke(), and viewrotate_modal().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_toggle_shading | ( | wmOperatorType * | ot | ) |
Definition at line 5336 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_view3d_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, prop_shading_type_items, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, and toggle_shading_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_toggle_xray | ( | wmOperatorType * | ot | ) |
Definition at line 5390 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_view3d_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and toggle_xray_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 2996 of file view3d_edit.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 | ( | wmOperatorType * | ot | ) |
Definition at line 4078 of file view3d_edit.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_items, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, and view_axis_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_camera | ( | wmOperatorType * | ot | ) |
Definition at line 4201 of file view3d_edit.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_camera | ( | wmOperatorType * | ot | ) |
Definition at line 3410 of file view3d_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, view3d_camera_user_poll(), and view3d_center_camera_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_center_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 3306 of file view3d_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, view3d_pan_poll(), and viewcenter_cursor_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_center_lock | ( | wmOperatorType * | ot | ) |
Definition at line 3442 of file view3d_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, view3d_center_lock_exec(), and view3d_lock_poll().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_center_pick | ( | wmOperatorType * | ot | ) |
Definition at line 3358 of file view3d_edit.c.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, view3d_pan_poll(), and viewcenter_pick_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_lock_clear | ( | wmOperatorType * | ot | ) |
Definition at line 3203 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view_lock_clear_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_lock_to_active | ( | wmOperatorType * | ot | ) |
Definition at line 3260 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view_lock_to_active_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_orbit | ( | wmOperatorType * | ot | ) |
Definition at line 4337 of file view3d_edit.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 | ( | wmOperatorType * | ot | ) |
Definition at line 4663 of file view3d_edit.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_pan_poll(), and viewpan_invoke().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_persportho | ( | wmOperatorType * | ot | ) |
Definition at line 4712 of file view3d_edit.c.
References wmOperatorType::description, ED_operator_rv3d_user_region_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and viewpersportho_exec().
Referenced by view3d_operatortypes().
| void VIEW3D_OT_view_roll | ( | wmOperatorType * | ot | ) |
Definition at line 4578 of file view3d_edit.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 | ( | wmOperatorType * | ot | ) |
Definition at line 3164 of file view3d_edit.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_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 2426 of file view3d_edit.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 | ( | wmOperatorType * | ot | ) |
Definition at line 3771 of file view3d_edit.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().
| void VIEW3D_OT_zoom_camera_1_to_1 | ( | wmOperatorType * | ot | ) |
Definition at line 3834 of file view3d_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, view3d_camera_user_poll(), and view3d_zoom_1_to_1_camera_exec().
Referenced by view3d_operatortypes().
|
static |
Definition at line 116 of file view3d_edit.c.
References C, CTX_wm_region_view3d(), ED_operator_region_view3d_active(), RV3D_LOCK_FLAGS, and RV3D_LOCK_LOCATION.
Referenced by VIEW3D_OT_view_center_cursor(), VIEW3D_OT_view_center_pick(), and VIEW3D_OT_view_pan().
|
static |
Definition at line 3801 of file view3d_edit.c.
References BKE_screen_view3d_zoom_from_fac(), RegionView3D::camzoom, CLAMP, depsgraph, ED_view3d_calc_camera_border_size(), Scene::r, ARegion::regiondata, RV3D_CAMZOOM_MAX, RV3D_CAMZOOM_MIN, scene, size(), RenderData::size, and RenderData::xsch.
Referenced by view3d_zoom_1_to_1_camera_exec().
|
static |
Definition at line 3816 of file view3d_edit.c.
References C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), depsgraph, ED_view3d_context_user_region(), NC_SPACE, ND_SPACE_VIEW3D, OPERATOR_FINISHED, scene, view3d_set_1_to_1_viewborder(), and WM_event_add_notifier().
Referenced by VIEW3D_OT_zoom_camera_1_to_1().
|
static |
Definition at line 3617 of file view3d_edit.c.
References add_v3_v3v3(), BKE_report(), BLI_rcti_resize_x(), BLI_rcti_resize_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), C, CLAMP, View3D::clip_start, copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_region(), CTX_wm_region_view3d(), CTX_wm_view3d(), DEFAULT_SENSOR_WIDTH, depsgraph, ViewDepths::depths, RegionView3D::dist, ED_view3d_calc_zfac(), ED_view3d_camera_lock_check(), ED_view3d_depth_override(), ED_view3d_dist_range_get(), ED_view3d_persp_switch_from_camera(), ED_view3d_smooth_view(), ED_view3d_unproject(), ED_view3d_win_to_delta(), float(), RegionView3D::is_persp, len_v3(), View3D::lens, max_ff(), MEM_SAFE_FREE, negate_v3_v3(), NULL, RegionView3D::ofs, OPERATOR_CANCELLED, OPERATOR_FINISHED, RegionView3D::persp, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, RV3D_BOXVIEW, RV3D_CAMOB, RV3D_LOCK_FLAGS, RV3D_PERSP, sub_v3_v3(), sub_v3_v3v3(), V3D_DEPTH_NO_GPENCIL, view3d_boxview_sync(), view3d_depth_near(), view3d_operator_needs_opengl(), view3d_update_depths_rect(), ARegion::winx, ARegion::winy, WM_operator_properties_border_to_rcti(), WM_operator_smooth_viewtx_get(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by VIEW3D_OT_zoom_border().
|
static |
Definition at line 125 of file view3d_edit.c.
References C, CTX_wm_region_view3d(), ED_operator_region_view3d_active(), RV3D_LOCK_FLAGS, and RV3D_LOCK_ZOOM_AND_DOLLY.
Referenced by VIEW3D_OT_view_selected(), VIEW3D_OT_zoom(), and VIEW3D_OT_zoom_border().
|
static |
Definition at line 3968 of file view3d_edit.c.
References angle_signed_qtqt(), axis_angle_to_quat(), axis_set_view(), BLI_assert, C, CTX_data_active_object(), CTX_data_edit_object(), ED_getTransformOrientationMatrix(), ED_view3d_context_user_region(), ED_view3d_quat_from_axis_view(), ED_view3d_smooth_view_force_finish(), ELEM, fabsf, invert_qt_normalized(), RegionView3D::lpersp, M_PI, mat3_to_quat(), mul_qt_qtqt(), NULL, OPERATOR_FINISHED, RegionView3D::persp, wmOperator::ptr, ARegion::regiondata, RNA_boolean_get(), RNA_enum_get(), RV3D_CAMOB, RV3D_PERSP, RV3D_VIEW_AXIS_ROLL_0, RV3D_VIEW_AXIS_ROLL_270, RV3D_VIEW_BACK, RV3D_VIEW_BOTTOM, RV3D_VIEW_FRONT, RV3D_VIEW_LEFT, RV3D_VIEW_RIGHT, RV3D_VIEW_TOP, unit_qt(), USER_TRACKBALL, V3D_AROUND_ACTIVE, RegionView3D::viewinv, RegionView3D::viewquat, and WM_operator_smooth_viewtx_get().
Referenced by VIEW3D_OT_view_axis().
|
static |
Definition at line 4110 of file view3d_edit.c.
References axis_set_view(), BKE_view_layer_camera_find(), C, Scene::camera, View3D::camera, CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), RegionView3D::dist, ED_view3d_context_user_region(), ED_view3d_lastview_store(), ED_view3d_smooth_view(), ED_view3d_smooth_view_force_finish(), Scene::id, ID_RECALC_COPY_ON_WRITE, View3D::lens, RegionView3D::lpersp, RegionView3D::lview, RegionView3D::lview_axis_roll, RegionView3D::lviewquat, NULL, OB_CAMERA, OBACT, RegionView3D::ofs, OPERATOR_CANCELLED, OPERATOR_FINISHED, RegionView3D::persp, ARegion::regiondata, RV3D_CAMOB, RV3D_LOCK_ANY_TRANSFORM, RV3D_LOCK_FLAGS, scene, View3D::scenelock, RegionView3D::smooth_timer, Object::type, RegionView3D::viewquat, and WM_operator_smooth_viewtx_get().
Referenced by VIEW3D_OT_view_camera().
|
static |
Definition at line 2501 of file view3d_edit.c.
References madd_v3_v3v3fl(), RegionView3D::ofs, and ARegion::regiondata.
Referenced by viewdolly_apply(), and viewdolly_exec().
|
static |
Definition at line 3188 of file view3d_edit.c.
References C, CTX_wm_view3d(), ED_view3d_lock_clear(), NC_SPACE, ND_SPACE_VIEW3D, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by VIEW3D_OT_view_lock_clear().
|
static |
Definition at line 3225 of file view3d_edit.c.
References BKE_pose_channel_active(), BLI_strncpy(), C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_view3d(), Object::data, DEG_get_evaluated_object(), depsgraph, ED_view3d_lock_clear(), Object::mode, EditBone::name, bPoseChannel::name, NC_SPACE, ND_SPACE_VIEW3D, OB_ARMATURE, View3D::ob_center, View3D::ob_center_bone, OB_MODE_POSE, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::type, and WM_event_add_notifier().
Referenced by VIEW3D_OT_view_lock_to_active().
|
static |
Definition at line 4367 of file view3d_edit.c.
References angle(), axis_angle_normalized_to_quat(), mul_qt_qtqt(), normalize_qt(), ARegion::regiondata, RV3D_VIEW_USER, and RegionView3D::view.
Referenced by viewroll_apply(), and viewroll_exec().
| zoom_xy | Optionally zoom to window location (coords compatible w/ wmEvent.x, y). Use when not NULL. |
Definition at line 1978 of file view3d_edit.c.
References add_v3_v3v3(), copy_v3_v3(), RegionView3D::dist, ED_view3d_calc_zfac(), ED_view3d_win_to_delta(), float(), madd_v3_v3v3fl(), negate_v3(), negate_v3_v3(), NULL, RegionView3D::ofs, ARegion::regiondata, ARegion::winrct, ARegion::winx, ARegion::winy, rcti::xmin, and rcti::ymin.
Referenced by viewzoom_apply_3d(), and viewzoom_exec().
|
static |
| zoom_xy | Optionally zoom to window location (coords compatible w/ wmEvent.x, y). Use when not NULL. |
Definition at line 1925 of file view3d_edit.c.
References BKE_screen_view3d_zoom_from_fac(), BKE_screen_view3d_zoom_to_fac(), BLI_rctf_transform_pt_v(), BLI_rctf_translate(), RegionView3D::camdx, RegionView3D::camdy, RegionView3D::camzoom, CLAMP, clamp_f(), depsgraph, ED_view3d_calc_camera_border(), NULL, ARegion::regiondata, RV3D_CAMZOOM_MAX, RV3D_CAMZOOM_MAX_FACTOR, RV3D_CAMZOOM_MIN, RV3D_CAMZOOM_MIN_FACTOR, scene, sub_v2_v2v2(), ARegion::winrct, ARegion::winx, ARegion::winy, rcti::xmin, and rcti::ymin.
Referenced by viewzoom_apply_camera(), and viewzoom_exec().
|
static |
Definition at line 3282 of file view3d_edit.c.
References C, CTX_data_scene(), CTX_wm_region(), CTX_wm_region_view3d(), CTX_wm_view3d(), Scene::cursor, ED_view3d_smooth_view(), ED_view3d_smooth_view_force_finish(), View3DCursor::location, negate_v3_v3(), OPERATOR_FINISHED, scene, and WM_operator_smooth_viewtx_get().
Referenced by VIEW3D_OT_view_center_cursor().
|
static |
Definition at line 3327 of file view3d_edit.c.
References C, CTX_data_ensure_evaluated_depsgraph(), CTX_wm_region(), CTX_wm_region_view3d(), CTX_wm_view3d(), depsgraph, ED_view3d_autodist(), ED_view3d_smooth_view(), ED_view3d_smooth_view_force_finish(), ED_view3d_win_to_3d_int(), wmEvent::mval, negate_v3(), negate_v3_v3(), NULL, RegionView3D::ofs, OPERATOR_FINISHED, view3d_operator_needs_opengl(), and WM_operator_smooth_viewtx_get().
Referenced by VIEW3D_OT_view_center_pick().
|
static |
Definition at line 2510 of file view3d_edit.c.
References ViewOpsData::area, ViewOpsData::depsgraph, RegionView3D::dist, ED_region_tag_redraw(), ED_view3d_camera_lock_sync(), ViewOpsData::event_xy, ViewOpsData::init, ViewOpsData::mousevec, ViewOpsData::ofs, ViewOpsData::region, ViewOpsData::rv3d, RV3D_BOXVIEW, RV3D_LOCK_FLAGS, SWAP, USER_ZOOM_HORIZ, ViewOpsData::v3d, view3d_boxview_sync(), view_dolly_to_vector_3d(), ARegion::winrct, rcti::xmax, and rcti::ymax.
Referenced by viewdolly_invoke(), and viewdolly_modal().
|
static |
Definition at line 2734 of file view3d_edit.c.
References C, and viewops_data_free().
Referenced by VIEW3D_OT_dolly().
|
static |
Definition at line 2598 of file view3d_edit.c.
References blender::compositor::area(), ViewOpsData::area, C, copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, ED_region_tag_redraw(), ED_view3d_camera_lock_sync(), ED_view3d_depth_tag_update(), ViewOpsData::init, ViewOpsData::mousevec, negate_v3(), negate_v3_v3(), normalize_v3(), normalize_v3_v3(), RegionView3D::ofs, OPERATOR_FINISHED, wmOperator::ptr, ViewOpsData::region, ARegion::regiondata, RNA_boolean_get(), RNA_int_get(), RV3D_BOXVIEW, RV3D_LOCK_FLAGS, USER_ZOOM_TO_MOUSEPOS, view3d_boxview_sync(), view_dolly_to_vector_3d(), RegionView3D::viewinv, and viewops_data_free().
Referenced by VIEW3D_OT_dolly(), and viewdolly_invoke().
|
static |
Definition at line 2651 of file view3d_edit.c.
References C, CTX_data_ensure_evaluated_depsgraph(), wmOperator::customdata, depsgraph, ED_region_tag_redraw(), ED_view3d_depth_tag_update(), ED_view3d_persp_switch_from_camera(), ED_view3d_smooth_view_force_finish(), ViewOpsData::event_xy, ViewOpsData::init, ViewOpsData::mousevec, MOUSEZOOM, negate_v3_v3(), normalize_v3(), OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, RegionView3D::persp, ViewOpsData::prev, wmEvent::prevx, wmOperator::ptr, ViewOpsData::region, RNA_boolean_get(), RNA_int_set(), RNA_struct_property_is_set(), ViewOpsData::rv3d, RV3D_CAMOB, RV3D_LOCK_FLAGS, RV3D_LOCK_ROTATION, RV3D_PERSP, wmEvent::type, USER_ZOOM_HORIZ, USER_ZOOM_INVERT, USER_ZOOM_TO_MOUSEPOS, ViewOpsData::v3d, viewdolly_apply(), viewdolly_exec(), viewdolly_offset_lock_check(), RegionView3D::viewinv, viewops_data_alloc(), viewops_data_create(), viewops_data_free(), viewops_flag_from_prefs(), VIEWOPS_FLAG_ORBIT_SELECT, VIEWOPS_FLAG_USE_MOUSE_INIT, WM_event_add_modal_handler(), wmEvent::x, and wmEvent::y.
Referenced by VIEW3D_OT_dolly().
|
static |
Definition at line 2545 of file view3d_edit.c.
References C, CTX_wm_manager(), wmOperator::customdata, ED_screen_animation_playing(), ED_view3d_camera_lock_autokey(), ED_view3d_depth_tag_update(), ViewOpsData::event_type, EVT_MODAL_MAP, ViewOpsData::init, KM_RELEASE, MOUSEMOVE, NULL, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ret, ViewOpsData::rv3d, wmEvent::type, USER_ZOOM_INVERT, ViewOpsData::v3d, wmEvent::val, VIEW_APPLY, VIEW_CONFIRM, VIEW_MODAL_CONFIRM, VIEW_PASS, viewdolly_apply(), viewops_data_free(), VIEWROT_MODAL_SWITCH_MOVE, VIEWROT_MODAL_SWITCH_ROTATE, WM_OP_INVOKE_DEFAULT, WM_operator_name_call(), and wmEvent::x.
Referenced by VIEW3D_OT_dolly().
| void viewdolly_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 2459 of file view3d_edit.c.
References 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().
|
static |
Definition at line 2490 of file view3d_edit.c.
References BKE_report(), C, CTX_wm_region_view3d(), CTX_wm_view3d(), ED_view3d_offset_lock_check(), wmOperator::reports, and RPT_WARNING.
Referenced by viewdolly_invoke().
|
static |
Definition at line 1728 of file view3d_edit.c.
References add_v3_v3(), ViewOpsData::area, BKE_screen_view3d_zoom_to_fac(), RegionView3D::camdx, RegionView3D::camdy, RegionView3D::camzoom, CLAMP, ViewOpsData::depsgraph, ED_region_tag_redraw(), ED_view3d_camera_lock_check(), ED_view3d_camera_lock_sync(), 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, ViewOpsData::v3d, view3d_boxview_sync(), ARegion::winx, ARegion::winy, x, y, and ViewOpsData::zfac.
Referenced by viewmove_invoke(), viewmove_modal(), and viewpan_invoke().
|
static |
Definition at line 1856 of file view3d_edit.c.
References C, and viewops_data_free().
Referenced by VIEW3D_OT_move().
|
static |
Definition at line 1818 of file view3d_edit.c.
References C, wmOperator::customdata, ED_view3d_depth_tag_update(), ED_view3d_smooth_view_force_finish(), MOUSEPAN, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmEvent::prevx, wmEvent::prevy, wmOperator::ptr, ViewOpsData::region, RNA_boolean_get(), ViewOpsData::rv3d, RV3D_LOCK_FLAGS, RV3D_LOCK_LOCATION, wmEvent::type, ViewOpsData::v3d, viewmove_apply(), viewops_data_alloc(), viewops_data_create(), viewops_data_free(), viewops_flag_from_prefs(), VIEWOPS_FLAG_ORBIT_SELECT, VIEWOPS_FLAG_USE_MOUSE_INIT, WM_event_add_modal_handler(), wmEvent::x, and wmEvent::y.
Referenced by VIEW3D_OT_move().
|
static |
Definition at line 1764 of file view3d_edit.c.
References C, CTX_wm_manager(), wmOperator::customdata, ED_screen_animation_playing(), ED_view3d_camera_lock_autokey(), ED_view3d_depth_tag_update(), ViewOpsData::event_type, EVT_MODAL_MAP, ViewOpsData::init, KM_RELEASE, MOUSEMOVE, NULL, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ret, ViewOpsData::rv3d, wmEvent::type, ViewOpsData::v3d, wmEvent::val, VIEW_APPLY, VIEW_CONFIRM, VIEW_MODAL_CONFIRM, VIEW_PASS, viewmove_apply(), viewops_data_free(), VIEWROT_MODAL_SWITCH_ROTATE, VIEWROT_MODAL_SWITCH_ZOOM, WM_OP_INVOKE_DEFAULT, WM_operator_name_call(), wmEvent::x, and wmEvent::y.
Referenced by VIEW3D_OT_move().
| void viewmove_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1692 of file view3d_edit.c.
References EVT_ESCKEY, 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().
|
static |
Allocate and fill in context pointers for ViewOpsData
Definition at line 271 of file view3d_edit.c.
References ViewOpsData::area, ViewOpsData::bmain, C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, ViewOpsData::depsgraph, ListBase::first, MEM_callocN, ViewOpsData::region, ARegion::regiondata, ViewOpsData::rv3d, ViewOpsData::scene, ScrArea::spacedata, and ViewOpsData::v3d.
Referenced by viewdolly_invoke(), viewmove_invoke(), viewpan_invoke(), viewroll_invoke(), viewrotate_invoke(), and viewzoom_invoke().
|
static |
Calculate the values for ViewOpsData
Definition at line 426 of file view3d_edit.c.
References BLI_rcti_cent_x(), BLI_rcti_cent_y(), C, calctrackballvec(), ViewOpsData::camzoom, RegionView3D::camzoom, closest_to_line_v3(), copy_m3_m4(), copy_qt_qt(), copy_v3_v3(), CTX_data_ensure_evaluated_depsgraph(), ViewOpsData::curr, wmOperator::customdata, depsgraph, ViewOpsData::dist, RegionView3D::dist, ViewOpsData::dyn_ofs, ED_region_tag_redraw(), ED_view3d_autodist(), ED_view3d_calc_zfac(), ED_view3d_camera_lock_init(), ED_view3d_persp_ensure(), ED_view3d_win_to_3d(), ED_view3d_win_to_vector(), ViewOpsData::event_type, ViewOpsData::event_xy, ViewOpsData::event_xy_offset, float(), ViewOpsData::init, RegionView3D::is_persp, len_v3v3(), ViewOpsData::mousevec, mul_m3_v3(), wmEvent::mval, negate_v3(), negate_v3_v3(), NULL, ViewOpsData::ofs, RegionView3D::ofs, RegionView3D::persmat, ViewOpsData::persp, RegionView3D::persp, ViewOpsData::prev, ViewOpsData::quat, ViewOpsData::region, ViewOpsData::reverse, RegionView3D::rflag, ViewOpsData::rv3d, RV3D_NAVIGATING, sub_v3_v3v3(), ViewOpsData::trackvec, ViewOpsData::use_dyn_ofs, ViewOpsData::v3d, view3d_operator_needs_opengl(), view3d_orbit_calc_center(), RegionView3D::viewinv, VIEWOPS_FLAG_DEPTH_NAVIGATE, VIEWOPS_FLAG_ORBIT_SELECT, VIEWOPS_FLAG_PERSP_ENSURE, VIEWOPS_FLAG_USE_MOUSE_INIT, ViewOpsData::viewquat, RegionView3D::viewquat, ARegion::winrct, ARegion::winx, ARegion::winy, and ViewOpsData::zfac.
Referenced by viewdolly_invoke(), viewmove_invoke(), viewpan_invoke(), viewroll_invoke(), viewrotate_invoke(), and viewzoom_invoke().
|
static |
Definition at line 568 of file view3d_edit.c.
References C, CTX_wm_manager(), CTX_wm_region(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN, NULL, 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().
|
static |
Definition at line 303 of file view3d_edit.c.
|
static |
Definition at line 303 of file view3d_edit.c.
Referenced by viewdolly_invoke(), viewmove_invoke(), viewpan_invoke(), viewroll_invoke(), viewrotate_invoke(), and viewzoom_invoke().
|
static |
Definition at line 4239 of file view3d_edit.c.
References angle(), axis_angle_to_quat(), axis_angle_to_quat_single(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_wm_region(), CTX_wm_view3d(), DEG2RADF, depsgraph, ED_view3d_axis_view_opposite(), ED_view3d_camera_lock_check(), ED_view3d_context_user_region(), ED_view3d_persp_ensure(), ED_view3d_quat_from_axis_view(), ED_view3d_smooth_view(), ED_view3d_smooth_view_force_finish(), ELEM, fabsf, float(), M_PI, mul_qt_qtqt(), negate_v3(), normalize_qt(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RegionView3D::persp, wmOperator::ptr, ARegion::regiondata, RNA_enum_get(), RNA_property_float_get(), RNA_property_is_set(), RNA_struct_find_property(), RV3D_CAMOB, RV3D_LOCK_FLAGS, RV3D_LOCK_ROTATION, RV3D_VIEW_USER, USER_ORBIT_SELECTION, V3D_VIEW_STEPDOWN, V3D_VIEW_STEPLEFT, V3D_VIEW_STEPRIGHT, RegionView3D::view, view3d_orbit_calc_center(), RegionView3D::view_axis_roll, RegionView3D::viewinv, RegionView3D::viewquat, and WM_operator_smooth_viewtx_get().
Referenced by VIEW3D_OT_view_orbit().
|
static |
Definition at line 4633 of file view3d_edit.c.
References C, wmOperator::customdata, ED_view3d_depth_tag_update(), ViewOpsData::event_xy, OPERATOR_FINISHED, ViewOpsData::prev, wmOperator::ptr, RNA_enum_get(), ViewOpsData::rv3d, V3D_VIEW_PANDOWN, V3D_VIEW_PANLEFT, V3D_VIEW_PANRIGHT, V3D_VIEW_PANUP, viewmove_apply(), viewops_data_alloc(), viewops_data_create(), viewops_data_free(), viewops_flag_from_prefs(), VIEWOPS_FLAG_ORBIT_SELECT, x, and y.
Referenced by VIEW3D_OT_view_pan().
|
static |
Definition at line 4688 of file view3d_edit.c.
References C, ED_region_tag_redraw(), ED_view3d_context_user_region(), OPERATOR_FINISHED, RegionView3D::persp, ARegion::regiondata, RV3D_LOCK_ANY_TRANSFORM, RV3D_LOCK_FLAGS, RV3D_ORTHO, and RV3D_PERSP.
Referenced by VIEW3D_OT_view_persportho().
|
static |
Definition at line 4384 of file view3d_edit.c.
References angle(), ViewOpsData::area, ViewOpsData::depsgraph, ViewOpsData::dyn_ofs, ED_region_tag_redraw(), ED_view3d_camera_lock_sync(), ViewOpsData::event_xy, ViewOpsData::init, M_PI, ViewOpsData::mousevec, ViewOpsData::ofs, RegionView3D::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(), RegionView3D::viewquat, ARegion::winrct, x, rcti::xmax, and rcti::xmin.
Referenced by viewroll_invoke(), and viewroll_modal().
|
static |
Definition at line 4573 of file view3d_edit.c.
References C, and viewops_data_free().
Referenced by VIEW3D_OT_view_roll().
|
static |
Definition at line 4475 of file view3d_edit.c.
References angle(), C, wmOperator::customdata, DEG2RADF, ED_view3d_camera_lock_check(), ED_view3d_context_user_region(), ED_view3d_smooth_view(), ED_view3d_smooth_view_force_finish(), negate_v3(), normalize_v3_v3(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RegionView3D::persp, wmOperator::ptr, ViewOpsData::region, ARegion::regiondata, RNA_enum_get(), RNA_float_get(), RV3D_CAMOB, type, USER_ORBIT_SELECTION, ViewOpsData::v3d, V3D_VIEW_STEPLEFT, view3d_orbit_calc_center(), view_roll_angle(), RegionView3D::viewinv, viewops_data_free(), RegionView3D::viewquat, and WM_operator_smooth_viewtx_get().
Referenced by VIEW3D_OT_view_roll(), and viewroll_invoke().
|
static |
Definition at line 4536 of file view3d_edit.c.
References C, wmOperator::customdata, ED_view3d_depth_tag_update(), ED_view3d_smooth_view_force_finish(), ViewOpsData::event_xy, ViewOpsData::init, MOUSEROTATE, ViewOpsData::mousevec, negate_v3(), normalize_v3_v3(), OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ViewOpsData::prev, wmEvent::prevx, wmEvent::prevy, wmOperator::ptr, ViewOpsData::region, RNA_enum_get(), RNA_struct_property_is_set(), ViewOpsData::rv3d, wmEvent::type, ViewOpsData::v3d, RegionView3D::viewinv, viewops_data_alloc(), viewops_data_create(), viewops_data_free(), viewops_flag_from_prefs(), viewroll_apply(), viewroll_exec(), and WM_event_add_modal_handler().
Referenced by VIEW3D_OT_view_roll().
|
static |
Definition at line 4415 of file view3d_edit.c.
References C, CTX_wm_manager(), wmOperator::customdata, ED_screen_animation_playing(), ED_view3d_camera_lock_autokey(), ED_view3d_depth_tag_update(), ViewOpsData::event_type, EVT_MODAL_MAP, ViewOpsData::init, KM_RELEASE, MOUSEMOVE, NULL, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ret, ViewOpsData::rv3d, wmEvent::type, ViewOpsData::v3d, wmEvent::val, VIEW_APPLY, VIEW_CONFIRM, 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(), wmEvent::x, and wmEvent::y.
Referenced by VIEW3D_OT_view_roll().
|
static |
Definition at line 775 of file view3d_edit.c.
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(), TRACKBALLSIZE, ViewOpsData::trackvec, USER_TRACKBALL, ViewOpsData::v3d, RegionView3D::view, ViewOpsData::viewquat, RegionView3D::viewquat, viewrotate_apply_dyn_ofs(), viewrotate_apply_snap(), and ARegion::winrct.
Referenced by viewrotate_invoke(), and viewrotate_modal().
|
static |
Definition at line 649 of file view3d_edit.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().
|
static |
Definition at line 658 of file view3d_edit.c.
References abs(), angle(), angle_normalized_v3v3(), angle_v3v3(), axis_angle_to_quat(), axis_limit(), copy_qt_qt(), copy_v3_v3(), ViewOpsData::curr, DEG2RADF, ED_view3d_quat_from_axis_view(), ED_view3d_quat_to_axis_view(), ViewOpsData::init, invert_qt_normalized(), invert_qt_qt_normalized(), mul_qt_qtqt(), mul_qt_v3(), normalize_qt(), normalize_v3(), OB_NEGZ, OB_POSY, ViewOpsData::persp, RegionView3D::persp, rotation_between_vecs_to_quat(), ViewOpsData::rv3d, RV3D_ORTHO, RV3D_PERSP, RV3D_VIEW_USER, USER_AUTOPERSP, vec_to_quat(), RegionView3D::view, RegionView3D::view_axis_roll, ViewOpsData::viewquat, RegionView3D::viewquat, viewrotate_apply_dyn_ofs(), x, y, and z.
Referenced by viewrotate_apply().
|
static |
Definition at line 1030 of file view3d_edit.c.
References C, and viewops_data_free().
Referenced by VIEW3D_OT_rotate().
|
static |
Definition at line 972 of file view3d_edit.c.
References C, wmOperator::customdata, ED_view3d_depth_tag_update(), ED_view3d_smooth_view_force_finish(), ELEM, wmEvent::is_direction_inverted, MOUSEPAN, MOUSEROTATE, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ViewOpsData::region, RNA_boolean_get(), ViewOpsData::rv3d, RV3D_LOCK_FLAGS, RV3D_LOCK_ROTATION, wmEvent::type, ViewOpsData::v3d, viewops_data_alloc(), viewops_data_create(), viewops_data_free(), viewops_flag_from_prefs(), VIEWOPS_FLAG_PERSP_ENSURE, VIEWOPS_FLAG_USE_MOUSE_INIT, viewrotate_apply(), and WM_event_add_modal_handler().
Referenced by VIEW3D_OT_rotate().
|
static |
Definition at line 910 of file view3d_edit.c.
References ViewOpsData::axis_snap, C, CTX_wm_manager(), wmOperator::customdata, ED_screen_animation_playing(), ED_view3d_camera_lock_autokey(), ED_view3d_depth_tag_update(), ViewOpsData::event_type, EVT_MODAL_MAP, ViewOpsData::init, KM_RELEASE, MOUSEMOVE, NULL, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, ViewOpsData::persp, RegionView3D::persp, ret, ViewOpsData::rv3d, wmEvent::type, ViewOpsData::v3d, wmEvent::val, VIEW_APPLY, VIEW_CONFIRM, VIEW_MODAL_CONFIRM, VIEW_PASS, viewops_data_free(), VIEWROT_MODAL_AXIS_SNAP_DISABLE, VIEWROT_MODAL_AXIS_SNAP_ENABLE, VIEWROT_MODAL_SWITCH_MOVE, VIEWROT_MODAL_SWITCH_ZOOM, viewrotate_apply(), WM_OP_INVOKE_DEFAULT, WM_operator_name_call(), and wmEvent::x.
Referenced by VIEW3D_OT_rotate().
| void viewrotate_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 615 of file view3d_edit.c.
References 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().
|
static |
Definition at line 3023 of file view3d_edit.c.
References BASE_SELECTED, BASE_SELECTED_EDITABLE, BKE_gpencil_stroke_minmax(), BKE_paint_select_face_test(), BKE_paint_stroke_get_average(), BKE_pose_minmax(), C, copy_v3_v3(), CTX_DATA_BEGIN, CTX_data_edit_object(), CTX_DATA_END, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region(), CTX_wm_region_view3d(), CTX_wm_view3d(), Object::data, DEG_get_evaluated_view_layer(), DEG_get_original_object(), depsgraph, ED_view3d_camera_lock_check(), ED_view3d_clipping_clamp_minmax(), ED_view3d_minmax_verts(), BezTriple::f1, BezTriple::f2, BezTriple::f3, ListBase::first, FIRSTBASE, View3D::flag2, FOREACH_OBJECT_IN_MODE_BEGIN, FOREACH_OBJECT_IN_MODE_END, ARegion::gizmo_map, GP_STROKE_3DSPACE, GP_STROKE_SELECT, GPENCIL_ANY_MODE, INIT_MINMAX, max, min, minmax_v3v3_v3(), Object::mode, mul_m4_v3(), Base::next, NULL, OB_ARMATURE, OB_GPENCIL, OB_MODE_PARTICLE_EDIT, OB_MODE_POSE, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, OBACT, Base::object, ViewLayer::object_bases, Object::obmat, OPERATOR_FINISHED, paintface_minmax(), PE_minmax(), wmOperator::ptr, ARegion::regiondata, RNA_boolean_get(), RV3D_CLIPPING_ENABLED, scene, SELECT, Object::type, V3D_LOCK_CAMERA, BezTriple::vec, view3d_from_minmax(), view3d_from_minmax_multi(), view3d_object_calc_minmax(), view3d_object_skip_minmax(), WM_gizmomap_is_any_selected(), WM_gizmomap_minmax(), and WM_operator_smooth_viewtx_get().
Referenced by VIEW3D_OT_view_selected().
|
static |
Definition at line 2196 of file view3d_edit.c.
References ED_view3d_camera_lock_check(), RegionView3D::is_persp, RegionView3D::persp, ViewOpsData::rv3d, RV3D_CAMOB, ViewOpsData::v3d, viewzoom_apply_3d(), and viewzoom_apply_camera().
Referenced by viewzoom_invoke(), and viewzoom_modal().
|
static |
Definition at line 2154 of file view3d_edit.c.
References ViewOpsData::area, CLAMP, ViewOpsData::depsgraph, ViewOpsData::dist, RegionView3D::dist, ED_region_tag_redraw(), ED_view3d_camera_lock_sync(), ED_view3d_dist_range_get(), ViewOpsData::event_xy, ViewOpsData::event_xy_offset, ViewOpsData::init, NULL, ViewOpsData::prev, ViewOpsData::region, ViewOpsData::rv3d, RV3D_BOXVIEW, RV3D_LOCK_FLAGS, ViewOpsData::time, ViewOpsData::v3d, view3d_boxview_sync(), view_zoom_to_window_xy_3d(), viewzoom_scale_value_offset(), and ARegion::winrct.
Referenced by viewzoom_apply().
|
static |
Definition at line 2119 of file view3d_edit.c.
References BKE_screen_view3d_zoom_to_fac(), ViewOpsData::camzoom, RegionView3D::camzoom, ViewOpsData::depsgraph, ED_region_tag_redraw(), ELEM, ViewOpsData::event_xy, ViewOpsData::event_xy_offset, ViewOpsData::init, NULL, ViewOpsData::prev, ViewOpsData::region, ViewOpsData::rv3d, ViewOpsData::scene, ViewOpsData::time, ViewOpsData::v3d, view_zoom_to_window_xy_camera(), viewzoom_scale_value_offset(), and ARegion::winrct.
Referenced by viewzoom_apply().
|
static |
Definition at line 2421 of file view3d_edit.c.
References C, and viewops_data_free().
Referenced by VIEW3D_OT_zoom().
|
static |
Definition at line 2273 of file view3d_edit.c.
References blender::compositor::area(), ViewOpsData::area, C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, depsgraph, RegionView3D::dist, ED_region_tag_redraw(), ED_view3d_camera_lock_autokey(), ED_view3d_camera_lock_check(), ED_view3d_camera_lock_sync(), ED_view3d_depth_tag_update(), ED_view3d_dist_range_get(), RegionView3D::is_persp, NULL, OPERATOR_FINISHED, RegionView3D::persp, wmOperator::ptr, ViewOpsData::region, ARegion::regiondata, RNA_boolean_get(), RNA_int_get(), RNA_struct_property_is_set(), RV3D_BOXVIEW, RV3D_CAMOB, RV3D_LOCK_FLAGS, scene, USER_ZOOM_TO_MOUSEPOS, view3d_boxview_sync(), view_zoom_to_window_xy_3d(), view_zoom_to_window_xy_camera(), viewops_data_free(), ARegion::winx, and ARegion::winy.
Referenced by VIEW3D_OT_zoom(), and viewzoom_invoke().
|
static |
Definition at line 2357 of file view3d_edit.c.
References C, CTX_wm_manager(), CTX_wm_window(), wmOperator::customdata, ED_view3d_camera_lock_autokey(), ED_view3d_depth_tag_update(), ED_view3d_smooth_view_force_finish(), ELEM, ViewOpsData::event_xy, ViewOpsData::init, MOUSEPAN, MOUSEZOOM, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, PIL_check_seconds_timer(), ViewOpsData::prev, wmEvent::prevx, wmOperator::ptr, ViewOpsData::region, RNA_boolean_get(), RNA_int_set(), RNA_struct_property_is_set(), ViewOpsData::rv3d, ViewOpsData::time, ViewOpsData::timer, TIMER, wmEvent::type, USER_ZOOM_CONTINUE, USER_ZOOM_DOLLY, USER_ZOOM_HORIZ, USER_ZOOM_INVERT, USER_ZOOM_TO_MOUSEPOS, ViewOpsData::v3d, viewops_data_alloc(), viewops_data_create(), viewops_data_free(), viewops_flag_from_prefs(), VIEWOPS_FLAG_ORBIT_SELECT, VIEWOPS_FLAG_USE_MOUSE_INIT, viewzoom_apply(), viewzoom_exec(), WM_event_add_modal_handler(), WM_event_add_timer(), wmEvent::x, and wmEvent::y.
Referenced by VIEW3D_OT_zoom().
|
static |
Definition at line 2211 of file view3d_edit.c.
References C, CTX_wm_manager(), wmOperator::customdata, wmEvent::customdata, ED_screen_animation_playing(), ED_view3d_camera_lock_autokey(), ED_view3d_depth_tag_update(), ViewOpsData::event_type, EVT_MODAL_MAP, ViewOpsData::init, KM_RELEASE, MOUSEMOVE, NULL, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ret, RNA_boolean_get(), ViewOpsData::rv3d, ViewOpsData::timer, TIMER, wmEvent::type, USER_ZOOM_INVERT, USER_ZOOM_TO_MOUSEPOS, ViewOpsData::v3d, wmEvent::val, VIEW_APPLY, VIEW_CONFIRM, VIEW_MODAL_CONFIRM, VIEW_PASS, viewops_data_free(), VIEWROT_MODAL_SWITCH_MOVE, VIEWROT_MODAL_SWITCH_ROTATE, viewzoom_apply(), WM_OP_INVOKE_DEFAULT, WM_operator_name_call(), and wmEvent::x.
Referenced by VIEW3D_OT_zoom().
| void viewzoom_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1890 of file view3d_edit.c.
References 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().
|
static |
Definition at line 2016 of file view3d_edit.c.
References BLI_rcti_cent_x(), BLI_rcti_cent_y(), float(), len_v2v2_int(), max_ff(), PIL_check_seconds_timer(), SWAP, time, USER_ZOOM_CONTINUE, USER_ZOOM_HORIZ, USER_ZOOM_SCALE, rcti::xmax, and rcti::ymax.
Referenced by viewzoom_scale_value_offset().
|
static |
Definition at line 2089 of file view3d_edit.c.
References viewzoom_scale_value().
Referenced by viewzoom_apply_3d(), and viewzoom_apply_camera().
|
static |
Definition at line 5290 of file view3d_edit.c.
Referenced by VIEW3D_OT_toggle_shading().
|
static |
Definition at line 3855 of file view3d_edit.c.
Referenced by VIEW3D_OT_view_axis().
|
static |
Definition at line 4231 of file view3d_edit.c.
Referenced by VIEW3D_OT_view_orbit().
|
static |
Definition at line 4617 of file view3d_edit.c.
Referenced by VIEW3D_OT_view_pan().
|
static |
Definition at line 4468 of file view3d_edit.c.
Referenced by VIEW3D_OT_view_roll().