Blender V5.3
BKE_idtype.hh File Reference
#include <optional>
#include "BLI_color_types.hh"
#include "BLI_function_ref.hh"
#include "BLI_implicit_sharing_ptr.hh"
#include "BLI_sys_types.hh"
#include "DNA_ID.h"

Go to the source code of this file.

Classes

struct  blender::IDCacheKey
struct  blender::IDTypeForeachColorFunctionCallback
struct  blender::IDTypeInfo

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BKE_idtype_idcode_is_localizable   BKE_idtype_idcode_is_linkable

Typedefs

using blender::IDTypeInitDataFunction = void (*)(ID *id)
using blender::IDTypeCopyDataFunction
using blender::IDTypeFreeDataFunction = void (*)(ID *id)
using blender::IDTypeMakeLocalFunction = void (*)(Main *bmain, ID *id, int flags)
using blender::IDTypeForeachIDFunction = void (*)(ID *id, LibraryForeachIDData *data)
using blender::IDTypeForeachCacheFunctionCallback
using blender::IDTypeForeachCacheFunction
using blender::IDTypeForeachPathFunction = void (*)(ID *id, BPathForeachPathData *bpath_data)
using blender::IDTypeForeachColorFunction = void (*)(ID *id, const IDTypeForeachColorFunctionCallback &cb)
using blender::IDTypeForeachAssetWeakReferenceFunction
using blender::IDTypeEmbeddedOwnerPointerGetFunction = ID **(*)(ID * id, bool debug_relationship_assert)
using blender::IDTypeBlendWriteFunction = void (*)(BlendWriter *writer, ID *id, const void *id_address)
using blender::IDTypeBlendReadDataFunction = void (*)(BlendDataReader *reader, ID *id)
using blender::IDTypeBlendReadAfterLiblinkFunction = void (*)(BlendLibReader *reader, ID *id)
using blender::IDTypeBlendReadUndoPreserve = void (*)(BlendLibReader *reader, ID *id_new, ID *id_old)
using blender::IDTypeLibOverrideApplyPost = void (*)(ID *id_dst, ID *id_src)

Enumerations

enum  {
  blender::IDTYPE_FLAGS_NO_COPY = 1 << 0 , blender::IDTYPE_FLAGS_NO_LIBLINKING = 1 << 1 , blender::IDTYPE_FLAGS_ONLY_APPEND = 1 << 2 , blender::IDTYPE_FLAGS_APPEND_IS_REUSABLE = 1 << 3 ,
  blender::IDTYPE_FLAGS_NO_ANIMDATA = 1 << 4 , blender::IDTYPE_FLAGS_NO_MEMFILE_UNDO = 1 << 5 , blender::IDTYPE_FLAGS_NEVER_UNUSED = 1 << 6
}
enum  blender::eIDTypeInfoCacheCallbackFlags { blender::IDTYPE_CACHE_CB_FLAGS_PERSISTENT = 1 << 0 }

Functions

uint blender::BKE_idtype_cache_key_hash (const void *key_v)
bool blender::BKE_idtype_cache_key_cmp (const void *key_a_v, const void *key_b_v)
void blender::BKE_idtype_init ()
const IDTypeInfo * blender::BKE_idtype_get_info_from_idtype_index (const int idtype_index)
const IDTypeInfo * blender::BKE_idtype_get_info_from_idcode (short id_code)
const IDTypeInfo * blender::BKE_idtype_get_info_from_id (const ID *id)
const char * blender::BKE_idtype_idcode_to_name (short idcode)
const char * blender::BKE_idtype_idcode_to_name_plural (short idcode)
const char * blender::BKE_idtype_idcode_to_translation_context (short idcode)
bool blender::BKE_idtype_idcode_is_valid (short idcode)
bool blender::BKE_idtype_idcode_is_linkable (short idcode)
bool blender::BKE_idtype_idcode_is_only_appendable (short idcode)
bool blender::BKE_idtype_idcode_append_is_reusable (short idcode)
short blender::BKE_idtype_idcode_from_name (const char *idtype_name)
short blender::BKE_idtype_idcode_from_name_case_insensitive (const char *idtype_name)
const char * blender::BKE_idtype_name_normalize (const char *idtype_name)
int blender::BKE_idtype_idcode_to_index (short idcode)
int blender::BKE_idtype_idfilter_to_index (uint64_t id_filter)
short blender::BKE_idtype_index_to_idcode (int idtype_index)
uint64_t blender::BKE_idtype_index_to_idfilter (int idtype_index)
uint64_t blender::BKE_idtype_idcode_to_idfilter (short idcode)
short blender::BKE_idtype_idfilter_to_idcode (uint64_t idfilter)
short blender::BKE_idtype_idcode_iter_step (int *idtype_index)
void blender::BKE_idtype_id_foreach_cache (ID *id, IDTypeForeachCacheFunctionCallback function_callback, void *user_data)

Variables

IDTypeInfo blender::IDType_ID_LI
IDTypeInfo blender::IDType_ID_OB
IDTypeInfo blender::IDType_ID_ME
IDTypeInfo blender::IDType_ID_CU_LEGACY
IDTypeInfo blender::IDType_ID_MB
IDTypeInfo blender::IDType_ID_MA
IDTypeInfo blender::IDType_ID_TE
IDTypeInfo blender::IDType_ID_LT
IDTypeInfo blender::IDType_ID_LA
IDTypeInfo blender::IDType_ID_KE
IDTypeInfo blender::IDType_ID_WO
IDTypeInfo blender::IDType_ID_SPK
IDTypeInfo blender::IDType_ID_SO
IDTypeInfo blender::IDType_ID_AC
IDTypeInfo blender::IDType_ID_NT
IDTypeInfo blender::IDType_ID_BR
IDTypeInfo blender::IDType_ID_PA
IDTypeInfo blender::IDType_ID_WM
IDTypeInfo blender::IDType_ID_MC
IDTypeInfo blender::IDType_ID_MSK
IDTypeInfo blender::IDType_ID_LS
IDTypeInfo blender::IDType_ID_PAL
IDTypeInfo blender::IDType_ID_PC
IDTypeInfo blender::IDType_ID_CF
IDTypeInfo blender::IDType_ID_WS
IDTypeInfo blender::IDType_ID_LP
IDTypeInfo blender::IDType_ID_CV
IDTypeInfo blender::IDType_ID_PT
IDTypeInfo blender::IDType_ID_VO
IDTypeInfo blender::IDType_ID_GP
IDTypeInfo blender::IDType_ID_LINK_PLACEHOLDER
Scene Data-Block
IDTypeInfo blender::IDType_ID_SCE
Image #IDTypeInfo API
IDTypeInfo blender::IDType_ID_IM
Camera Data-Block
IDTypeInfo blender::IDType_ID_CA
ID Type Implementation
IDTypeInfo blender::IDType_ID_SCR
VFont Data-block
IDTypeInfo blender::IDType_ID_VF
Text Data-Block
IDTypeInfo blender::IDType_ID_TXT
Collection Data-Block
IDTypeInfo blender::IDType_ID_GR
Armature Data-block
IDTypeInfo blender::IDType_ID_AR
Annotations Data Block
IDTypeInfo blender::IDType_ID_GD_LEGACY

Detailed Description

ID type structure, helping to factorize common operations and data for all data-block types.

Definition in file BKE_idtype.hh.

Macro Definition Documentation

◆ BKE_idtype_idcode_is_localizable

#define BKE_idtype_idcode_is_localizable   BKE_idtype_idcode_is_linkable

Definition at line 417 of file BKE_idtype.hh.

Referenced by blender::ui::template_ID().