Blender V4.5
ViewOpsData Struct Reference

#include <view3d_navigate.hh>

Inherited by ViewOpsData_Utility.

Classes

struct  [struct].init
struct  [struct].prev
struct  [struct].curr

Public Member Functions

ViewOpsData definition
void init_context (bContext *C)
void state_backup ()
void state_restore ()
void init_navigation (bContext *C, const wmEvent *event, const ViewOpsType *nav_type, const float dyn_ofs_override[3]=nullptr, const bool use_cursor_init=false)
void end_navigation (bContext *C)

Public Attributes

Scenescene
ScrAreaarea
ARegionregion
View3Dv3d
RegionView3Drv3d
Depsgraph * depsgraph
wmTimertimer
struct  init
struct  prev
struct  curr
const ViewOpsTypenav_type
eViewOpsFlag viewops_flag
float reverse
bool axis_snap
float dyn_ofs [3]
bool use_dyn_ofs
bool use_dyn_ofs_ortho_correction

Detailed Description

Generic View Operator Custom-Data

Definition at line 109 of file view3d_navigate.hh.

Member Function Documentation

◆ end_navigation()

◆ init_context()

◆ init_navigation()

◆ state_backup()

◆ state_restore()

Member Data Documentation

◆ area

◆ axis_snap

bool ViewOpsData::axis_snap

Definition at line 183 of file view3d_navigate.hh.

Referenced by view3d_navigate_event(), and viewrotate_apply().

◆ curr

◆ depsgraph

◆ dyn_ofs

float ViewOpsData::dyn_ofs[3]

Use for orbit selection and auto-dist.

Definition at line 186 of file view3d_navigate.hh.

Referenced by init_navigation(), vieworbit_exec(), viewroll_apply(), viewroll_exec(), and viewrotate_apply_dyn_ofs().

◆ init

◆ nav_type

const ViewOpsType* ViewOpsData::nav_type

◆ prev

◆ region

◆ reverse

float ViewOpsData::reverse

Definition at line 182 of file view3d_navigate.hh.

Referenced by init_navigation(), and viewrotate_apply().

◆ rv3d

◆ scene

Scene* ViewOpsData::scene

Context pointers (assigned by viewops_data_create).

Definition at line 111 of file view3d_navigate.hh.

Referenced by ED_view3d_navigation_do(), init_context(), viewzoom_apply_camera(), and viewzoom_invoke_impl().

◆ timer

wmTimer* ViewOpsData::timer

Needed for continuous zoom.

Definition at line 119 of file view3d_navigate.hh.

Referenced by end_navigation(), view3d_navigate_event(), and viewzoom_invoke_impl().

◆ use_dyn_ofs

bool ViewOpsData::use_dyn_ofs

◆ use_dyn_ofs_ortho_correction

bool ViewOpsData::use_dyn_ofs_ortho_correction

In orthographic views, a dynamic offset should not cause RegionView3D::ofs to end up at a location that has no relation to the content where ofs originated or to dyn_ofs. Failing to do so can cause the orthographic views ofs to be far away from the content to the point it gets clipped out of the view. See view3d_orbit_apply_dyn_ofs code-comments for an example, also see: #104385.

Definition at line 196 of file view3d_navigate.hh.

Referenced by init_navigation(), viewrotate_apply_dyn_ofs(), and viewrotate_invoke_impl().

◆ v3d

◆ viewops_flag

eViewOpsFlag ViewOpsData::viewops_flag

Definition at line 180 of file view3d_navigate.hh.

Referenced by init_navigation(), viewzoom_apply(), and viewzoom_invoke_impl().


The documentation for this struct was generated from the following files: