Blender V5.3
BKE_pointcache.h File Reference
#include "BLI_function_ref.hh"
#include "DNA_boid_types.h"
#include "DNA_listBase.h"
#include "DNA_particle_types.h"
#include "DNA_pointcache_types.h"
#include <stdio.h>

Go to the source code of this file.

Classes

struct  blender::PTCacheData
struct  blender::PTCacheFile
struct  blender::PTCacheID
struct  blender::PTCacheBaker
struct  blender::PTCacheEditKey
struct  blender::PTCacheEditPoint
struct  blender::PTCacheUndo
struct  blender::PTCacheEdit

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define PTCACHE_CLEAR_ALL   0
#define PTCACHE_CLEAR_FRAME   1
#define PTCACHE_CLEAR_BEFORE   2
#define PTCACHE_CLEAR_AFTER   3
#define PTCACHE_RESET_DEPSGRAPH   0
#define PTCACHE_RESET_BAKED   1
#define PTCACHE_RESET_OUTDATED   2
#define PTCACHE_EXT   ".bphys"
#define PTCACHE_PATH   "blendcache_"
#define PTCACHE_FILE_READ   0
#define PTCACHE_FILE_WRITE   1
#define PTCACHE_FILE_UPDATE   2
#define PTCACHE_TYPE_SOFTBODY   0
#define PTCACHE_TYPE_PARTICLES   1
#define PTCACHE_TYPE_CLOTH   2
#define PTCACHE_TYPE_SMOKE_DOMAIN   3
#define PTCACHE_TYPE_SMOKE_HIGHRES   4
#define PTCACHE_TYPE_DYNAMICPAINT   5
#define PTCACHE_TYPE_RIGIDBODY   6
#define PTCACHE_TYPEFLAG_COMPRESS   (1 << 16)
#define PTCACHE_TYPEFLAG_EXTRADATA   (1 << 17)
#define PTCACHE_TYPEFLAG_TYPEMASK   0x0000FFFF
#define PTCACHE_TYPEFLAG_FLAGMASK   0xFFFF0000
#define PTCACHE_READ_EXACT   1
#define PTCACHE_READ_INTERPOLATED   2
#define PTCACHE_READ_OLD   3
#define PTCACHE_VEL_PER_SEC   1
#define PEK_SELECT   1
#define PEK_TAG   2
#define PEK_HIDE   4
#define PEK_USE_WCO   8
#define PEP_TAG   1
#define PEP_EDIT_RECALC   2
#define PEP_TRANSFORM   4
#define PEP_HIDE   8

Typedefs

using blender::PointCacheIdFn = FunctionRef<bool(PTCacheID &pid, ModifierData *md)>

Enumerations

enum  { blender::PTCACHE_FILE_PTCACHE = 0 }
enum  { blender::PT_CACHE_EDIT_UPDATE_PARTICLE_FROM_EVAL = (1 << 0) }

Functions

void blender::BKE_ptcache_make_particle_key (struct ParticleKey *key, int index, void **data, float time)
void blender::BKE_ptcache_id_from_softbody (PTCacheID *pid, struct Object *ob, struct SoftBody *sb)
void blender::BKE_ptcache_id_from_particles (PTCacheID *pid, struct Object *ob, struct ParticleSystem *psys)
void blender::BKE_ptcache_id_from_cloth (PTCacheID *pid, struct Object *ob, struct ClothModifierData *clmd)
void blender::BKE_ptcache_id_from_smoke (PTCacheID *pid, struct Object *ob, struct FluidModifierData *fmd)
void blender::BKE_ptcache_id_from_dynamicpaint (PTCacheID *pid, struct Object *ob, struct DynamicPaintSurface *surface)
void blender::BKE_ptcache_id_from_rigidbody (PTCacheID *pid, struct Object *ob, struct RigidBodyWorld *rbw)
PTCacheID blender::BKE_ptcache_id_find (struct Object *ob, struct Scene *scene, struct PointCache *cache)
void blender::BKE_ptcache_ids_from_object (ListBaseT< PTCacheID > *lb, struct Object *ob, struct Scene *scene, int duplis)
void blender::BKE_ptcache_foreach_object_cache (struct Object &ob, struct Scene &scene, bool duplis, PointCacheIdFn fn)
bool blender::BKE_ptcache_object_has (struct Scene *scene, struct Object *ob, int duplis)
void blender::BKE_ptcache_id_clear (PTCacheID *pid, int mode, unsigned int cfra)
bool blender::BKE_ptcache_id_exist (PTCacheID *pid, int cfra)
int blender::BKE_ptcache_id_reset (struct Scene *scene, PTCacheID *pid, int mode)
void blender::BKE_ptcache_id_time (PTCacheID *pid, struct Scene *scene, float cfra, int *startframe, int *endframe, float *timescale)
int blender::BKE_ptcache_object_reset (struct Scene *scene, struct Object *ob, int mode)
void blender::BKE_ptcache_update_info (PTCacheID *pid)
int blender::BKE_ptcache_path (PTCacheID *pid, char *dirname)
int blender::BKE_ptcache_data_size (int data_type)
int blender::BKE_ptcache_mem_index_find (struct PTCacheMem *pm, unsigned int index)
void blender::BKE_ptcache_mem_pointers_init (struct PTCacheMem *pm, void *cur[BPHYS_TOT_DATA])
void blender::BKE_ptcache_mem_pointers_incr (void *cur[BPHYS_TOT_DATA])
int blender::BKE_ptcache_mem_pointers_seek (int point_index, struct PTCacheMem *pm, void *cur[BPHYS_TOT_DATA])
int blender::BKE_ptcache_read (PTCacheID *pid, float cfra, bool no_extrapolate_old)
int blender::BKE_ptcache_write (PTCacheID *pid, unsigned int cfra)
struct PointCache * blender::BKE_ptcache_add (ListBaseT< PointCache > *ptcaches)
void blender::BKE_ptcache_free_mem (ListBaseT< PTCacheMem > *mem_cache)
void blender::BKE_ptcache_free (struct PointCache *cache)
void blender::BKE_ptcache_free_list (ListBaseT< PointCache > *ptcaches)
struct PointCache * blender::BKE_ptcache_copy_list (ListBaseT< PointCache > *ptcaches_new, const ListBaseT< PointCache > *ptcaches_old, int flag)
void blender::BKE_ptcache_quick_cache_all (struct Main *bmain, struct Scene *scene, struct ViewLayer *view_layer)
void blender::BKE_ptcache_bake (struct PTCacheBaker *baker)
void blender::BKE_ptcache_disk_to_mem (struct PTCacheID *pid)
void blender::BKE_ptcache_mem_to_disk (struct PTCacheID *pid)
void blender::BKE_ptcache_toggle_disk_cache (struct PTCacheID *pid)
void blender::BKE_ptcache_disk_cache_rename (struct PTCacheID *pid, const char *name_src, const char *name_dst)
void blender::BKE_ptcache_load_external (struct PTCacheID *pid)
void blender::BKE_ptcache_validate (struct PointCache *cache, int framenr)
void blender::BKE_ptcache_invalidate (struct PointCache *cache)
void blender::BKE_ptcache_blend_write (struct BlendWriter *writer, ListBaseT< PointCache > *ptcaches)
void blender::BKE_ptcache_blend_read_data (struct BlendDataReader *reader, ListBaseT< PointCache > *ptcaches, struct PointCache **ocache, int force_disk)

Macro Definition Documentation

◆ PEK_HIDE

#define PEK_HIDE   4

◆ PEK_SELECT

◆ PEK_TAG

◆ PEK_USE_WCO

◆ PEP_EDIT_RECALC

◆ PEP_HIDE

◆ PEP_TAG

◆ PEP_TRANSFORM

#define PEP_TRANSFORM   4

◆ PTCACHE_CLEAR_AFTER

◆ PTCACHE_CLEAR_ALL

◆ PTCACHE_CLEAR_BEFORE

#define PTCACHE_CLEAR_BEFORE   2

Definition at line 26 of file BKE_pointcache.h.

Referenced by blender::BKE_ptcache_id_clear().

◆ PTCACHE_CLEAR_FRAME

◆ PTCACHE_EXT

#define PTCACHE_EXT   ".bphys"

Definition at line 36 of file BKE_pointcache.h.

Referenced by blender::ptcache_file_extension().

◆ PTCACHE_FILE_READ

◆ PTCACHE_FILE_UPDATE

#define PTCACHE_FILE_UPDATE   2

Definition at line 42 of file BKE_pointcache.h.

Referenced by blender::ptcache_file_open().

◆ PTCACHE_FILE_WRITE

#define PTCACHE_FILE_WRITE   1

◆ PTCACHE_PATH

#define PTCACHE_PATH   "blendcache_"

Definition at line 37 of file BKE_pointcache.h.

Referenced by blender::BKE_ptcache_path().

◆ PTCACHE_READ_EXACT

#define PTCACHE_READ_EXACT   1

◆ PTCACHE_READ_INTERPOLATED

#define PTCACHE_READ_INTERPOLATED   2

◆ PTCACHE_READ_OLD

#define PTCACHE_READ_OLD   3

◆ PTCACHE_RESET_BAKED

#define PTCACHE_RESET_BAKED   1

Definition at line 31 of file BKE_pointcache.h.

Referenced by blender::BKE_ptcache_id_reset().

◆ PTCACHE_RESET_DEPSGRAPH

#define PTCACHE_RESET_DEPSGRAPH   0

◆ PTCACHE_RESET_OUTDATED

◆ PTCACHE_TYPE_CLOTH

◆ PTCACHE_TYPE_DYNAMICPAINT

◆ PTCACHE_TYPE_PARTICLES

◆ PTCACHE_TYPE_RIGIDBODY

◆ PTCACHE_TYPE_SMOKE_DOMAIN

◆ PTCACHE_TYPE_SMOKE_HIGHRES

◆ PTCACHE_TYPE_SOFTBODY

◆ PTCACHE_TYPEFLAG_COMPRESS

#define PTCACHE_TYPEFLAG_COMPRESS   (1 << 16)

◆ PTCACHE_TYPEFLAG_EXTRADATA

#define PTCACHE_TYPEFLAG_EXTRADATA   (1 << 17)

◆ PTCACHE_TYPEFLAG_FLAGMASK

#define PTCACHE_TYPEFLAG_FLAGMASK   0xFFFF0000

Definition at line 58 of file BKE_pointcache.h.

Referenced by blender::ptcache_file_header_begin_read().

◆ PTCACHE_TYPEFLAG_TYPEMASK

#define PTCACHE_TYPEFLAG_TYPEMASK   0x0000FFFF

Definition at line 57 of file BKE_pointcache.h.

Referenced by blender::ptcache_file_header_begin_read().

◆ PTCACHE_VEL_PER_SEC

#define PTCACHE_VEL_PER_SEC   1