Blender V5.3
BKE_key.hh File Reference
#include <optional>
#include <string>
#include "BLI_array.hh"
#include "BLI_math_matrix_types.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_span.hh"
#include "DNA_key_types.h"
#include "DNA_listBase.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

void blender::BKE_key_free_nolib (Key *key)
Key * blender::BKE_key_add (Main *bmain, ID *id)
void blender::BKE_key_sort (Key *key)
void blender::key_curve_position_weights (float t, float data[4], KeyInterpolationType type)
void blender::key_curve_tangent_weights (float t, float data[4], KeyInterpolationType type)
void blender::key_curve_normal_weights (float t, float data[4], KeyInterpolationType type)
float * blender::BKE_key_evaluate_object_ex (Object *ob, int *r_totelem, float *arr, size_t arr_size, std::optional< Span< bool > > keys_to_process, ID *obdata)
float * blender::BKE_key_evaluate_object (Object *ob, int *r_totelem)
int blender::BKE_keyblock_element_count_from_shape (const Key *key, int shape_index)
int blender::BKE_keyblock_element_count (const Key *key)
size_t blender::BKE_keyblock_element_calc_size_from_shape (const Key *key, int shape_index)
size_t blender::BKE_keyblock_element_calc_size (const Key *key)
bool blender::BKE_key_idtype_support (short id_type)
Key ** blender::BKE_key_from_id_p (ID *id)
Key * blender::BKE_key_from_id (ID *id)
Key ** blender::BKE_key_from_object_p (Object *ob)
Key * blender::BKE_key_from_object (Object *ob)
KeyBlock * blender::BKE_keyblock_from_object (Object *ob)
KeyBlock * blender::BKE_keyblock_from_object_reference (Object *ob)
KeyBlock * blender::BKE_keyblock_add (Key *key, const char *name)
KeyBlock * blender::BKE_keyblock_duplicate (Key *key, KeyBlock *kb_src)
KeyBlock * blender::BKE_keyblock_add_ctime (Key *key, const char *name, bool do_force)
KeyBlock * blender::BKE_keyblock_find_by_index (Key *key, int index)
KeyBlock * blender::BKE_keyblock_find_name (Key *key, const char name[])
KeyBlock * blender::BKE_keyblock_find_uid (Key *key, int uid)
void blender::BKE_keyblock_copy_settings (KeyBlock *kb_dst, const KeyBlock *kb_src)
 copy shape-key attributes, but not key data or name/UID.
std::optional< std::string > blender::BKE_keyblock_curval_rnapath_get (const Key *key, const KeyBlock *kb)
void blender::BKE_keyblock_update_from_lattice (const Lattice *lt, KeyBlock *kb)
void blender::BKE_keyblock_convert_from_lattice (const Lattice *lt, KeyBlock *kb)
void blender::BKE_keyblock_convert_to_lattice (const KeyBlock *kb, Lattice *lt)
int blender::BKE_keyblock_curve_element_count (const ListBaseT< Nurb > *nurb)
void blender::BKE_keyblock_curve_data_transform (const ListBaseT< Nurb > *nurb, const float mat[4][4], const void *src, void *dst)
void blender::BKE_keyblock_update_from_curve (const Curve *cu, KeyBlock *kb, const ListBaseT< Nurb > *nurb)
void blender::BKE_keyblock_convert_from_curve (const Curve *cu, KeyBlock *kb, const ListBaseT< Nurb > *nurb)
void blender::BKE_keyblock_convert_to_curve (KeyBlock *kb, Curve *cu, ListBaseT< Nurb > *nurb)
void blender::BKE_keyblock_update_from_mesh (const Mesh *mesh, KeyBlock *kb)
void blender::BKE_keyblock_convert_from_mesh (const Mesh *mesh, const Key *key, KeyBlock *kb)
void blender::BKE_keyblock_convert_to_mesh (const KeyBlock *kb, MutableSpan< float3 > vert_positions)
void blender::BKE_keyblock_mesh_calc_normals (const KeyBlock *kb, Mesh *mesh, float(*r_vert_normals)[3], float(*r_face_normals)[3], float(*r_loop_normals)[3])
bool blender::BKE_keyblock_move (Object *ob, int org_index, int new_index)
bool blender::BKE_keyblock_is_basis (const Key *key, int index)
std::optional< Array< bool > > blender::BKE_keyblock_get_dependent_keys (const Key *key, int index)
Key-Block Data Access

Utilities for getting/setting key data as a single array, use BKE_keyblock_element_calc_size to allocate the size of the data needed.

void blender::BKE_keyblock_data_get_from_shape (const Key *key, MutableSpan< float3 > arr, int shape_index)
void blender::BKE_keyblock_data_get (const Key *key, MutableSpan< float3 > arr)
void blender::BKE_keyblock_data_set_with_mat4 (Key *key, int shape_index, Span< float3 > coords, const float4x4 &transform)
void blender::BKE_keyblock_curve_data_set_with_mat4 (Key *key, const ListBaseT< Nurb > *nurb, int shape_index, const void *data, const float4x4 &transform)
void blender::BKE_keyblock_data_set (Key *key, int shape_index, const void *data)
void blender::BKE_keyblock_rename (Main &bmain, Key *key, KeyBlock *kb, const char *newname)