Blender V5.3
view3d_navigate_smoothview.cc File Reference
#include "DNA_camera_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BKE_context.hh"
#include "DEG_depsgraph_query.hh"
#include "WM_api.hh"
#include "ED_screen.hh"
#include "view3d_intern.hh"
#include "view3d_navigate.hh"

Go to the source code of this file.

Classes

struct  blender::SmoothView3DState
struct  blender::SmoothView3DStore

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static void blender::view3d_smoothview_apply_with_interp (bContext *C, View3D *v3d, RegionView3D *rv3d, const bool use_autokey, const float factor)
Smooth View Undo Handling

When the camera is locked to the viewport smooth-view operations may need to perform an undo push.

In this case the smooth-view camera transformation is temporarily completed, undo is pushed then the change is rewound, and smooth-view completes from its timer. In the case smooth-view executed the change immediately - an undo push is called.

NOTE(@ideasman42): While this is not ideal it's necessary as making the undo-push once smooth-view is complete because smooth-view is non-blocking and it's possible other operations are executed once smooth-view has started.

void blender::ED_view3d_smooth_view_undo_begin (bContext *C, const ScrArea *area)
void blender::ED_view3d_smooth_view_undo_end (bContext *C, const ScrArea *area, const char *undo_str, bool undo_grouped)
Smooth View Operator & Utilities

Use for view transitions to have smooth (animated) transitions.

Note
This operator is one of the "timer refresh" ones, similar to animation playback.
static void blender::view3d_smooth_view_state_backup (SmoothView3DState *sms_state, const View3D *v3d, const RegionView3D *rv3d)
static void blender::view3d_smooth_view_state_restore (const SmoothView3DState *sms_state, View3D *v3d, RegionView3D *rv3d)
void blender::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)
void blender::ED_view3d_smooth_view (bContext *C, View3D *v3d, ARegion *region, int smooth_viewtx, const V3D_SmoothParams *sview)
static void blender::view3d_smoothview_apply_and_finish_ex (wmWindowManager *wm, wmWindow *win, View3D *v3d, RegionView3D *rv3d, bContext *C_for_camera_lock)
static void blender::view3d_smoothview_apply_and_finish (bContext *C, View3D *v3d, RegionView3D *rv3d)
static void blender::view3d_smoothview_apply_from_timer (bContext *C, View3D *v3d, ARegion *region)
static wmOperatorStatus blender::view3d_smoothview_invoke (bContext *C, wmOperator *, const wmEvent *event)
static void blender::view3d_smooth_view_force_finish_ex (const Depsgraph *depsgraph, wmWindowManager *wm, wmWindow *win, const Scene *scene, View3D *v3d, ARegion *region, bContext *C_for_camera_lock)
void blender::ED_view3d_smooth_view_force_finish (bContext *C, View3D *v3d, ARegion *region)
void blender::ED_view3d_smooth_view_force_finish_no_camera_lock (const Depsgraph *depsgraph, wmWindowManager *wm, wmWindow *win, const Scene *scene, View3D *v3d, ARegion *region)
void blender::VIEW3D_OT_smoothview (wmOperatorType *ot)
void blender::view3d_smooth_free (RegionView3D *rv3d)