Blender  V3.3
view3d_navigate_dolly.c File Reference
#include "BLI_math.h"
#include "BKE_context.h"
#include "BKE_report.h"
#include "DEG_depsgraph.h"
#include "WM_api.h"
#include "RNA_access.h"
#include "ED_screen.h"
#include "view3d_intern.h"
#include "view3d_navigate.h"

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)
 
static void viewdolly_cancel (bContext *C, wmOperator *op)
 
void VIEW3D_OT_dolly (wmOperatorType *ot)
 

Function Documentation

◆ VIEW3D_OT_dolly()

void VIEW3D_OT_dolly ( wmOperatorType ot)

◆ 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 94 of file view3d_navigate_dolly.c.

References madd_v3_v3v3fl(), RegionView3D::ofs, and ARegion::regiondata.

Referenced by viewdolly_apply(), and viewdolly_exec().

◆ viewdolly_apply()

static void viewdolly_apply ( ViewOpsData vod,
const int  xy[2],
const bool  zoom_invert 
)
static

◆ viewdolly_cancel()

static void viewdolly_cancel ( bContext C,
wmOperator op 
)
static

Definition at line 317 of file view3d_navigate_dolly.c.

References C, wmOperator::customdata, NULL, and viewops_data_free().

Referenced by VIEW3D_OT_dolly().

◆ viewdolly_exec()

static int viewdolly_exec ( bContext C,
wmOperator op 
)
static

◆ viewdolly_invoke()

static int viewdolly_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ viewdolly_modal()

static int viewdolly_modal ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ viewdolly_modal_keymap()

void viewdolly_modal_keymap ( wmKeyConfig keyconf)

◆ viewdolly_offset_lock_check()

static bool viewdolly_offset_lock_check ( bContext C,
wmOperator op 
)
static