Blender V5.3
DNA_volume_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_enum_flags.hh"
12
13#include "DNA_ID.h"
14
15namespace blender {
16
17struct PackedFile;
18
19namespace draw {
20struct VolumeBatchCache;
21}
22
23namespace bke {
24struct VolumeRuntime;
25}
26
28enum eVolume_Flag : int {
29 VO_DS_EXPAND = (1 << 0),
30};
32
33
40
48
54
61
67
74
80
88
99
106
107struct Volume {
108#ifdef __cplusplus
110 static constexpr ID_Type id_type = ID_VO;
111#endif
112
114 struct AnimData *adt = nullptr; /* animation data (must be immediately after id) */
115
116 /* File */
117 char filepath[/*FILE_MAX*/ 1024] = "";
118 struct PackedFile *packedfile = nullptr;
119
120 /* Sequence */
121 char is_sequence = 0;
123 char _pad1[2] = {};
124 int frame_start = 1;
127
128 /* Flag */
130
131 /* Grids */
132 int active_grid = 0;
133
134 /* Material */
135 struct Material **mat = nullptr;
136 short totcol = 0;
137 short _pad2[3] = {};
138
139 /* Render & Display Settings */
142
143 /* Velocity field name. */
144 char velocity_grid[64] = "";
145
146 char _pad3[3] = {};
147
148 /* Unit of time the velocity vectors are expressed in.
149 * This uses the same enumeration values as #CacheFile.velocity_unit. */
151
152 /* Factor for velocity vector for artistic control. */
153 float velocity_scale = 1.0f;
154
155 /* Draw Cache */
157
158 /* Runtime Data */
160};
161
162/* Only one material supported currently. */
163#define VOLUME_MATERIAL_NR 1
164
165} // namespace blender
#define ENUM_OPERATORS(_enum_type)
ID and Library types, which are fundamental for SDNA.
BMesh Iterators.
@ VOLUME_AXIS_SLICE_SINGLE
@ VOLUME_AXIS_SLICE_FULL
@ VOLUME_SEQUENCE_EXTEND
@ VOLUME_SEQUENCE_PING_PONG
@ VOLUME_SEQUENCE_REPEAT
@ VOLUME_PRECISION_FULL
@ VOLUME_PRECISION_VARIABLE
@ VOLUME_PRECISION_HALF
@ VOLUME_WIREFRAME_POINTS
@ VOLUME_WIREFRAME_BOXES
@ VOLUME_WIREFRAME_BOUNDS
@ VOLUME_WIREFRAME_NONE
@ VOLUME_WIREFRAME_COARSE
@ VOLUME_WIREFRAME_FINE
@ VOLUME_DISPLAY_INTERP_LINEAR
@ VOLUME_DISPLAY_INTERP_CUBIC
@ VOLUME_DISPLAY_INTERP_CLOSEST
@ VOLUME_SLICE_AXIS_AUTO
VolumeDisplayInterpMethod interpolation_method
AxisAlignedSlicingMethod axis_slice_method
VolumeWireframeDetail wireframe_detail
VolumeWireframeType wireframe_type
VolumeRenderPrecision precision
VolumeRenderSpace space
draw::VolumeBatchCache * batch_cache
VolumeSequenceMode sequence_mode
bke::VolumeRuntime * runtime
struct PackedFile * packedfile
VolumeRender render
struct Material ** mat
struct AnimData * adt
VolumeDisplay display