Blender V5.3
blender::View3DCameraControl Struct Reference

Public Attributes

Scene * ctx_scene
View3D * ctx_v3d
RegionView3D * ctx_rv3d
float view_mat_prev [4][4]
bool use_parent_root
Object * root_parent
float dist_backup
float ofs_backup [3]
float rot_backup [4]
eRegionView3D_Persp persp_backup
bool is_ortho_cam
void * obtfm

Detailed Description

Definition at line 46 of file view3d_camera_control.cc.

Member Data Documentation

◆ ctx_rv3d

◆ ctx_scene

Scene* blender::View3DCameraControl::ctx_scene

◆ ctx_v3d

◆ dist_backup

float blender::View3DCameraControl::dist_backup

Backup the views distance since we use a zero dist for fly mode.

Definition at line 74 of file view3d_camera_control.cc.

Referenced by blender::ED_view3d_cameracontrol_acquire(), and blender::ED_view3d_cameracontrol_release().

◆ is_ortho_cam

bool blender::View3DCameraControl::is_ortho_cam

True when flying an orthographic camera in perspective view, which was originally in orthographic view. This could be detected available data but better be explicit.

Definition at line 91 of file view3d_camera_control.cc.

Referenced by blender::ED_view3d_cameracontrol_acquire(), and blender::ED_view3d_cameracontrol_release().

◆ obtfm

void* blender::View3DCameraControl::obtfm

Backup the objects transform.

Definition at line 94 of file view3d_camera_control.cc.

Referenced by blender::ED_view3d_cameracontrol_acquire(), and blender::ED_view3d_cameracontrol_release().

◆ ofs_backup

float blender::View3DCameraControl::ofs_backup[3]

Backup the views offset in case the user cancels flying in non camera mode.

Definition at line 76 of file view3d_camera_control.cc.

Referenced by blender::ED_view3d_cameracontrol_acquire(), and blender::ED_view3d_cameracontrol_release().

◆ persp_backup

eRegionView3D_Persp blender::View3DCameraControl::persp_backup

Remember if we're orthographic or not, only used for restoring the view if it was a orthographic view.

Definition at line 84 of file view3d_camera_control.cc.

Referenced by blender::ED_view3d_cameracontrol_acquire(), and blender::ED_view3d_cameracontrol_release().

◆ root_parent

Object* blender::View3DCameraControl::root_parent

◆ rot_backup

float blender::View3DCameraControl::rot_backup[4]

Backup the views quaternion in case the user cancels flying in non camera mode.

Definition at line 79 of file view3d_camera_control.cc.

Referenced by blender::ED_view3d_cameracontrol_acquire(), and blender::ED_view3d_cameracontrol_release().

◆ use_parent_root

bool blender::View3DCameraControl::use_parent_root

Definition at line 63 of file view3d_camera_control.cc.

Referenced by blender::ED_view3d_cameracontrol_acquire().

◆ view_mat_prev

float blender::View3DCameraControl::view_mat_prev[4][4]

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