Blender V4.5
ViewOpsData::[struct].init Struct Reference

Public Attributes

float ofs [3]
float ofs_lock [2]
float camdx
float camdy
float camzoom
float dist
float quat [4]
char persp
char view
char view_axis_roll
char persp_with_auto_persp_applied
blender::int2 event_xy
blender::int2 event_xy_offset
int event_type
float zfac
float trackvec [3]
float mousevec [3]
Dialdial

Detailed Description

Viewport state on initialization, don't change afterwards.

Definition at line 122 of file view3d_navigate.hh.

Member Data Documentation

◆ camdx

◆ camdy

◆ camzoom

◆ dial

Used for roll

◆ dist

◆ event_type

wmEvent.type that triggered the operator.

◆ event_xy

blender::int2 ViewOpsData::[struct].init event_xy

The ones below are unrelated to the state of the 3D view. wmEvent.xy.

◆ event_xy_offset

blender::int2 ViewOpsData::[struct].init event_xy_offset

◆ mousevec

Dolly only.

◆ ofs

These variables reflect the same in RegionView3D.

◆ ofs_lock

◆ persp

◆ persp_with_auto_persp_applied

char ViewOpsData::[struct].init persp_with_auto_persp_applied

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

◆ quat

◆ trackvec

Trackball rotation only.

◆ view

◆ view_axis_roll

char ViewOpsData::[struct].init view_axis_roll

◆ zfac

Initial distance to 'ofs'.


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