Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_view3d_types.h
| Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | typedef struct RegionView3D { | ||||
| /* animated smooth view */ | /* animated smooth view */ | ||||
| struct SmoothView3DStore *sms; | struct SmoothView3DStore *sms; | ||||
| struct wmTimer *smooth_timer; | struct wmTimer *smooth_timer; | ||||
| /* transform widget matrix */ | /* transform widget matrix */ | ||||
| float twmat[4][4]; | float twmat[4][4]; | ||||
| /* transform widget matrix for the multi orientation */ | |||||
| float twmattrans[4][4]; | |||||
| float twmatrots[4][4]; | |||||
| float twmatscale[4][4]; | |||||
| float viewquat[4]; /* view rotation, must be kept normalized */ | float viewquat[4]; /* view rotation, must be kept normalized */ | ||||
| float dist; /* distance from 'ofs' along -viewinv[2] vector, where result is negative as is 'ofs' */ | float dist; /* distance from 'ofs' along -viewinv[2] vector, where result is negative as is 'ofs' */ | ||||
| float camdx, camdy; /* camera view offsets, 1.0 = viewplane moves entire width/height */ | float camdx, camdy; /* camera view offsets, 1.0 = viewplane moves entire width/height */ | ||||
| float pixsize; /* runtime only */ | float pixsize; /* runtime only */ | ||||
| float ofs[3]; /* view center & orbit pivot, negative of worldspace location, | float ofs[3]; /* view center & orbit pivot, negative of worldspace location, | ||||
| * also matches -viewinv[3][0:3] in ortho mode.*/ | * also matches -viewinv[3][0:3] in ortho mode.*/ | ||||
| float camzoom; /* viewport zoom on the camera frame, see BKE_screen_view3d_zoom_to_fac */ | float camzoom; /* viewport zoom on the camera frame, see BKE_screen_view3d_zoom_to_fac */ | ||||
| ▲ Show 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | typedef struct View3D { | ||||
| float stereo3d_convergence_alpha; | float stereo3d_convergence_alpha; | ||||
| /* Previous viewport draw type. | /* Previous viewport draw type. | ||||
| * Runtime-only, set in the rendered viewport toggle operator. | * Runtime-only, set in the rendered viewport toggle operator. | ||||
| */ | */ | ||||
| short prev_drawtype; | short prev_drawtype; | ||||
| short pad1; | short pad1; | ||||
| float pad2; | float pad2; | ||||
| /* Flags for setting up multi manipulators */ | |||||
| char twtrans, twrots, twscale; | |||||
| char pad5[5]; | |||||
| } View3D; | } View3D; | ||||
| /* View3D->stereo_flag (short) */ | /* View3D->stereo_flag (short) */ | ||||
| #define V3D_S3D_DISPCAMERAS (1 << 0) | #define V3D_S3D_DISPCAMERAS (1 << 0) | ||||
| #define V3D_S3D_DISPPLANE (1 << 1) | #define V3D_S3D_DISPPLANE (1 << 1) | ||||
| #define V3D_S3D_DISPVOLUME (1 << 2) | #define V3D_S3D_DISPVOLUME (1 << 2) | ||||
| ▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | |||||
| #define V3D_MANIP_SCALE 4 | #define V3D_MANIP_SCALE 4 | ||||
| /* View3d->twmode */ | /* View3d->twmode */ | ||||
| #define V3D_MANIP_GLOBAL 0 | #define V3D_MANIP_GLOBAL 0 | ||||
| #define V3D_MANIP_LOCAL 1 | #define V3D_MANIP_LOCAL 1 | ||||
| #define V3D_MANIP_NORMAL 2 | #define V3D_MANIP_NORMAL 2 | ||||
| #define V3D_MANIP_VIEW 3 | #define V3D_MANIP_VIEW 3 | ||||
| #define V3D_MANIP_GIMBAL 4 | #define V3D_MANIP_GIMBAL 4 | ||||
| #define V3D_MANIP_CUSTOM 5 /* anything of value 5 or higher is custom */ | #define V3D_MANIP_NONE 5 | ||||
| #define V3D_MANIP_MULTI_TRANSF 6 | |||||
| #define V3D_MANIP_CUSTOM 7 /* anything of value 5 or higher is custom */ | |||||
| /* View3d->twflag */ | /* View3d->twflag */ | ||||
| /* USE = user setting, DRAW = based on selection */ | /* USE = user setting, DRAW = based on selection */ | ||||
| #define V3D_USE_MANIPULATOR 1 | #define V3D_USE_MANIPULATOR 1 | ||||
| #define V3D_DRAW_MANIPULATOR 2 | #define V3D_DRAW_MANIPULATOR 2 | ||||
| /* #define V3D_CALC_MANIPULATOR 4 */ /*UNUSED*/ | /* #define V3D_CALC_MANIPULATOR 4 */ /*UNUSED*/ | ||||
| /* BGPic->flag */ | /* BGPic->flag */ | ||||
| Show All 32 Lines | |||||