Blender
V3.3
|
#include <view3d_navigate.h>
Public Attributes | |
struct Main * | bmain |
struct Scene * | scene |
struct ScrArea * | area |
struct ARegion * | region |
struct View3D * | v3d |
struct RegionView3D * | rv3d |
struct Depsgraph * | depsgraph |
struct wmTimer * | timer |
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 |
Generic View Operator Custom-Data
Definition at line 68 of file view3d_navigate.h.
struct ScrArea* ViewOpsData::area |
Definition at line 72 of file view3d_navigate.h.
Referenced by viewdolly_apply(), viewdolly_exec(), viewmove_apply(), viewops_data_create(), viewroll_apply(), viewzoom_apply_3d(), and viewzoom_exec().
bool ViewOpsData::axis_snap |
Definition at line 128 of file view3d_navigate.h.
Referenced by viewrotate_apply(), and viewrotate_modal().
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().
float ViewOpsData::camzoom |
Definition at line 84 of file view3d_navigate.h.
Referenced by viewops_data_create(), and viewzoom_apply_camera().
struct { ... } ViewOpsData::curr |
Current state.
Referenced by viewops_data_create(), viewrotate_apply(), and viewrotate_apply_snap().
struct Depsgraph* ViewOpsData::depsgraph |
Definition at line 76 of file view3d_navigate.h.
Referenced by viewdolly_apply(), viewmove_apply(), viewops_data_create(), viewroll_apply(), viewroll_modal(), viewrotate_apply(), viewzoom_apply_3d(), and viewzoom_apply_camera().
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().
float ViewOpsData::dist |
Definition at line 83 of file view3d_navigate.h.
Referenced by viewops_data_create(), and viewzoom_apply_3d().
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().
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().
int ViewOpsData::event_xy[2] |
Definition at line 87 of file view3d_navigate.h.
Referenced by viewdolly_apply(), viewdolly_invoke(), viewmove_apply(), viewops_data_create(), viewpan_invoke(), viewroll_invoke(), viewrotate_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), and viewzoom_invoke().
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 |
Viewport state on initialization, don't change afterwards.
Referenced by viewdolly_apply(), viewdolly_exec(), viewdolly_invoke(), viewdolly_modal(), viewmove_apply(), viewmove_modal(), viewops_data_create(), viewops_data_free(), viewroll_apply(), viewroll_invoke(), viewroll_modal(), viewrotate_apply(), viewrotate_apply_dyn_ofs(), viewrotate_apply_snap(), viewrotate_modal(), viewzoom_apply_3d(), viewzoom_apply_camera(), viewzoom_invoke(), and viewzoom_modal().
float ViewOpsData::mousevec[3] |
Dolly only.
Definition at line 100 of file view3d_navigate.h.
Referenced by viewdolly_apply(), viewdolly_exec(), viewdolly_invoke(), viewops_data_create(), viewroll_apply(), and viewroll_invoke().
float ViewOpsData::ofs[3] |
Definition at line 93 of file view3d_navigate.h.
Referenced by viewdolly_apply(), viewops_data_create(), viewroll_apply(), and viewrotate_apply_dyn_ofs().
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 |
Previous state (previous modal event handled).
Referenced by viewdolly_invoke(), viewmove_apply(), viewops_data_create(), viewpan_invoke(), viewroll_invoke(), viewrotate_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), and viewzoom_invoke().
float ViewOpsData::quat[4] |
Definition at line 85 of file view3d_navigate.h.
Referenced by viewops_data_create(), viewroll_apply(), viewroll_modal(), viewrotate_apply(), and viewrotate_apply_dyn_ofs().
struct ARegion* ViewOpsData::region |
Definition at line 73 of file view3d_navigate.h.
Referenced by viewdolly_apply(), viewdolly_exec(), viewdolly_invoke(), viewmove_apply(), viewmove_invoke(), viewops_data_create(), viewops_data_free(), viewroll_apply(), viewroll_exec(), viewroll_invoke(), viewrotate_apply(), viewrotate_invoke(), viewzoom_apply_3d(), viewzoom_apply_camera(), viewzoom_exec(), and viewzoom_invoke().
float ViewOpsData::reverse |
Definition at line 127 of file view3d_navigate.h.
Referenced by viewops_data_create(), and viewrotate_apply().
struct RegionView3D* ViewOpsData::rv3d |
Definition at line 75 of file view3d_navigate.h.
Referenced by viewdolly_apply(), viewdolly_invoke(), viewdolly_modal(), viewmove_apply(), viewmove_modal(), viewops_data_create(), viewops_data_free(), viewpan_invoke(), viewroll_apply(), viewroll_invoke(), viewroll_modal(), viewrotate_apply(), viewrotate_apply_dyn_ofs(), viewrotate_apply_snap(), viewrotate_modal(), viewzoom_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), viewzoom_invoke(), and viewzoom_modal().
struct Scene* ViewOpsData::scene |
Definition at line 71 of file view3d_navigate.h.
Referenced by viewops_data_create(), and viewzoom_apply_camera().
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().
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().
float ViewOpsData::trackvec[3] |
Trackball rotation only.
Definition at line 98 of file view3d_navigate.h.
Referenced by viewops_data_create(), and viewrotate_apply().
bool ViewOpsData::use_dyn_ofs |
Definition at line 132 of file view3d_navigate.h.
Referenced by viewops_data_create(), viewroll_apply(), and viewrotate_apply_dyn_ofs().
struct View3D* ViewOpsData::v3d |
Definition at line 74 of file view3d_navigate.h.
Referenced by viewdolly_apply(), viewdolly_invoke(), viewdolly_modal(), viewmove_apply(), viewmove_invoke(), viewmove_modal(), viewops_data_create(), viewpan_invoke(), viewroll_apply(), viewroll_exec(), viewroll_invoke(), viewroll_modal(), viewrotate_apply(), viewrotate_invoke(), viewrotate_modal(), viewzoom_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), viewzoom_invoke(), and viewzoom_modal().
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().
float ViewOpsData::zfac |
Initial distance to 'ofs'.
Definition at line 95 of file view3d_navigate.h.
Referenced by viewmove_apply(), and viewops_data_create().