Blender  V3.3
Public Attributes | List of all members
ViewOpsData Struct Reference

#include <view3d_navigate.h>

Public Attributes

struct Mainbmain
 
struct Scenescene
 
struct ScrAreaarea
 
struct ARegionregion
 
struct View3Dv3d
 
struct RegionView3Drv3d
 
struct Depsgraphdepsgraph
 
struct 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
 
   struct Dial *   dial
 
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

Generic View Operator Custom-Data

Definition at line 68 of file view3d_navigate.h.

Member Data Documentation

◆ area

struct ScrArea* ViewOpsData::area

◆ axis_snap

bool ViewOpsData::axis_snap

Definition at line 128 of file view3d_navigate.h.

Referenced by viewrotate_apply(), and viewrotate_modal().

◆ bmain

struct Main* ViewOpsData::bmain

Context pointers (assigned by viewops_data_create).

Definition at line 70 of file view3d_navigate.h.

Referenced by viewops_data_create().

◆ camzoom

float ViewOpsData::camzoom

Definition at line 84 of file view3d_navigate.h.

Referenced by viewops_data_create(), and viewzoom_apply_camera().

◆ 

struct { ... } ViewOpsData::curr

◆ depsgraph

struct Depsgraph* ViewOpsData::depsgraph

◆ dial

struct Dial* ViewOpsData::dial

Used for roll

Definition at line 109 of file view3d_navigate.h.

Referenced by viewops_data_free(), viewroll_apply(), and viewroll_invoke().

◆ dist

float ViewOpsData::dist

Definition at line 83 of file view3d_navigate.h.

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 131 of file view3d_navigate.h.

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 92 of file view3d_navigate.h.

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 90 of file view3d_navigate.h.

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 106 of file view3d_navigate.h.

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

◆ 

struct { ... } ViewOpsData::prev

◆ quat

float ViewOpsData::quat[4]

◆ region

struct ARegion* ViewOpsData::region

◆ reverse

float ViewOpsData::reverse

Definition at line 127 of file view3d_navigate.h.

Referenced by viewops_data_create(), and viewrotate_apply().

◆ rv3d

struct RegionView3D* ViewOpsData::rv3d

◆ scene

struct Scene* ViewOpsData::scene

Definition at line 71 of file view3d_navigate.h.

Referenced by viewops_data_create(), and viewzoom_apply_camera().

◆ time

double ViewOpsData::time

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

Definition at line 116 of file view3d_navigate.h.

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

◆ timer

struct wmTimer* ViewOpsData::timer

Needed for continuous zoom.

Definition at line 79 of file view3d_navigate.h.

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

◆ trackvec

float ViewOpsData::trackvec[3]

Trackball rotation only.

Definition at line 98 of file view3d_navigate.h.

Referenced by viewops_data_create(), and viewrotate_apply().

◆ use_dyn_ofs

bool ViewOpsData::use_dyn_ofs

◆ v3d

struct 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 124 of file view3d_navigate.h.

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

◆ zfac

float ViewOpsData::zfac

Initial distance to 'ofs'.

Definition at line 95 of file view3d_navigate.h.

Referenced by viewmove_apply(), and viewops_data_create().


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