43 {0,
nullptr, 0,
nullptr,
nullptr},
71 const float orig_ofs[3],
95 std::swap(len1, len2);
98 zfac = 1.0f + ((len1 - len2) * 0.01f * vod->
rv3d->
dist);
118 bool use_autokey =
false;
123 switch (event->
val) {
143 else if (event->
type == vod->
init.event_type) {
155 switch (event_code) {
309 vod->
init.event_xy[0] = vod->
prev.event_xy[0] =
event->xy[0];
313 vod->
init.event_xy[1] = vod->
prev.event_xy[1] = vod->
init.event_xy[1] +
event->xy[0] -
333 ot->
name =
"Dolly View";
#define RV3D_LOCK_FLAGS(rv3d)
void viewdolly_modal_keymap(wmKeyConfig *keyconf)
MINLINE void madd_v3_v3v3fl(float r[3], const float a[3], const float b[3], float f)
ViewOpsType ViewOpsType_dolly
bool ED_view3d_camera_lock_autokey(View3D *v3d, RegionView3D *rv3d, bContext *C, bool do_rotate, bool do_translate)
MINLINE void negate_v3_v3(float r[3], const float a[3])
ScrArea * CTX_wm_area(const bContext *C)
static wmOperatorStatus viewdolly_modal(bContext *C, wmOperator *op, const wmEvent *event)
wmKeyMap * WM_modalkeymap_find(wmKeyConfig *keyconf, const char *idname)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void viewops_data_free(bContext *C, ViewOpsData *vod)
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 RNA_int_set(PointerRNA *ptr, const char *name, int value)
bool ED_view3d_camera_lock_sync(const Depsgraph *depsgraph, View3D *v3d, RegionView3D *rv3d)
bool ED_view3d_camera_lock_undo_push(const char *str, const View3D *v3d, const RegionView3D *rv3d, bContext *C)
int RNA_int_get(PointerRNA *ptr, const char *name)
void ED_view3d_persp_switch_from_camera(const Depsgraph *depsgraph, View3D *v3d, RegionView3D *rv3d, eRegionView3D_Persp persp)
void ED_region_tag_redraw(ARegion *region)
static bool viewdolly_offset_lock_check(bContext *C, wmOperator *op)
bool view3d_zoom_or_dolly_or_rotation_poll(bContext *C)
static void view_dolly_to_vector_3d(ARegion *region, const float orig_ofs[3], const float dvec[3], float dfac)
void BKE_report(ReportList *reports, eReportType type, const char *message)
static wmOperatorStatus viewdolly_invoke(bContext *C, wmOperator *op, const wmEvent *event)
wmWindowManager * CTX_wm_manager(const bContext *C)
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C, bool rna_write_check=false)
void VIEW3D_OT_dolly(wmOperatorType *ot)
MINLINE void negate_v3(float r[3])
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
RegionView3D * CTX_wm_region_view3d(const bContext *C)
wmOperatorStatus WM_operator_name_call(bContext *C, const char *opstring, wm::OpCallContext context, PointerRNA *properties, const wmEvent *event)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
@ VIEWOPS_FLAG_ZOOM_TO_MOUSE
@ VIEWOPS_FLAG_DEPTH_NAVIGATE
MINLINE float normalize_v3_v3(float r[3], const float a[3])
@ VIEWROT_MODAL_SWITCH_MOVE
@ VIEWROT_MODAL_SWITCH_ROTATE
MINLINE float normalize_v3(float n[3])
bool ED_view3d_offset_lock_check(const View3D *v3d, const RegionView3D *rv3d)
wmEventHandler_Op * WM_event_add_modal_handler(bContext *C, wmOperator *op)
static void viewdolly_apply(ViewOpsData *vod, const int xy[2], const bool zoom_invert)
void view3d_navigate_cancel_fn(bContext *C, wmOperator *op)
void ED_view3d_smooth_view_force_finish(bContext *C, View3D *v3d, ARegion *region)
void WM_modalkeymap_assign(wmKeyMap *km, const char *opname)
@ V3D_OP_PROP_USE_MOUSE_INIT
wmKeyMap * WM_modalkeymap_ensure(wmKeyConfig *keyconf, const char *idname, const EnumPropertyItem *items)
@ OPTYPE_DEPENDS_ON_CURSOR
ARegion * CTX_wm_region(const bContext *C)
void view3d_boxview_sync(ScrArea *area, ARegion *region)
View3D * CTX_wm_view3d(const bContext *C)
bScreen * ED_screen_animation_playing(const wmWindowManager *wm)
static wmOperatorStatus viewdolly_exec(bContext *C, wmOperator *op)
eRegionView3D_Persp persp
ListBaseT< SpaceLink > spacedata
struct blender::ViewOpsData::@013213354235237006300365026145043140112021271057 prev
struct blender::ViewOpsData::@130157306301264131203124134151333300254160116071 init
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
void(*) cancel(bContext *C, wmOperator *op)
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) modal(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports
struct wmOperatorType * type