|
Blender V4.3
|
#include <BKE_idtype.hh>
Definition at line 124 of file BKE_idtype.hh.
| AssetTypeInfo* IDTypeInfo::asset_type_info |
Information and callbacks for assets, based on the type of asset.
Definition at line 169 of file BKE_idtype.hh.
Referenced by BKE_lib_id_clear_library_data(), blender::ed::asset::clear_id(), direct_link_id_common(), and blender::ed::asset::mark_id().
| IDTypeBlendReadAfterLiblinkFunction IDTypeInfo::blend_read_after_liblink |
Used to do some validation and/or complex processing on the ID after it has been fully read and its ID pointers have been updated to valid values (lib linking process).
Note that this is still called before the do_versions_after_linking versioning code.
Definition at line 234 of file BKE_idtype.hh.
Referenced by after_liblink_id_process().
| IDTypeBlendReadDataFunction IDTypeInfo::blend_read_data |
Update pointers for all structs directly owned by this data block.
Definition at line 226 of file BKE_idtype.hh.
Referenced by direct_link_id().
| IDTypeBlendReadUndoPreserve IDTypeInfo::blend_read_undo_preserve |
Allow an ID type to preserve some of its data across (memfile) undo steps.
IDTYPE_FLAGS_NO_MEMFILE_UNDO, since that flag allows more aggressive optimizations in readfile code for memfile undo. Definition at line 245 of file BKE_idtype.hh.
Referenced by lib_link_all().
| IDTypeBlendWriteFunction IDTypeInfo::blend_write |
Write all structs that should be saved in a .blend file.
Definition at line 221 of file BKE_idtype.hh.
Referenced by write_file_handle().
| IDTypeCopyDataFunction IDTypeInfo::copy_data |
Copy the given data-block's data from source to destination. May be NULL if mere memory-copy of the ID struct itself is enough.
Definition at line 182 of file BKE_idtype.hh.
Referenced by BKE_id_copy_in_lib().
| uint64_t IDTypeInfo::dependencies_id_types |
Known types of ID dependencies.
Used by BKE_library_id_can_use_filter_id, together with additional runtime heuristics, to generate a filter value containing only ID types that given ID could be using.
Definition at line 144 of file BKE_idtype.hh.
Referenced by BKE_library_id_can_use_filter_id(), and id_type_init().
| uint32_t IDTypeInfo::flags |
Generic info flags about that data-block type.
Definition at line 164 of file BKE_idtype.hh.
Referenced by BKE_id_copy_in_lib(), BKE_idtype_idcode_append_is_reusable(), BKE_idtype_idcode_is_linkable(), BKE_idtype_idcode_is_only_appendable(), BKE_lib_id_make_local(), id_type_can_have_animdata(), lib_query_unused_ids_tag_recurse(), read_libblock_undo_restore(), read_undo_reuse_noundo_local_ids(), and write_file_handle().
| IDTypeForeachCacheFunction IDTypeInfo::foreach_cache |
Iterator over all cache pointers of given ID.
Definition at line 204 of file BKE_idtype.hh.
Referenced by BKE_idtype_id_foreach_cache(), blo_cache_storage_init(), blo_cache_storage_old_bmain_clear(), and direct_link_id().
| IDTypeForeachIDFunction IDTypeInfo::foreach_id |
Called by BKE_library_foreach_ID_link() to apply a callback over all other ID usages (ID pointers) of given data-block.
Definition at line 199 of file BKE_idtype.hh.
Referenced by library_foreach_ID_link().
| IDTypeForeachPathFunction IDTypeInfo::foreach_path |
Iterator over all file paths of given ID.
Definition at line 209 of file BKE_idtype.hh.
Referenced by BKE_bpath_foreach_path_id().
| IDTypeFreeDataFunction IDTypeInfo::free_data |
Free the data of the data-block (NOT the ID itself). May be NULL if there is nothing to do.
Definition at line 187 of file BKE_idtype.hh.
Referenced by BKE_libblock_free_datablock(), blender::bke::tests::TEST(), and blender::bke::tests::TEST().
| short IDTypeInfo::id_code |
Unique identifier of this type, either as a short or an array of two chars, see DNA_ID_enums.h's ID_XX enums.
Definition at line 131 of file BKE_idtype.hh.
Referenced by BKE_idtype_idcode_from_name(), BKE_idtype_index_to_idcode(), get_type_info(), read_undo_reuse_noundo_local_ids(), and setup_app_data().
| uint64_t IDTypeInfo::id_filter |
Bit-flag matching id_code, used for filtering (e.g. in file browser), see DNA_ID.h's FILTER_ID_XX enums.
Definition at line 136 of file BKE_idtype.hh.
Referenced by BKE_idtype_index_to_idfilter().
| IDTypeInitDataFunction IDTypeInfo::init_data |
Initialize a new, empty calloc'ed data-block. May be NULL if there is nothing to do.
Definition at line 176 of file BKE_idtype.hh.
Referenced by BKE_libblock_init_empty(), blender::bke::tests::TEST(), and blender::bke::tests::TEST().
| IDTypeLibOverrideApplyPost IDTypeInfo::lib_override_apply_post |
Called after library override operations have been applied.
Definition at line 252 of file BKE_idtype.hh.
Referenced by RNA_struct_override_apply().
| int IDTypeInfo::main_listbase_index |
Define the position of this data-block type in the virtual list of all data in a Main that is returned by set_listbasepointers(). Very important, this has to be unique and below INDEX_ID_MAX, see DNA_ID.h.
Definition at line 151 of file BKE_idtype.hh.
Referenced by id_type_init().
| IDTypeMakeLocalFunction IDTypeInfo::make_local |
Make a linked data-block local. May be NULL if default behavior from BKE_lib_id_make_local_generic() is enough.
Definition at line 193 of file BKE_idtype.hh.
Referenced by BKE_lib_id_make_local().
| const char* IDTypeInfo::name |
The user visible name for this data-block, also used as default name for a new data-block.
Definition at line 157 of file BKE_idtype.hh.
Referenced by absolute_convert_foreach_path_cb(), blender::bke::asset_write_in_library(), BKE_idtype_get_info_from_idtype_index(), BKE_idtype_idcode_to_name(), BKE_libblock_get_alloc_info(), get_alloc_name(), id_buffer_init_for_id_type(), and relative_convert_foreach_path_cb().
| const char* IDTypeInfo::name_plural |
Plural version of the user-visible name.
Definition at line 159 of file BKE_idtype.hh.
Referenced by blender::bke::asset_root_path_for_save(), and BKE_idtype_idcode_to_name_plural().
| IDTypeEmbeddedOwnerPointerGetFunction IDTypeInfo::owner_pointer_get |
For embedded IDs, return the address of the pointer to their owner ID.
Definition at line 214 of file BKE_idtype.hh.
Referenced by BKE_id_owner_get(), and BKE_libblock_copy_in_lib().
| size_t IDTypeInfo::struct_size |
Memory size of a data-block of that type.
Definition at line 154 of file BKE_idtype.hh.
Referenced by BKE_libblock_get_alloc_info(), id_buffer_init_for_id_type(), id_buffer_init_from_id(), and id_swap().
| const char* IDTypeInfo::translation_context |
Translation context to use for UI messages related to that type of data-block.
Definition at line 161 of file BKE_idtype.hh.
Referenced by BKE_idtype_idcode_to_translation_context().