Blender  V3.3
DNA_cachefile_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2016 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #include "DNA_ID.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 struct GSet;
17 
18 /* CacheFile::type */
19 typedef enum {
24 
25 /* CacheFile::flag */
26 enum {
27  CACHEFILE_DS_EXPAND = (1 << 0),
28  CACHEFILE_UNUSED_0 = (1 << 1),
29 };
30 
31 #if 0 /* UNUSED */
32 /* CacheFile::draw_flag */
33 enum {
34  CACHEFILE_KEYFRAME_DRAWN = (1 << 0),
35 };
36 #endif
37 
38 /* Representation of an object's path inside the archive.
39  * Note that this is not a file path. */
40 typedef struct CacheObjectPath {
42 
43  char path[4096];
45 
46 /* CacheFileLayer::flag */
47 enum { CACHEFILE_LAYER_HIDDEN = (1 << 0) };
48 
49 typedef struct CacheFileLayer {
51 
53  char filepath[1024];
54  int flag;
55  int _pad;
57 
58 /* CacheFile::velocity_unit
59  * Determines what temporal unit is used to interpret velocity vectors for motion blur effects. */
60 enum {
63 };
64 
65 typedef struct CacheFile {
66  ID id;
67  struct AnimData *adt;
68 
71 
73 
75  char filepath[1024];
76 
79  char up_axis;
81 
82  float scale;
84  float frame;
86  float frame_offset;
87 
88  char _pad[4];
89 
91  short flag;
92 
93  /* eCacheFileType enum. */
94  char type;
95 
101 
102  char _pad1[3];
103 
106 
109 
112 
113  char _pad2[3];
114 
116  /* Name of the velocity property in the archive. */
117  char velocity_name[64];
118 
119  /* Runtime */
121  char handle_filepath[1024];
124 
125 #ifdef __cplusplus
126 }
127 #endif
struct GSet GSet
Definition: BLI_ghash.h:340
ID and Library types, which are fundamental for sdna.
@ CACHEFILE_UNUSED_0
@ CACHEFILE_DS_EXPAND
@ CACHEFILE_LAYER_HIDDEN
struct CacheFile CacheFile
eCacheFileType
@ CACHE_FILE_TYPE_INVALID
@ CACHEFILE_TYPE_ALEMBIC
@ CACHEFILE_TYPE_USD
@ CACHEFILE_VELOCITY_UNIT_SECOND
@ CACHEFILE_VELOCITY_UNIT_FRAME
struct CacheFileLayer CacheFileLayer
struct CacheObjectPath CacheObjectPath
struct CacheFileLayer * prev
struct CacheFileLayer * next
struct CacheArchiveHandle * handle
struct AnimData * adt
ListBase object_paths
char handle_filepath[1024]
struct GSet * handle_readers
char use_render_procedural
char filepath[1024]
char velocity_name[64]
struct CacheObjectPath * next
struct CacheObjectPath * prev
Definition: DNA_ID.h:368