Blender  V2.93
Public Attributes | List of all members
ViewOpsData Struct Reference

Public Attributes

Mainbmain
 
Scenescene
 
ScrAreaarea
 
ARegionregion
 
View3Dv3d
 
RegionView3Drv3d
 
Depsgraphdepsgraph
 
wmTimertimer
 
struct {
   float   dist
 
   float   camzoom
 
   float   quat [4]
 
   int   event_xy [2]
 
   int   event_xy_offset [2]
 
   int   event_type
 
   float   ofs [3]
 
   float   zfac
 
   float   trackvec [3]
 
   float   mousevec [3]
 
   char   persp
 
init
 
struct {
   int   event_xy [2]
 
   double   time
 
prev
 
struct {
   float   viewquat [4]
 
curr
 
float reverse
 
bool axis_snap
 
float dyn_ofs [3]
 
bool use_dyn_ofs
 

Detailed Description

Definition at line 174 of file view3d_edit.c.

Member Data Documentation

◆ area

ScrArea* ViewOpsData::area

◆ axis_snap

bool ViewOpsData::axis_snap

Definition at line 231 of file view3d_edit.c.

Referenced by viewrotate_apply(), and viewrotate_modal().

◆ bmain

Main* ViewOpsData::bmain

Context pointers (assigned by viewops_data_alloc).

Definition at line 176 of file view3d_edit.c.

Referenced by viewops_data_alloc().

◆ camzoom

float ViewOpsData::camzoom

Definition at line 190 of file view3d_edit.c.

Referenced by viewops_data_create(), and viewzoom_apply_camera().

◆ 

struct { ... } ViewOpsData::curr

◆ depsgraph

Depsgraph* ViewOpsData::depsgraph

◆ dist

float ViewOpsData::dist

Definition at line 189 of file view3d_edit.c.

Referenced by viewops_data_create(), and viewzoom_apply_3d().

◆ dyn_ofs

float ViewOpsData::dyn_ofs[3]

Use for orbit selection and auto-dist.

Definition at line 234 of file view3d_edit.c.

Referenced by viewops_data_create(), viewroll_apply(), and viewrotate_apply_dyn_ofs().

◆ event_type

int ViewOpsData::event_type

wmEvent.type that triggered the operator.

Definition at line 198 of file view3d_edit.c.

Referenced by viewdolly_modal(), viewmove_modal(), viewops_data_create(), viewroll_modal(), viewrotate_modal(), and viewzoom_modal().

◆ event_xy

int ViewOpsData::event_xy[2]

◆ event_xy_offset

int ViewOpsData::event_xy_offset[2]

Offset to use when VIEWOPS_FLAG_USE_MOUSE_INIT is not set. so we can simulate pressing in the middle of the screen.

Definition at line 196 of file view3d_edit.c.

Referenced by viewops_data_create(), viewrotate_apply(), viewzoom_apply_3d(), and viewzoom_apply_camera().

◆ 

struct { ... } ViewOpsData::init

◆ mousevec

float ViewOpsData::mousevec[3]

◆ ofs

float ViewOpsData::ofs[3]

◆ persp

char ViewOpsData::persp

RegionView3D.persp set after auto-perspective is applied. If we want the value before running the operator, add a separate member.

Definition at line 212 of file view3d_edit.c.

Referenced by viewops_data_create(), viewrotate_apply_snap(), and viewrotate_modal().

◆ 

struct { ... } ViewOpsData::prev

◆ quat

float ViewOpsData::quat[4]

◆ region

ARegion* ViewOpsData::region

◆ reverse

float ViewOpsData::reverse

Definition at line 230 of file view3d_edit.c.

Referenced by viewops_data_create(), and viewrotate_apply().

◆ rv3d

RegionView3D* ViewOpsData::rv3d

◆ scene

Scene* ViewOpsData::scene

Definition at line 177 of file view3d_edit.c.

Referenced by viewops_data_alloc(), and viewzoom_apply_camera().

◆ time

double ViewOpsData::time

For operators that use time-steps (continuous zoom).

Definition at line 219 of file view3d_edit.c.

Referenced by viewzoom_apply_3d(), viewzoom_apply_camera(), and viewzoom_invoke().

◆ timer

wmTimer* ViewOpsData::timer

Needed for continuous zoom.

Definition at line 185 of file view3d_edit.c.

Referenced by viewops_data_free(), viewzoom_invoke(), and viewzoom_modal().

◆ trackvec

float ViewOpsData::trackvec[3]

Trackball rotation only.

Definition at line 204 of file view3d_edit.c.

Referenced by viewops_data_create(), and viewrotate_apply().

◆ use_dyn_ofs

bool ViewOpsData::use_dyn_ofs

Definition at line 235 of file view3d_edit.c.

Referenced by viewops_data_create(), viewroll_apply(), and viewrotate_apply_dyn_ofs().

◆ v3d

View3D* ViewOpsData::v3d

◆ viewquat

float ViewOpsData::viewquat[4]

Working copy of RegionView3D.viewquat, needed for rotation calculation so we can apply snap to the 3D Viewport while keeping the unsnapped rotation here to use when snap is disabled and for continued calculation.

Definition at line 227 of file view3d_edit.c.

Referenced by viewops_data_create(), viewrotate_apply(), and viewrotate_apply_snap().

◆ zfac

float ViewOpsData::zfac

Initial distance to 'ofs'.

Definition at line 201 of file view3d_edit.c.

Referenced by viewmove_apply(), and viewops_data_create().


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