|
Blender V5.3
|
#include <BKE_idtype.hh>
Static Public Member Functions | |
| template<class T> | |
| static constexpr T | InvalidPointer () |
Definition at line 149 of file BKE_idtype.hh.
Utils to define invalid pointers for all data & callbacks below.
Definition at line 198 of file BKE_idtype.hh.
References T, and UINTPTR_MAX.
Referenced by blender::id_type_is_valid().
| AssetTypeInfo* blender::IDTypeInfo::asset_type_info = InvalidPointer<AssetTypeInfo *>() |
Information and callbacks for assets, based on the type of asset.
Definition at line 206 of file BKE_idtype.hh.
Referenced by blender::BKE_lib_id_clear_library_data(), blender::ed::asset::clear_id(), blender::direct_link_id_common(), blender::id_type_is_valid(), and blender::ed::asset::mark_id().
| IDTypeBlendReadAfterLiblinkFunction blender::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 285 of file BKE_idtype.hh.
Referenced by blender::after_liblink_id_process(), and blender::id_type_is_valid().
| IDTypeBlendReadDataFunction blender::IDTypeInfo::blend_read_data = InvalidPointer<IDTypeBlendReadDataFunction>() |
Update pointers for all structs directly owned by this data block.
Definition at line 277 of file BKE_idtype.hh.
Referenced by blender::direct_link_id(), and blender::id_type_is_valid().
| IDTypeBlendReadUndoPreserve blender::IDTypeInfo::blend_read_undo_preserve |
Allow an ID type to preserve some of its data across (memfile) undo steps.
Definition at line 297 of file BKE_idtype.hh.
Referenced by blender::id_type_is_valid(), and blender::lib_link_all().
| IDTypeBlendWriteFunction blender::IDTypeInfo::blend_write = InvalidPointer<IDTypeBlendWriteFunction>() |
Write all structs that should be saved in a .blend file.
Definition at line 272 of file BKE_idtype.hh.
Referenced by blender::id_type_is_valid(), and blender::write_id().
| IDTypeCopyDataFunction blender::IDTypeInfo::copy_data = InvalidPointer<IDTypeCopyDataFunction>() |
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 219 of file BKE_idtype.hh.
Referenced by blender::BKE_id_copy_in_lib(), and blender::id_type_is_valid().
| uint64_t blender::IDTypeInfo::dependencies_id_types = 0 |
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 169 of file BKE_idtype.hh.
Referenced by blender::BKE_library_id_can_use_filter_id(), and blender::id_type_init().
| uint32_t blender::IDTypeInfo::flags = 0 |
Generic info flags about that data-block type.
Definition at line 195 of file BKE_idtype.hh.
Referenced by blender::BKE_id_copy_in_lib(), blender::BKE_idtype_idcode_append_is_reusable(), blender::BKE_idtype_idcode_is_linkable(), blender::BKE_idtype_idcode_is_only_appendable(), blender::BKE_lib_id_make_local(), blender::gather_local_ids_to_write(), blender::id_is_enforced_used(), blender::id_swap(), blender::id_type_can_have_animdata(), blender::lib_query_unused_ids_direct_tag(), blender::lib_query_unused_ids_recursive_tag(), blender::ed::outliner::outliner_id_copy_tag_id(), blender::read_libblock_undo_restore(), blender::read_undo_libraries_cleanup_unused_ids(), blender::read_undo_move_libmain_data(), blender::read_undo_reuse_noundo_local_ids(), and blender::read_undo_tag_all_noundo_ids().
| IDTypeForeachAssetWeakReferenceFunction blender::IDTypeInfo::foreach_asset_weak_reference |
Iterator to edit all asset weak references of given ID.
Definition at line 258 of file BKE_idtype.hh.
Referenced by blender::BKE_asset_weak_reference_foreach_main(), and blender::id_type_is_valid().
| IDTypeForeachCacheFunction blender::IDTypeInfo::foreach_cache = InvalidPointer<IDTypeForeachCacheFunction>() |
Iterator over all cache pointers of given ID.
Definition at line 241 of file BKE_idtype.hh.
Referenced by blender::BKE_idtype_id_foreach_cache(), blender::blo_cache_storage_init(), blender::blo_cache_storage_old_bmain_clear(), blender::direct_link_id(), and blender::id_type_is_valid().
| IDTypeForeachIDFunction blender::IDTypeInfo::foreach_id = InvalidPointer<IDTypeForeachIDFunction>() |
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 236 of file BKE_idtype.hh.
Referenced by blender::id_type_is_valid(), and blender::library_foreach_ID_link().
| IDTypeForeachPathFunction blender::IDTypeInfo::foreach_path = InvalidPointer<IDTypeForeachPathFunction>() |
Iterator over all file paths of given ID.
Definition at line 246 of file BKE_idtype.hh.
Referenced by blender::BKE_bpath_foreach_path_id(), and blender::id_type_is_valid().
| IDTypeForeachColorFunction blender::IDTypeInfo::foreach_working_space_color |
Iterator to edit all scene linear RGB colors of given ID. Alpha should not be premultiplied in the RGB values.
Definition at line 252 of file BKE_idtype.hh.
Referenced by blender::id_type_is_valid(), and blender::IMB_colormanagement_working_space_convert().
| IDTypeFreeDataFunction blender::IDTypeInfo::free_data = InvalidPointer<IDTypeFreeDataFunction>() |
Free the data of the data-block (NOT the ID itself). May be NULL if there is nothing to do.
Definition at line 224 of file BKE_idtype.hh.
Referenced by blender::BKE_libblock_free_datablock(), and blender::id_type_is_valid().
| short blender::IDTypeInfo::id_code = ID_LINK_PLACEHOLDER |
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 156 of file BKE_idtype.hh.
Referenced by blender::BKE_idtype_get_info_from_idtype_index(), blender::BKE_idtype_idcode_from_name(), blender::BKE_idtype_idcode_from_name_case_insensitive(), blender::BKE_idtype_index_to_idcode(), blender::id_type_is_valid(), blender::read_undo_reuse_noundo_local_ids(), and blender::setup_app_data().
| uint64_t blender::IDTypeInfo::id_filter = 0 |
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 161 of file BKE_idtype.hh.
Referenced by blender::BKE_idtype_index_to_idfilter(), and blender::id_type_is_valid().
| IDTypeInitDataFunction blender::IDTypeInfo::init_data = InvalidPointer<IDTypeInitDataFunction>() |
Initialize a new, empty calloc'ed data-block. May be NULL if there is nothing to do.
Definition at line 213 of file BKE_idtype.hh.
Referenced by blender::BKE_libblock_init_empty(), and blender::id_type_is_valid().
| IDTypeLibOverrideApplyPost blender::IDTypeInfo::lib_override_apply_post |
Called after library override operations have been applied.
Definition at line 305 of file BKE_idtype.hh.
Referenced by blender::id_type_is_valid(), and blender::RNA_struct_override_apply().
| int blender::IDTypeInfo::main_listbase_index = INDEX_ID_MAX |
Define the position of this data-block type in the virtual list of all data in a Main that is returned by BKE_main_lists_get(). Very important, this has to be unique and below INDEX_ID_MAX, see DNA_ID.h.
Definition at line 176 of file BKE_idtype.hh.
Referenced by blender::id_type_init(), and blender::id_type_is_valid().
| IDTypeMakeLocalFunction blender::IDTypeInfo::make_local = InvalidPointer<IDTypeMakeLocalFunction>() |
Make a linked data-block local. May be NULL if default behavior from BKE_lib_id_make_local_generic() is enough.
Definition at line 230 of file BKE_idtype.hh.
Referenced by blender::BKE_lib_id_make_local(), and blender::id_type_is_valid().
| const char* blender::IDTypeInfo::name = nullptr |
The user visible name for this data-block, also used as default name for a new data-block.
Definition at line 188 of file BKE_idtype.hh.
Referenced by blender::absolute_convert_foreach_path_cb(), blender::bke::asset_write_in_library(), blender::BKE_idtype_get_info_from_idtype_index(), blender::BKE_idtype_idcode_to_name(), blender::BKE_idtype_name_normalize(), blender::BKE_libblock_get_alloc_info(), blender::get_alloc_name(), blender::id_type_is_valid(), blender::ed::space_node::node_find_create_data_block_value(), blender::ed::outliner::outliner_id_copy_tag_id(), and blender::relative_convert_foreach_path_cb().
| const char* blender::IDTypeInfo::name_plural = nullptr |
Plural version of the user-visible name.
Definition at line 190 of file BKE_idtype.hh.
Referenced by blender::bke::asset_root_path_for_save(), blender::BKE_idtype_idcode_to_name_plural(), and blender::id_type_is_valid().
| IDTypeEmbeddedOwnerPointerGetFunction blender::IDTypeInfo::owner_pointer_get |
For embedded IDs, return the address of the pointer to their owner ID.
Definition at line 264 of file BKE_idtype.hh.
Referenced by blender::BKE_id_owner_get(), blender::BKE_libblock_copy_in_lib(), and blender::id_type_is_valid().
| size_t blender::IDTypeInfo::struct_size = 0 |
Memory size of a data-block of that type.
Definition at line 179 of file BKE_idtype.hh.
Referenced by blender::BKE_libblock_get_alloc_info(), blender::BLO_Write_IDBuffer::BLO_Write_IDBuffer(), blender::id_swap(), and blender::id_type_is_valid().
| const char* blender::IDTypeInfo::translation_context = nullptr |
Translation context to use for UI messages related to that type of data-block.
Definition at line 192 of file BKE_idtype.hh.
Referenced by blender::BKE_idtype_idcode_to_translation_context(), and blender::id_type_is_valid().