Blender V4.3
DNA_camera_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "DNA_ID.h"
12#include "DNA_defs.h"
13#include "DNA_gpu_types.h"
14#include "DNA_image_types.h"
15#include "DNA_movieclip_types.h"
16
17struct AnimData;
18struct Ipo;
19struct Object;
20
21/* ------------------------------------------- */
22/* Stereo Settings */
23typedef struct CameraStereoSettings {
27 short pivot;
28 short flag;
29 char _pad[2];
30 /* Cut-off angle at which interocular distance start to fade down. */
32 /* Cut-off angle at which interocular distance stops to fade down. */
35
36/* Background Picture */
37typedef struct CameraBGImage {
39
40 struct Image *ima;
42 struct MovieClip *clip;
44 float offset[2], scale, rotation;
45 float alpha;
46 short flag;
47 short source;
49
63
64typedef struct Camera_Runtime {
65 /* For draw manager. */
66 float drw_corners[2][4][2];
67 float drw_tria[2][2];
68 float drw_depth[2];
69 float drw_focusmat[4][4];
70 float drw_normalmat[4][4];
72
73typedef struct Camera {
76 struct AnimData *adt;
77
79 char type;
81 char dtx;
82 short flag;
87 float shiftx, shifty;
88 float dof_distance DNA_DEPRECATED;
89
92 char _pad[2];
93
94 /* Fish-eye properties. */
104
105 /* Central cylindrical range properties. */
111 float _pad2;
112
114 struct Ipo *ipo DNA_DEPRECATED;
115
116 struct Object *dof_ob DNA_DEPRECATED;
119
120 /* CameraBGImage reference images */
122
123 /* Stereo settings */
124 struct CameraStereoSettings stereo;
125
129
130/* **************** CAMERA ********************* */
131
132/* type */
133enum {
137};
138
139/* panorama_type */
140enum {
148};
149
150/* dtx */
151enum {
152 CAM_DTX_CENTER = (1 << 0),
154 CAM_DTX_THIRDS = (1 << 2),
155 CAM_DTX_GOLDEN = (1 << 3),
160};
161
162/* flag */
163enum {
164 CAM_SHOWLIMITS = (1 << 0),
165 CAM_SHOWMIST = (1 << 1),
168 CAM_SHOWNAME = (1 << 4),
169 CAM_ANGLETOGGLE = (1 << 5),
170 CAM_DS_EXPAND = (1 << 6),
172 CAM_PANORAMA = (1 << 7), /* deprecated */
173#endif
174 CAM_SHOWSENSOR = (1 << 8),
176 CAM_SHOW_BG_IMAGE = (1 << 10),
177};
178
179/* Sensor fit */
180enum {
184};
185
186#define DEFAULT_SENSOR_WIDTH 36.0f
187#define DEFAULT_SENSOR_HEIGHT 24.0f
188
189/* stereo->convergence_mode */
190enum {
194};
195
196/* stereo->pivot */
197enum {
201};
202
203/* stereo->flag */
204enum {
207};
208
209/* CameraBGImage->flag */
210/* may want to use 1 for select ? */
211enum {
216
217 /* Camera framing options */
222
223 /* Axis flip options */
226
227 /* That background image has been inserted in local override (i.e. it can be fully edited!). */
229};
230
231/* CameraBGImage->source */
232/* may want to use 1 for select? */
233enum {
236};
237
238/* CameraDOFSettings->flag */
239enum {
240 CAM_DOF_ENABLED = (1 << 0),
241};
ID and Library types, which are fundamental for SDNA.
enum eAnimEdit_AutoSnap DNA_DEPRECATED
@ CAM_S3D_PARALLEL
@ CAM_S3D_OFFAXIS
@ CAM_S3D_TOE
@ CAMERA_SENSOR_FIT_HOR
@ CAMERA_SENSOR_FIT_AUTO
@ CAMERA_SENSOR_FIT_VERT
struct Camera_Runtime Camera_Runtime
@ CAM_DTX_GOLDEN_TRI_A
@ CAM_DTX_CENTER
@ CAM_DTX_HARMONY_TRI_A
@ CAM_DTX_GOLDEN
@ CAM_DTX_GOLDEN_TRI_B
@ CAM_DTX_HARMONY_TRI_B
@ CAM_DTX_CENTER_DIAG
@ CAM_DTX_THIRDS
@ CAM_SHOWLIMITS
@ CAM_DS_EXPAND
@ CAM_SHOW_BG_IMAGE
@ CAM_SHOWPASSEPARTOUT
@ CAM_SHOW_SAFE_MARGINS
@ CAM_SHOW_SAFE_CENTER
@ CAM_SHOWMIST
@ CAM_ANGLETOGGLE
@ CAM_SHOWNAME
@ CAM_PANORAMA
@ CAM_SHOWSENSOR
struct Camera Camera
struct CameraStereoSettings CameraStereoSettings
@ CAM_BGIMG_FLAG_FLIP_X
@ CAM_BGIMG_FLAG_FLIP_Y
@ CAM_BGIMG_FLAG_CAMERA_CROP
@ CAM_BGIMG_FLAG_CAMERACLIP
@ CAM_BGIMG_FLAG_CAMERA_ASPECT
@ CAM_BGIMG_FLAG_DISABLED
@ CAM_BGIMG_FLAG_FOREGROUND
@ CAM_BGIMG_FLAG_OVERRIDE_LIBRARY_LOCAL
@ CAM_BGIMG_FLAG_EXPANDED
@ CAM_S3D_PIVOT_CENTER
@ CAM_S3D_PIVOT_RIGHT
@ CAM_S3D_PIVOT_LEFT
@ CAM_S3D_SPHERICAL
@ CAM_S3D_POLE_MERGE
struct CameraBGImage CameraBGImage
@ CAM_BGIMG_SOURCE_IMAGE
@ CAM_BGIMG_SOURCE_MOVIE
@ CAM_PERSP
@ CAM_PANO
@ CAM_ORTHO
struct CameraDOFSettings CameraDOFSettings
@ CAM_PANORAMA_CENTRAL_CYLINDRICAL
@ CAM_PANORAMA_FISHEYE_EQUIDISTANT
@ CAM_PANORAMA_MIRRORBALL
@ CAM_PANORAMA_EQUIANGULAR_CUBEMAP_FACE
@ CAM_PANORAMA_FISHEYE_EQUISOLID
@ CAM_PANORAMA_EQUIRECTANGULAR
@ CAM_PANORAMA_FISHEYE_LENS_POLYNOMIAL
@ CAM_DOF_ENABLED
#define DNA_DEPRECATED_ALLOW
struct CameraBGImage * next
struct CameraBGImage * prev
struct MovieClip * clip
struct ImageUser iuser
struct MovieClipUser cuser
struct Image * ima
struct Object * focus_object
float drw_focusmat[4][4]
float drw_corners[2][4][2]
float drw_normalmat[4][4]
float drw_tria[2][2]
float clip_end
char panorama_type
char sensor_fit
float sensor_y
float latitude_max
float central_cylindrical_range_v_min
Camera_Runtime runtime
struct Object *dof_ob DNA_DEPRECATED
float fisheye_polynomial_k3
float longitude_max
struct ListBase bg_images
float central_cylindrical_range_u_min
float fisheye_polynomial_k1
float central_cylindrical_range_u_max
float latitude_min
float fisheye_polynomial_k2
float central_cylindrical_radius
float fisheye_fov
float passepartalpha
float fisheye_polynomial_k0
struct AnimData * adt
float fisheye_polynomial_k4
float dof_distance DNA_DEPRECATED
float sensor_x
float clip_start
float fisheye_lens
char _pad[2]
float central_cylindrical_range_v_max
float drawsize
float longitude_min
struct CameraDOFSettings dof
struct Ipo *ipo DNA_DEPRECATED
float ortho_scale
Definition DNA_ID.h:413