Blender V5.3
view3d_navigate.cc File Reference
#include "DNA_curve_types.h"
#include "BLI_dial_2d.hh"
#include "BLI_listbase.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector.hh"
#include "BLI_rect.hh"
#include "BKE_context.hh"
#include "BKE_layer.hh"
#include "BKE_object.hh"
#include "BKE_paint.hh"
#include "BKE_vfont.hh"
#include "DEG_depsgraph_query.hh"
#include "ED_screen.hh"
#include "ED_transform.hh"
#include "WM_api.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "view3d_intern.hh"
#include "view3d_navigate.hh"

Go to the source code of this file.

Classes

struct  blender::ViewOpsData_Utility

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static eViewOpsFlag blender::viewops_flag_from_prefs ()
Navigation Utilities
static const ViewOpsType * blender::view3d_navigation_type_from_idname (const char *idname)
ViewOpsData * blender::ED_view3d_navigation_init (bContext *C, const wmKeyMapItem *kmi_merge)
bool blender::ED_view3d_navigation_do (bContext *C, ViewOpsData *vod, const wmEvent *event, const float depth_loc_override[3])
void blender::ED_view3d_navigation_free (bContext *C, ViewOpsData *vod)
ViewOpsData definition
static eViewOpsFlag blender::navigate_pivot_get (bContext *C, Depsgraph *depsgraph, ARegion *region, View3D *v3d, const wmEvent *event, eViewOpsFlag viewops_flag, const float dyn_ofs_override[3], float r_pivot[3])
Generic Operator Callback Utils
static bool blender::view3d_navigation_poll_impl (bContext *C, const eRegionView3D_ViewLock viewlock)
static eV3D_OpEvent blender::view3d_navigate_event (ViewOpsData *vod, const wmEvent *event)
static wmOperatorStatus blender::view3d_navigation_invoke_generic (bContext *C, ViewOpsData *vod, const wmEvent *event, PointerRNA *ptr, const ViewOpsType *nav_type, const float dyn_ofs_override[3])
wmOperatorStatus blender::view3d_navigate_invoke_impl (bContext *C, wmOperator *op, const wmEvent *event, const ViewOpsType *nav_type)
Generic Callbacks
bool blender::view3d_location_poll (bContext *C)
bool blender::view3d_rotation_poll (bContext *C)
bool blender::view3d_zoom_or_dolly_poll (bContext *C)
bool blender::view3d_zoom_or_dolly_or_rotation_poll (bContext *C)
wmOperatorStatus blender::view3d_navigate_modal_fn (bContext *C, wmOperator *op, const wmEvent *event)
void blender::view3d_navigate_cancel_fn (bContext *C, wmOperator *op)
Generic View Operator Properties
void blender::view3d_operator_properties_common (wmOperatorType *ot, const enum eV3D_OpPropFlag flag)
Generic View Operator Custom-Data
void blender::calctrackballvec (const rcti *rect, const int event_xy[2], float r_dir[3])
void blender::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])
static void blender::view3d_orbit_apply_dyn_ofs_ortho_correction (float ofs[3], const float viewquat_old[4], const float viewquat_new[4], const float dyn_ofs[3])
void blender::viewrotate_apply_dyn_ofs (ViewOpsData *vod, const float viewquat_new[4])
bool blender::view3d_orbit_calc_center (bContext *C, float r_dyn_ofs[3])
ViewOpsData * blender::viewops_data_create (bContext *C, const wmEvent *event, const ViewOpsType *nav_type, const bool use_cursor_init)
void blender::viewops_data_free (bContext *C, ViewOpsData *vod)
Generic View Operator Utilities
void blender::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)
void blender::viewmove_apply (ViewOpsData *vod, int x, int y)

Generic View Horizon Utilities

static const float blender::view3d_horizon_eps = 1e-5f
static float blender::view3d_horizon_angle_calc (const float quat[4], const float horizon_plane[3], const bool horizon_plane_no_flip, const float axis_fallback[3], const float angle_target, const bool use_ease_out)
static void blender::view3d_horizon_angle_apply (float quat[4], const float angle)
float blender::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 blender::view3d_horizon_correct_quat_ease_out (float quat[4], const float horizon_plane[3], const bool horizon_plane_no_flip, const float factor)