Blender V4.3
view3d_navigate_view_dolly.cc File Reference
#include "BKE_context.hh"
#include "BKE_report.hh"
#include "BLI_math_vector.h"
#include "WM_api.hh"
#include "RNA_access.hh"
#include "ED_screen.hh"
#include "view3d_intern.hh"
#include "view3d_navigate.hh"

Go to the source code of this file.

Functions

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 bool 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)
 
void VIEW3D_OT_dolly (wmOperatorType *ot)
 

Variables

ViewOpsType ViewOpsType_dolly
 

Function Documentation

◆ VIEW3D_OT_dolly()

◆ view_dolly_to_vector_3d()

static void view_dolly_to_vector_3d ( ARegion * region,
const float orig_ofs[3],
const float dvec[3],
float dfac )
static

Definition at line 68 of file view3d_navigate_view_dolly.cc.

References madd_v3_v3v3fl(), and RegionView3D::ofs.

Referenced by viewdolly_apply(), and viewdolly_exec().

◆ viewdolly_apply()

◆ viewdolly_exec()

◆ viewdolly_invoke()

◆ viewdolly_modal()

◆ viewdolly_modal_keymap()

◆ viewdolly_offset_lock_check()

static bool viewdolly_offset_lock_check ( bContext * C,
wmOperator * op )
static

Variable Documentation

◆ ViewOpsType_dolly

ViewOpsType ViewOpsType_dolly
Initial value:
= {
"VIEW3D_OT_dolly",
nullptr,
nullptr,
nullptr,
}
@ VIEWOPS_FLAG_DEPTH_NAVIGATE
@ VIEWOPS_FLAG_ZOOM_TO_MOUSE

Definition at line 332 of file view3d_navigate_view_dolly.cc.

Referenced by VIEW3D_OT_dolly(), and viewdolly_invoke().