|
Blender V5.3
|
#include <algorithm>#include <cstddef>#include "MEM_guardedalloc.h"#include "DNA_ID.h"#include "DNA_customdata_types.h"#include "DNA_meshdata_types.h"#include "DNA_modifier_enums.h"#include "DNA_userdef_types.h"#include "BLI_bit_vector.hh"#include "BLI_bitmap.hh"#include "BLI_index_range.hh"#include "BLI_math_color_blend.hh"#include "BLI_math_quaternion_types.hh"#include "BLI_math_vector.hh"#include "BLI_memory_counter.hh"#include "BLI_mempool.hh"#include "BLI_path_utils.hh"#include "BLI_resource_scope.hh"#include "BLI_set.hh"#include "BLI_span.hh"#include "BLI_string.hh"#include "BLI_string_ref.hh"#include "BLI_string_utf8.hh"#include "BLI_string_utils.hh"#include "BLI_utildefines.hh"#include "PRF_profile.hh"#include "BLI_dynstr.hh"#include "BLT_translation.hh"#include "BKE_anonymous_attribute_id.hh"#include "BKE_attribute_legacy_convert.hh"#include "BKE_attribute_math.hh"#include "BKE_attribute_storage.hh"#include "BKE_ccg.hh"#include "BKE_customdata.hh"#include "BKE_customdata_file.h"#include "BKE_deform.hh"#include "BKE_library.hh"#include "BKE_main.hh"#include "BKE_mesh_remap.hh"#include "BKE_multires.hh"#include "BLO_read_write.hh"#include "bmesh.hh"#include "CLG_log.h"#include "data_transfer_intern.hh"Go to the source code of this file.
Classes | |
| struct | blender::LayerTypeInfo |
| class | blender::CustomDataLayerImplicitSharing |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
| namespace | blender::bke |
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
| #define | CUSTOMDATA_GROW 5 |
Functions | |
| blender::BLI_STATIC_ASSERT (BOUNDED_ARRAY_TYPE_SIZE< decltype(CustomData::typemap)>()==CD_NUMTYPES, "size mismatch") | |
| size_t | blender::CustomData_get_elem_size (const CustomDataLayer *layer) |
| void | blender::CustomData_count_memory (const CustomData &data, int totelem, MemoryCounter &memory) |
Mesh Mask Utilities | |
| void | blender::CustomData_MeshMasks_update (CustomData_MeshMasks *mask_dst, const CustomData_MeshMasks *mask_src) |
| bool | blender::CustomData_MeshMasks_are_matching (const CustomData_MeshMasks *mask_ref, const CustomData_MeshMasks *mask_required) |
Callbacks for (#MDeformVert, #CD_MDEFORMVERT) | |
| static void | blender::layerCopy_mdeformvert (const void *source, void *dest, const int count) |
| static void | blender::layerFree_mdeformvert (void *data, const int count) |
| static void | blender::layerInterp_mdeformvert (const void **sources, const float *weights, const int count, void *dest) |
| static void | blender::layerConstruct_mdeformvert (void *data, const int count) |
Callbacks for (#vec3f, #CD_NORMAL) | |
| static void | blender::layerInterp_normal (const void **sources, const float *weights, const int count, void *dest) |
| static void | blender::layerCopyValue_normal (const void *source, void *dest, const int mixmode, const float mixfactor) |
Callbacks for (#MTFace, #CD_MTFACE) | |
| static void | blender::layerCopy_tface (const void *source, void *dest, const int count) |
| static void | blender::layerInterp_tface (const void **sources, const float *weights, const int count, void *dest) |
| static void | blender::layerSwap_tface (void *data, const int *corner_indices) |
| static void | blender::layerDefault_tface (void *data, const int count) |
| static int | blender::layerMaxNum_tface () |
Callbacks for (#MFloatProperty, #CD_PROP_FLOAT) | |
| static void | blender::layerCopy_propFloat (const void *source, void *dest, const int count) |
| static void | blender::layerInterp_propFloat (const void **sources, const float *weights, const int count, void *dest) |
| static bool | blender::layerValidate_propFloat (void *data, const uint totitems, const bool do_fixes) |
Callbacks for (#MIntProperty, #CD_PROP_INT32) | |
| static void | blender::layerInterp_propInt (const void **sources, const float *weights, const int count, void *dest) |
Callbacks for (#MStringProperty, #CD_PROP_STRING) | |
| static void | blender::layerCopy_propString (const void *source, void *dest, const int count) |
Callbacks for (#OrigSpaceFace, #CD_ORIGSPACE) | |
| static void | blender::layerCopy_origspace_face (const void *source, void *dest, const int count) |
| static void | blender::layerInterp_origspace_face (const void **sources, const float *weights, const int count, void *dest) |
| static void | blender::layerSwap_origspace_face (void *data, const int *corner_indices) |
| static void | blender::layerDefault_origspace_face (void *data, const int count) |
Callbacks for (#MDisps, #CD_MDISPS) | |
| static void | blender::layerSwap_mdisps (void *data, const int *ci) |
| static void | blender::layerCopy_mdisps (const void *source, void *dest, const int count) |
| static void | blender::layerFree_mdisps (void *data, const int count) |
| static void | blender::layerConstruct_mdisps (void *data, const int count) |
| static bool | blender::layerRead_mdisps (CDataFile *cdf, void *data, const int count) |
| static bool | blender::layerWrite_mdisps (CDataFile *cdf, const void *data, const int count) |
| static size_t | blender::layerFilesize_mdisps (CDataFile *, const void *data, const int count) |
Callbacks for (#CD_BM_ELEM_PYPTR) | |
| static void | blender::layerCopy_bmesh_elem_py_ptr (const void *, void *dest, const int count) |
| void | blender::bpy_bm_generic_invalidate (struct BPy_BMGeneric *) |
| static void | blender::layerFree_bmesh_elem_py_ptr (void *data, const int count) |
Callbacks for (#GridPaintMask, #CD_GRID_PAINT_MASK) | |
| static void | blender::layerCopy_grid_paint_mask (const void *source, void *dest, const int count) |
| static void | blender::layerFree_grid_paint_mask (void *data, const int count) |
| static void | blender::layerConstruct_grid_paint_mask (void *data, const int count) |
Callbacks for (#MLoopCol, #CD_PROP_BYTE_COLOR) | |
| static void | blender::layerCopyValue_mloopcol (const void *source, void *dest, const int mixmode, const float mixfactor) |
| static bool | blender::layerEqual_mloopcol (const void *data1, const void *data2) |
| static void | blender::layerMultiply_mloopcol (void *data, const float fac) |
| static void | blender::layerAdd_mloopcol (void *data1, const void *data2) |
| static void | blender::layerDoMinMax_mloopcol (const void *data, void *vmin, void *vmax) |
| static void | blender::layerInitMinMax_mloopcol (void *vmin, void *vmax) |
| static void | blender::layerDefault_mloopcol (void *data, const int count) |
| static void | blender::layerInterp_mloopcol (const void **sources, const float *weights, int count, void *dest) |
Callbacks for #OrigSpaceLoop | |
| static void | blender::layerCopyValue_mloop_origspace (const void *source, void *dest, const int, const float) |
| static bool | blender::layerEqual_mloop_origspace (const void *data1, const void *data2) |
| static void | blender::layerMultiply_mloop_origspace (void *data, const float fac) |
| static void | blender::layerInitMinMax_mloop_origspace (void *vmin, void *vmax) |
| static void | blender::layerDoMinMax_mloop_origspace (const void *data, void *vmin, void *vmax) |
| static void | blender::layerAdd_mloop_origspace (void *data1, const void *data2) |
| static void | blender::layerInterp_mloop_origspace (const void **sources, const float *weights, int count, void *dest) |
| static void | blender::layerInterp_mcol (const void **sources, const float *weights, const int count, void *dest) |
| static void | blender::layerSwap_mcol (void *data, const int *corner_indices) |
| static void | blender::layerDefault_mcol (void *data, const int count) |
| static void | blender::layerDefault_origindex (void *data, const int count) |
| static void | blender::layerInterp_shapekey (const void **sources, const float *weights, int count, void *dest) |
Callbacks for (<tt>short[4][3]</tt>, #CD_TESSLOOPNORMAL) | |
| static void | blender::layerSwap_flnor (void *data, const int *corner_indices) |
Callbacks for (#MPropCol, #CD_PROP_COLOR) | |
| static void | blender::layerCopyValue_propcol (const void *source, void *dest, const int mixmode, const float mixfactor) |
| static bool | blender::layerEqual_propcol (const void *data1, const void *data2) |
| static void | blender::layerMultiply_propcol (void *data, const float fac) |
| static void | blender::layerAdd_propcol (void *data1, const void *data2) |
| static void | blender::layerDoMinMax_propcol (const void *data, void *vmin, void *vmax) |
| static void | blender::layerInitMinMax_propcol (void *vmin, void *vmax) |
| static void | blender::layerDefault_propcol (void *data, const int count) |
| static void | blender::layerInterp_propcol (const void **sources, const float *weights, int count, void *dest) |
Callbacks for (#float4, #CD_PROP_FLOAT4) | |
| static void | blender::layerInterp_propfloat4 (const void **sources, const float *weights, int count, void *dest) |
| static void | blender::layerMultiply_propfloat4 (void *data, const float fac) |
| static void | blender::layerAdd_propfloat4 (void *data1, const void *data2) |
Callbacks for (#vec3f, #CD_PROP_FLOAT3) | |
| static void | blender::layerInterp_propfloat3 (const void **sources, const float *weights, int count, void *dest) |
| static void | blender::layerMultiply_propfloat3 (void *data, const float fac) |
| static void | blender::layerAdd_propfloat3 (void *data1, const void *data2) |
| static bool | blender::layerValidate_propfloat3 (void *data, const uint totitems, const bool do_fixes) |
Callbacks for (#vec2f, #CD_PROP_FLOAT2) | |
| static void | blender::layerInterp_propfloat2 (const void **sources, const float *weights, int count, void *dest) |
| static void | blender::layerMultiply_propfloat2 (void *data, const float fac) |
| static void | blender::layerAdd_propfloat2 (void *data1, const void *data2) |
| static bool | blender::layerValidate_propfloat2 (void *data, const uint totitems, const bool do_fixes) |
| static bool | blender::layerEqual_propfloat2 (const void *data1, const void *data2) |
| static void | blender::layerInitMinMax_propfloat2 (void *vmin, void *vmax) |
| static void | blender::layerDoMinMax_propfloat2 (const void *data, void *vmin, void *vmax) |
| static void | blender::layerCopyValue_propfloat2 (const void *source, void *dest, const int mixmode, const float mixfactor) |
Callbacks for (<tt>bool</tt>, #CD_PROP_BOOL) | |
| static void | blender::layerInterp_propbool (const void **sources, const float *weights, int count, void *dest) |
Callbacks for (#math::Quaternion, #CD_PROP_QUATERNION) | |
| static void | blender::layerDefault_propquaternion (void *data, const int count) |
| static void | blender::layerInterp_propquaternion (const void **sources, const float *weights, int count, void *dest) |
Callbacks for (#math::Quaternion, #CD_PROP_FLOAT4X4) | |
| static void | blender::layerDefault_propfloat4x4 (void *data, const int count) |
External Files | |
| static void | blender::customdata_external_filename (char filepath[FILE_MAX], StringRefNull basepath, ID *id, CustomDataExternal *external) |
| void | blender::CustomData_external_reload (CustomData *data, ID *id, eCustomDataMask mask, int totelem) |
| void | blender::CustomData_external_read (CustomData *data, StringRefNull basepath, ID *id, eCustomDataMask mask, int totelem) |
| void | blender::CustomData_external_write (CustomData *data, StringRefNull basepath, ID *id, eCustomDataMask mask, int totelem, int free) |
| void | blender::CustomData_external_add (CustomData *data, ID *id, eCustomDataType type, int totelem, const char *filepath) |
| void | blender::CustomData_external_remove (CustomData *data, ID *id, eCustomDataType type, int totelem) |
| bool | blender::CustomData_external_test (CustomData *data, eCustomDataType type) |
Mesh-to-Mesh Data Transfer | |
| static void | blender::customdata_data_transfer_interp_generic (const CustomDataTransferLayerMap *laymap, void *data_dst, const void **sources, const float *weights, const int count, const float mix_factor) |
| void | blender::customdata_data_transfer_interp_normal_normals (const CustomDataTransferLayerMap *laymap, void *data_dst, const void **sources, const float *weights, const int count, const float mix_factor) |
| void | blender::CustomData_data_transfer (const MeshPairRemap *me_remap, CustomDataTransferLayerMap *laymap) |
Custom Data IO | |
| static void | blender::get_type_file_write_info (const eCustomDataType type, const char **r_struct_name, int *r_struct_num) |
| void | blender::CustomData_blend_write_prepare (CustomData &data, Vector< CustomDataLayer, 16 > &layers_to_write) |
| static void | blender::write_mdisps (BlendWriter *writer, const int count, const MDisps *mdlist, const int external) |
| static void | blender::write_grid_paint_mask (BlendWriter *writer, int count, const GridPaintMask *grid_paint_mask) |
| static void | blender::blend_write_layer_data (BlendWriter *writer, const CustomDataLayer &layer, const int count) |
| void | blender::CustomData_blend_write (BlendWriter *writer, CustomData *data, Span< CustomDataLayer > layers_to_write, int count, eCustomDataMask cddata_mask, ID *id) |
| static void | blender::blend_read_mdisps (BlendDataReader *reader, const int count, MDisps *mdisps, const int external) |
| static void | blender::blend_read_paint_mask (BlendDataReader *reader, int count, GridPaintMask *grid_paint_mask) |
| static void | blender::blend_read_layer_data (BlendDataReader *reader, CustomDataLayer &layer, const int count) |
| void | blender::CustomData_blend_read (BlendDataReader *reader, CustomData *data, int count) |
Custom Data Debugging | |
| void | blender::CustomData_debug_info_from_layers (const CustomData *data, const char *indent, DynStr *dynstr) |
Custom Data C++ API | |
| std::optional< VolumeGridType > | blender::bke::custom_data_type_to_volume_grid_type (eCustomDataType type) |
| std::optional< eCustomDataType > | blender::bke::volume_grid_type_to_custom_data_type (VolumeGridType type) |
Variables | |
| static CLG_LogRef | blender::LOG = {"geom.customdata"} |
Layer Type Information (#LAYERTYPEINFO) | |
| static const LayerTypeInfo | blender::LAYERTYPEINFO [CD_NUMTYPES] |
| static const char * | blender::LAYERTYPENAMES [CD_NUMTYPES] |
| static const LayerTypeInfo * | blender::layerType_getInfo (const eCustomDataType type) |
| static const char * | blender::layerType_getName (const eCustomDataType type) |
| void | blender::customData_mask_layers__print (const CustomData_MeshMasks *mask) |
Implementation of CustomData.
BKE_customdata.hh contains the function prototypes for this file.
Definition in file customdata.cc.
| #define CUSTOMDATA_GROW 5 |
Definition at line 77 of file customdata.cc.
Referenced by blender::customData_add_layer__internal(), and blender::CustomData_free_layer().
| #define DNA_DEPRECATED_ALLOW |
Definition at line 18 of file customdata.cc.
| #define SOURCE_BUF_SIZE 100 |
Definition at line 3191 of file customdata.cc.
Referenced by blender::CustomData_bmesh_interp(), and blender::CustomData_interp().