27#define V3D_OP_TRACKBALLSIZE (1.1f)
47struct wmWindowManager;
212 const float dyn_ofs_override[3] =
nullptr,
213 const bool use_cursor_init =
false);
216 MEM_CXX_CLASS_ALLOC_FUNCS(
"ViewOpsData")
236 const float ofs_old[3],
237 const float viewquat_old[4],
238 const float viewquat_new[4],
239 const float dyn_ofs[3]);
259 const float horizon_plane[3],
260 bool horizon_plane_no_flip,
261 const float axis_fallback[3],
277 const float horizon_plane[3],
278 bool horizon_plane_no_flip,
294 const bool use_cursor_init);
301 const float quat_[4],
305 const float *align_to_quat,
306 const int smooth_viewtx);
330#ifdef WITH_INPUT_NDOF
331struct wmNDOFMotionData;
335void view3d_ndof_fly(
const wmNDOFMotionData &ndof,
340 bool *r_has_translate,
348extern const ViewOpsType ViewOpsType_ndof_orbit_zoom;
417 const char *undo_str,
450 Depsgraph *depsgraph,
ScrArea *area,
ARegion *region,
bool use_all_regions,
bool clip_bounds);
461 bool use_all_regions,
472 const float scale_margin);
Read Blender memory allocation and freeing.
ENUM_OPERATORS(Layer::Flags)
void VIEW3D_OT_view_axis(wmOperatorType *ot)
void VIEW3D_OT_view_selected(wmOperatorType *ot)
const ViewOpsType ViewOpsType_roll
void viewdolly_modal_keymap(wmKeyConfig *keyconf)
ViewOpsType ViewOpsType_dolly
void VIEW3D_OT_view_orbit(wmOperatorType *ot)
void VIEW3D_OT_smoothview(wmOperatorType *ot)
void VIEW3D_OT_zoom_border(wmOperatorType *ot)
void viewops_data_free(bContext *C, ViewOpsData *vod)
void viewrotate_apply_dyn_ofs(ViewOpsData *vod, const float viewquat_new[4])
void viewrotate_modal_keymap(wmKeyConfig *keyconf)
void viewmove_modal_keymap(wmKeyConfig *keyconf)
void view3d_operator_properties_common(wmOperatorType *ot, const enum eV3D_OpPropFlag flag)
ViewOpsData * viewops_data_create(bContext *C, const wmEvent *event, const ViewOpsType *nav_type, const bool use_cursor_init)
void VIEW3D_OT_view_all(wmOperatorType *ot)
void VIEW3D_OT_move(wmOperatorType *ot)
void ED_view3d_smooth_view_undo_end(bContext *C, const ScrArea *area, const char *undo_str, bool undo_grouped)
const ViewOpsType ViewOpsType_orbit
void VIEW3D_OT_rotate(wmOperatorType *ot)
void VIEW3D_OT_view_camera(wmOperatorType *ot)
bool view3d_zoom_or_dolly_or_rotation_poll(bContext *C)
eRegionView3D_ViewAxisRoll
const ViewOpsType ViewOpsType_pan
void VIEW3D_OT_zoom(wmOperatorType *ot)
const ViewOpsType ViewOpsType_move
VecBase< int32_t, 2 > int2
wmOperatorStatus view3d_navigate_invoke_impl(bContext *C, wmOperator *op, const wmEvent *event, const ViewOpsType *nav_type)
void axis_set_view(bContext *C, View3D *v3d, ARegion *region, const float quat_[4], eRegionView3D_View view, eRegionView3D_ViewAxisRoll view_axis_roll, eRegionView3D_Persp perspo, const float *align_to_quat, const int smooth_viewtx)
bool view3d_location_poll(bContext *C)
void viewzoom_modal_keymap(wmKeyConfig *keyconf)
const ViewOpsType ViewOpsType_rotate
void view3d_keymap(wmKeyConfig *keyconf)
void VIEW3D_OT_dolly(wmOperatorType *ot)
void ED_view3d_smooth_view_force_finish_no_camera_lock(const Depsgraph *depsgraph, wmWindowManager *wm, wmWindow *win, const Scene *scene, View3D *v3d, ARegion *region)
bool view3d_calc_point_in_selected_bounds(Depsgraph *depsgraph, struct ViewLayer *view_layer_eval, const View3D *v3d, const float3 &point, const float scale_margin)
void VIEW3D_OT_view_center_pick(wmOperatorType *ot)
void calctrackballvec(const rcti *rect, const int event_xy[2], float r_dir[3])
void ED_view3d_smooth_view_ex(const Depsgraph *depsgraph, wmWindowManager *wm, wmWindow *win, ScrArea *area, View3D *v3d, ARegion *region, int smooth_viewtx, const V3D_SmoothParams *sview)
std::optional< Bounds< float3 > > view3d_calc_minmax_visible(Depsgraph *depsgraph, ScrArea *area, ARegion *region, bool use_all_regions, bool clip_bounds)
void VIEW3D_OT_fly(wmOperatorType *ot)
bool view3d_rotation_poll(bContext *C)
std::optional< Bounds< float3 > > view3d_calc_minmax_selected(Depsgraph *depsgraph, ScrArea *area, ARegion *region, bool use_all_regions, bool clip_bounds, bool *r_do_zoom)
@ VIEWOPS_FLAG_ZOOM_TO_MOUSE
@ VIEWOPS_FLAG_DEPTH_NAVIGATE
@ VIEWOPS_FLAG_ORBIT_SELECT
@ VIEWOPS_FLAG_PERSP_ENSURE
void VIEW3D_OT_view_pan(wmOperatorType *ot)
bool view3d_orbit_calc_center(bContext *C, float r_dyn_ofs[3])
@ VIEWROT_MODAL_AXIS_SNAP_ENABLE
@ VIEWROT_MODAL_AXIS_SNAP_DISABLE
@ VIEWROT_MODAL_SWITCH_MOVE
@ VIEWROT_MODAL_SWITCH_ZOOM
@ VIEWROT_MODAL_SWITCH_ROTATE
void ED_view3d_smooth_view_undo_begin(bContext *C, const ScrArea *area)
void viewmove_apply(ViewOpsData *vod, int x, int y)
void view3d_navigate_cancel_fn(bContext *C, wmOperator *op)
bool view3d_zoom_or_dolly_poll(bContext *C)
const ViewOpsType ViewOpsType_zoom
void VIEW3D_OT_view_center_cursor(wmOperatorType *ot)
void ED_view3d_smooth_view_force_finish(bContext *C, View3D *v3d, ARegion *region)
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])
@ V3D_OP_PROP_USE_ALL_REGIONS
@ V3D_OP_PROP_USE_MOUSE_INIT
void VIEW3D_OT_view_roll(wmOperatorType *ot)
void VIEW3D_OT_walk(wmOperatorType *ot)
void fly_modal_keymap(wmKeyConfig *keyconf)
VecBase< float, 3 > float3
void ED_view3d_smooth_view(bContext *C, View3D *v3d, ARegion *region, int smooth_viewtx, const V3D_SmoothParams *sview)
float view3d_horizon_correct_quat(float quat[4], const float horizon_plane[3], const bool horizon_plane_no_flip, const float axis_fallback[3], const float angle_target, const float factor)
float view3d_horizon_correct_quat_ease_out(float quat[4], const float horizon_plane[3], const bool horizon_plane_no_flip, const float factor)
void walk_modal_keymap(wmKeyConfig *keyconf)
wmOperatorStatus view3d_navigate_modal_fn(bContext *C, wmOperator *op, const wmEvent *event)
eRegionView3D_Persp persp_with_auto_persp_applied
eRegionView3D_ViewAxisRoll view_axis_roll
eRegionView3D_Persp persp
const ViewOpsType * nav_type
struct blender::ViewOpsData::@013213354235237006300365026145043140112021271057 prev
bool use_dyn_ofs_ortho_correction
void end_navigation(bContext *C)
void init_navigation(bContext *C, const wmEvent *event, const ViewOpsType *nav_type, const float dyn_ofs_override[3]=nullptr, const bool use_cursor_init=false)
void init_context(bContext *C)
struct blender::ViewOpsData::@337054214024237015354033064215073157327063021373 curr
eViewOpsFlag viewops_flag
bool(*) poll_fn(bContext *C)
wmOperatorStatus(*) init_fn(bContext *C, ViewOpsData *vod, const wmEvent *event, PointerRNA *ptr)
wmOperatorStatus(*) apply_fn(bContext *C, ViewOpsData *vod, const eV3D_OpEvent event_code, const int xy[2])