|
Blender
V2.93
|
Public Attributes | |
| int | size |
| const char * | structname |
| int | structnum |
| const char * | defaultname |
| cd_copy | copy |
| void(* | free )(void *data, int count, int size) |
| cd_interp | interp |
| void(* | swap )(void *data, const int *corner_indices) |
| void(* | set_default )(void *data, int count) |
| cd_validate | validate |
| bool(* | equal )(const void *data1, const void *data2) |
| void(* | multiply )(void *data, float fac) |
| void(* | initminmax )(void *min, void *max) |
| void(* | add )(void *data1, const void *data2) |
| void(* | dominmax )(const void *data1, void *min, void *max) |
| void(* | copyvalue )(const void *source, void *dest, const int mixmode, const float mixfactor) |
| bool(* | read )(CDataFile *cdf, void *data, int count) |
| bool(* | write )(CDataFile *cdf, const void *data, int count) |
| size_t(* | filesize )(CDataFile *cdf, const void *data, int count) |
| int(* | layers_max )(void) |
Definition at line 98 of file customdata.c.
Definition at line 159 of file customdata.c.
Referenced by CustomData_data_add(), and CustomData_layer_has_math().
| cd_copy LayerTypeInfo::copy |
a function to copy count elements of this layer's data (deep copy if appropriate) if NULL, memcpy is used
Definition at line 117 of file customdata.c.
Referenced by customData_add_layer__internal(), CustomData_bmesh_copy_data_exclude_by_type(), CustomData_bmesh_set(), CustomData_bmesh_set_layer_n(), CustomData_bmesh_set_n(), CustomData_copy_data_layer(), CustomData_copy_elements(), customdata_data_transfer_interp_generic(), customData_duplicate_referenced_layer_index(), CustomData_from_bmesh_block(), CustomData_set(), and CustomData_to_bmesh_block().
| void(* LayerTypeInfo::copyvalue) (const void *source, void *dest, const int mixmode, const float mixfactor) |
Definition at line 161 of file customdata.c.
Referenced by CustomData_data_copy_value(), and CustomData_data_mix_value().
| const char* LayerTypeInfo::defaultname |
default layer name. note! when NULL this is a way to ensure there is only ever one item see: CustomData_layertype_is_singleton()
Definition at line 110 of file customdata.c.
Referenced by CustomData_add_layer(), customData_add_layer__internal(), CustomData_layertype_is_singleton(), CustomData_layertype_layers_max(), CustomData_set_layer_unique_name(), and CustomData_verify_versions().
Definition at line 160 of file customdata.c.
Referenced by CustomData_data_dominmax(), and CustomData_layer_has_math().
functions necessary for geometry collapse
Definition at line 156 of file customdata.c.
Referenced by CustomData_data_equals(), and CustomData_layer_has_math().
a function to determine file size
Definition at line 170 of file customdata.c.
Referenced by CustomData_external_write().
a function to free any dynamically allocated components of this layer's data (note the data pointer itself should not be freed) size should be the size of one element of this layer's data (e.g. LayerTypeInfo.size)
Definition at line 125 of file customdata.c.
Referenced by CustomData_bmesh_free_block(), CustomData_bmesh_free_block_data(), CustomData_bmesh_free_block_data_exclude_by_type(), CustomData_bmesh_has_free(), CustomData_external_reload(), CustomData_external_write(), CustomData_free_elem(), customData_free_layer__internal(), and CustomData_layertype_is_dynamic().
Definition at line 158 of file customdata.c.
Referenced by CustomData_data_initminmax(), and CustomData_layer_has_math().
| cd_interp LayerTypeInfo::interp |
a function to interpolate between count source elements of this layer's data and store the result in dest if weights == NULL or sub_weights == NULL, they should default to 1
weights gives the weight for each element in sources sub_weights gives the sub-element weights for each element in sources (there should be (sub element count)^2 weights per element) count gives the number of elements in sources
Definition at line 142 of file customdata.c.
Referenced by CustomData_bmesh_interp(), CustomData_bmesh_interp_n(), customdata_data_transfer_interp_generic(), customdata_data_transfer_interp_normal_normals(), CustomData_interp(), and CustomData_layer_has_interp().
| int(* LayerTypeInfo::layers_max) (void) |
a function to determine max allowed number of layers, should be NULL or return -1 if no limit
Definition at line 174 of file customdata.c.
Referenced by CustomData_layertype_layers_max().
Definition at line 157 of file customdata.c.
Referenced by CustomData_data_multiply(), and CustomData_layer_has_math().
a function to read data from a cdf file
Definition at line 164 of file customdata.c.
Referenced by CustomData_external_read().
a function to set a layer's data to default values. if NULL, the default is assumed to be all zeros
Definition at line 150 of file customdata.c.
Referenced by customData_add_layer__internal(), CustomData_blend_read(), and CustomData_bmesh_set_default_n().
| int LayerTypeInfo::size |
Definition at line 99 of file customdata.c.
Referenced by customData_add_layer__internal(), CustomData_blend_read(), CustomData_bmesh_copy_data_exclude_by_type(), CustomData_bmesh_free_block(), CustomData_bmesh_free_block_data(), CustomData_bmesh_free_block_data_exclude_by_type(), CustomData_bmesh_set(), CustomData_bmesh_set_default_n(), CustomData_bmesh_set_layer_n(), CustomData_bmesh_set_n(), CustomData_copy_data_layer(), CustomData_copy_elements(), CustomData_data_copy_value(), CustomData_data_equals(), CustomData_data_mix_value(), CustomData_data_transfer(), customdata_data_transfer_interp_generic(), customData_duplicate_referenced_layer_index(), CustomData_external_reload(), CustomData_external_write(), CustomData_free_elem(), customData_free_layer__internal(), CustomData_from_bmesh_block(), CustomData_get(), CustomData_get_n(), CustomData_interp(), CustomData_realloc(), CustomData_set(), CustomData_sizeof(), CustomData_swap(), CustomData_swap_corners(), CustomData_to_bmesh_block(), and customData_update_offsets().
| const char* LayerTypeInfo::structname |
name of the struct used, for file writing
Definition at line 102 of file customdata.c.
Referenced by CustomData_file_write_info().
| int LayerTypeInfo::structnum |
number of structs per element, for file writing
Definition at line 104 of file customdata.c.
Referenced by CustomData_file_write_info(), and CustomData_verify_versions().
| void(* LayerTypeInfo::swap) (void *data, const int *corner_indices) |
a function to swap the data in corners of the element
Definition at line 145 of file customdata.c.
Referenced by CustomData_swap_corners().
| cd_validate LayerTypeInfo::validate |
A function used by mesh validating code, must ensures passed item has valid data.
Definition at line 153 of file customdata.c.
Referenced by CustomData_layer_validate().
a function to write data to a cdf file
Definition at line 167 of file customdata.c.
Referenced by CustomData_external_write().