|
Blender V4.5
|
Go to the source code of this file.
Functions | |
| void * | BKE_cachefile_add (Main *bmain, const char *name) |
| void | BKE_cachefile_reload (Depsgraph *depsgraph, CacheFile *cache_file) |
| void | BKE_cachefile_eval (Main *bmain, Depsgraph *depsgraph, CacheFile *cache_file) |
| bool | BKE_cachefile_filepath_get (const Main *bmain, const Depsgraph *depsgraph, const CacheFile *cache_file, char r_filepath[1024]) |
| double | BKE_cachefile_time_offset (const CacheFile *cache_file, double time, double fps) |
| double | BKE_cachefile_frame_offset (const CacheFile *cache_file, double time) |
| void | BKE_cachefile_reader_open (CacheFile *cache_file, CacheReader **reader, Object *object, const char *object_path) |
| void | BKE_cachefile_reader_free (CacheFile *cache_file, CacheReader **reader) |
| bool | BKE_cache_file_uses_render_procedural (const CacheFile *cache_file, Scene *scene) |
| CacheFileLayer * | BKE_cachefile_add_layer (CacheFile *cache_file, const char filepath[1024]) |
| CacheFileLayer * | BKE_cachefile_get_active_layer (CacheFile *cache_file) |
| void | BKE_cachefile_remove_layer (CacheFile *cache_file, CacheFileLayer *layer) |
Determine whether the CacheFile should use a render engine procedural. If so, data is not read from the file and bounding boxes are used to represent the objects in the Scene. Render engines will receive the bounding box as a placeholder but can instead load the data directly if they support it.
Definition at line 415 of file cachefile.cc.
References CACHEFILE_TYPE_ALEMBIC, RenderData::engine, Scene::r, RE_engine_supports_alembic_procedural(), RE_engines_find(), CacheFile::type, and CacheFile::use_render_procedural.
Referenced by depends_on_time(), modify_geometry_set(), modify_mesh(), and transformcache_evaluate().
| void * BKE_cachefile_add | ( | Main * | bmain, |
| const char * | name ) |
Definition at line 308 of file cachefile.cc.
References BKE_id_new().
Referenced by import_file(), and blender::io::usd::import_startjob().
| CacheFileLayer * BKE_cachefile_add_layer | ( | CacheFile * | cache_file, |
| const char | filepath[1024] ) |
Add a layer to the cache_file. Return NULL if the filepath is already that of an existing layer or if the number of layers exceeds the maximum allowed layer count.
Definition at line 428 of file cachefile.cc.
References CacheFile::active_layer, BLI_addtail(), BLI_listbase_count(), CacheFileLayer::filepath, CacheFile::layers, LISTBASE_FOREACH, MEM_callocN(), STREQ, and STRNCPY().
Referenced by cachefile_layer_add_exec().
Definition at line 326 of file cachefile.cc.
References ABC_create_handle(), BKE_cachefile_filepath_get(), BLI_assert, BLI_duplicatelist(), BLI_freelistN(), BLI_path_extension_check_glob(), cachefile_handle_free(), CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, DEG_get_original(), DEG_is_active(), depsgraph, FILE_MAX, ListBase::first, CacheFile::handle, CacheFile::handle_filepath, CacheFile::id, ID_TAG_COPIED_ON_EVAL, CacheFile::layers, CacheFile::object_paths, STREQ, STRNCPY(), ID::tag, CacheFile::type, and blender::io::usd::USD_create_handle().
Referenced by blender::deg::DepsgraphNodeBuilder::build_cachefile().
| bool BKE_cachefile_filepath_get | ( | const Main * | bmain, |
| const Depsgraph * | depsgraph, | ||
| const CacheFile * | cache_file, | ||
| char | r_filepath[1024] ) |
References depsgraph.
| double BKE_cachefile_frame_offset | ( | const CacheFile * | cache_file, |
| double | time ) |
Definition at line 408 of file cachefile.cc.
References CacheFile::frame, CacheFile::frame_offset, CacheFile::is_sequence, and CacheFile::override_frame.
Referenced by modify_geometry_set(), and modify_mesh().
| CacheFileLayer * BKE_cachefile_get_active_layer | ( | CacheFile * | cache_file | ) |
Definition at line 448 of file cachefile.cc.
References CacheFile::active_layer, BLI_findlink(), and CacheFile::layers.
Referenced by cachefile_layer_move_exec(), and cachefile_layer_remove_exec().
| void BKE_cachefile_reader_free | ( | CacheFile * | cache_file, |
| CacheReader ** | reader ) |
Definition at line 207 of file cachefile.cc.
References ABC_CacheReader_free(), BLI_assert, BLI_gset_remove(), CACHE_FILE_TYPE_INVALID, cache_mutex, CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, CacheFile::handle_readers, CacheFile::id, ID_TAG_COPIED_ON_EVAL, lock, ID::tag, CacheFile::type, UNUSED_VARS, and blender::io::usd::USD_CacheReader_free().
Referenced by free_data(), and transformcache_free().
| void BKE_cachefile_reader_open | ( | CacheFile * | cache_file, |
| CacheReader ** | reader, | ||
| Object * | object, | ||
| const char * | object_path ) |
Definition at line 157 of file cachefile.cc.
References BLI_assert, BLI_gset_ptr_new(), BLI_gset_reinsert(), BLI_gset_remove(), CACHE_FILE_TYPE_INVALID, cache_mutex, CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, CacheReader_open_alembic_object(), blender::io::usd::CacheReader_open_usd_object(), CacheFile::handle, CacheFile::handle_readers, CacheFile::id, ID_TAG_COPIED_ON_EVAL, CacheFile::is_sequence, lock, ID::tag, CacheFile::type, and UNUSED_VARS.
Referenced by modify_geometry_set(), modify_mesh(), and transformcache_evaluate().
| void BKE_cachefile_reload | ( | Depsgraph * | depsgraph, |
| CacheFile * | cache_file ) |
Definition at line 315 of file cachefile.cc.
References cachefile_handle_free(), DEG_get_evaluated(), DEG_id_tag_update(), depsgraph, CacheFile::id, and ID_RECALC_SYNC_TO_EVAL.
Referenced by reload_cachefile().
| void BKE_cachefile_remove_layer | ( | CacheFile * | cache_file, |
| CacheFileLayer * | layer ) |
Definition at line 454 of file cachefile.cc.
References CacheFile::active_layer, BLI_remlink(), CacheFile::layers, and MEM_freeN().
Referenced by cachefile_layer_remove_exec().
| double BKE_cachefile_time_offset | ( | const CacheFile * | cache_file, |
| double | time, | ||
| double | fps ) |
Definition at line 401 of file cachefile.cc.
References CacheFile::frame, CacheFile::frame_offset, CacheFile::is_sequence, and CacheFile::override_frame.
Referenced by BKE_cachefile_filepath_get(), modify_geometry_set(), modify_mesh(), and transformcache_evaluate().