Blender V4.5
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
13struct GSet;
14
15/* CacheFile::type */
21
22/* CacheFile::flag */
23enum {
26};
27
28#if 0 /* UNUSED */
29/* CacheFile::draw_flag */
30enum {
31 CACHEFILE_KEYFRAME_DRAWN = (1 << 0),
32};
33#endif
34
35/* Representation of an object's path inside the archive.
36 * Note that this is not a file path. */
37typedef struct CacheObjectPath {
39
40 char path[4096];
42
43/* CacheFileLayer::flag */
44enum { CACHEFILE_LAYER_HIDDEN = (1 << 0) };
45
46typedef struct CacheFileLayer {
48
49 char filepath[/*FILE_MAX*/ 1024];
50 int flag;
51 int _pad;
53
54/* CacheFile::velocity_unit
55 * Determines what temporal unit is used to interpret velocity vectors for motion blur effects. */
56enum {
59};
60
61typedef struct CacheFile {
62#ifdef __cplusplus
64 static constexpr ID_Type id_type = ID_CF;
65#endif
66
68 struct AnimData *adt;
69
72
74
75 char filepath[/*FILE_MAX*/ 1024];
76
79 char up_axis;
81
82 float scale;
84 float frame;
87
88 char _pad[4];
89
91 short flag;
92
93 /* eCacheFileType enum. */
94 char type;
95
102
103 char _pad1[3];
104
107
110
113
114 char _pad2[3];
115
117 /* Name of the velocity property in the archive. */
119
120 /* Runtime */
122 char handle_filepath[/*FILE_MAX*/ 1024];
struct GSet GSet
Definition BLI_ghash.h:337
ID and Library types, which are fundamental for SDNA.
ID_Type
@ ID_CF
@ CACHEFILE_LAYER_HIDDEN
@ CACHEFILE_VELOCITY_UNIT_SECOND
@ CACHEFILE_VELOCITY_UNIT_FRAME
@ CACHE_FILE_TYPE_INVALID
@ CACHEFILE_TYPE_ALEMBIC
@ CACHEFILE_TYPE_USD
@ CACHEFILE_UNUSED_0
@ CACHEFILE_DS_EXPAND
struct CacheFileLayer * prev
struct CacheFileLayer * next
struct CacheArchiveHandle * handle
struct AnimData * adt
ListBase object_paths
char handle_filepath[1024]
struct GSet * handle_readers
char filepath[1024]
char velocity_name[64]
struct CacheObjectPath * next
struct CacheObjectPath * prev
Definition DNA_ID.h:404