Blender V5.3
DNA_cachefile_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2016 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_ID.h"
12
13#include "BLI_enum_flags.hh"
14#include "BLI_set.hh"
15
16namespace blender {
17
18/* CacheFile::type */
24
25/* CacheFile::flag */
26enum eCacheFile_Flag : short {
29};
31
32#if 0 /* UNUSED */
33/* CacheFile::draw_flag */
34enum eCacheFile_DrawFlag : short {
35 CACHEFILE_KEYFRAME_DRAWN = (1 << 0),
36};
37#endif
38
39/* CacheFileLayer::flag */
42};
44
45/* CacheFile::velocity_unit
46 * Determines what temporal unit is used to interpret velocity vectors for motion blur effects. */
51
52/* Representation of an object's path inside the archive.
53 * Note that this is not a file path. */
55 struct CacheObjectPath *next = nullptr, *prev = nullptr;
56
57 char path[/*PATH_MAX*/ 4096] = "";
58};
59
61 struct CacheFileLayer *next = nullptr, *prev = nullptr;
62
63 char filepath[/*FILE_MAX*/ 1024] = "";
65 int _pad = {};
66};
67
68struct CacheReader;
70
71struct CacheFile {
72#ifdef __cplusplus
74 static constexpr ID_Type id_type = ID_CF;
75#endif
76
78 struct AnimData *adt = nullptr;
79
81 ListBaseT<CacheObjectPath> object_paths = {nullptr, nullptr};
82
83 ListBaseT<CacheFileLayer> layers = {nullptr, nullptr};
84
85 char filepath[/*FILE_MAX*/ 1024] = "";
86
87 char is_sequence = false;
88 char forward_axis = 0;
89 char up_axis = 0;
90 char override_frame = false;
91
92 float scale = 1.0f;
94 float frame = 0.0f;
96 float frame_offset = 0;
97
100
102
103 char _pad1[1] = {};
104
107
108 char _pad2[3] = {};
109
111 /* Name of the velocity property in the archive. */
112 char velocity_name[64] = "";
113
114 char _pad3[4] = {};
115
116 /* Runtime */
117 struct CacheArchiveHandle *handle = nullptr;
118 char handle_filepath[/*FILE_MAX*/ 1024] = "";
120};
121
122} // namespace blender
#define ENUM_OPERATORS(_enum_type)
ID and Library types, which are fundamental for SDNA.
BMesh Iterators.
Set< CacheReader ** > CacheFileHandleReaderSet
@ CACHEFILE_VELOCITY_UNIT_SECOND
@ CACHEFILE_VELOCITY_UNIT_FRAME
struct CacheFileLayer * prev
eCacheFileLayer_Flag flag
struct CacheFileLayer * next
struct AnimData * adt
CacheFileHandleReaderSet * handle_readers
struct CacheArchiveHandle * handle
ListBaseT< CacheObjectPath > object_paths
ListBaseT< CacheFileLayer > layers
eCacheFile_VelocityUnit velocity_unit
struct CacheObjectPath * prev
struct CacheObjectPath * next