|
Blender V5.3
|
#include <algorithm>#include <cmath>#include <cstddef>#include <cstring>#include <optional>#include "MEM_guardedalloc.h"#include "BLI_listbase.hh"#include "BLI_math_matrix_c.hh"#include "BLI_math_vector_c.hh"#include "BLI_string.hh"#include "BLI_string_utf8.hh"#include "BLI_string_utils.hh"#include "BLI_task.hh"#include "BLI_utildefines.hh"#include "BLT_translation.hh"#include "DNA_ID.h"#include "DNA_curve_types.h"#include "DNA_key_types.h"#include "DNA_lattice_types.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "DNA_object_types.h"#include "BKE_anim_data.hh"#include "BKE_animsys.hh"#include "BKE_attribute.hh"#include "BKE_curve.hh"#include "BKE_customdata.hh"#include "BKE_deform.hh"#include "BKE_editmesh.hh"#include "BKE_global.hh"#include "BKE_idtype.hh"#include "BKE_key.hh"#include "BKE_lattice.hh"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_main.hh"#include "BKE_mesh.hh"#include "BKE_scene.hh"#include "RNA_access.hh"#include "RNA_path.hh"#include "RNA_prototypes.hh"#include "BLO_read_write.hh"Go to the source code of this file.
Classes | |
| struct | blender::WeightsArrayCache |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
| #define | IPO_FLOAT 4 |
| #define | IPO_BEZTRIPLE 100 |
| #define | IPO_BPOINT 101 |
| #define | KEY_MODE_DUMMY 0 |
| #define | KEY_MODE_BPOINT 1 |
| #define | KEY_MODE_BEZTRIPLE 2 |
Functions | |
| static void | blender::shapekey_copy_data (Main *, std::optional< Library * >, ID *id_dst, const ID *id_src, const int) |
| static void | blender::shapekey_free_data (ID *id) |
| static void | blender::shapekey_foreach_id (ID *id, LibraryForeachIDData *data) |
| static ID ** | blender::shapekey_owner_pointer_get (ID *id, const bool debug_relationship_assert) |
| static void | blender::shapekey_blend_write (BlendWriter *writer, ID *id, const void *id_address) |
| static void | blender::shapekey_blend_read_data (BlendDataReader *reader, ID *id) |
| static void | blender::shapekey_blend_read_after_liblink (BlendLibReader *, ID *id) |
| 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) |
| static bool | blender::get_keys_for_absolute_eval (float eval_time, const ListBaseT< KeyBlock > *keyblocks, KeyBlock *r_target_keys[4], float r_weights[4]) |
| static char * | blender::key_block_get_data (Key *key, KeyBlock *actkb, KeyBlock *kb, char **freedata) |
| static void | blender::add_weighted_vector (const int start_index, const float weight, const float *a, const float *b, float *r_target) |
| static void | blender::flerp (const float f0[3], const float f1[3], const float f2[3], const float f3[3], const float weights[4], float r_out[3]) |
| static void | blender::copy_key_float3 (const int vertex_count, Key *key, KeyBlock *active_keyblock, KeyBlock *source, float *r_target) |
| static void | blender::copy_key_float3_weighted (const int vertex_count, Key *key, KeyBlock *active_keyblock, KeyBlock *source, const float *weights, float *r_target) |
| static void | blender::key_evaluate_relative_float3 (Key *key, KeyBlock *active_keyblock, const std::optional< Span< bool > > keys_to_process, const int vertex_count, float **per_keyblock_weights, float *target_data) |
| static void | blender::key_evaluate_absolute (const int vertex_count, Key *key, KeyBlock *active_keyblock, KeyBlock *shapekeys[4], const float weights[4], float *r_target) |
| static float * | blender::get_weights_array (Object *ob, const char *vgroup, WeightsArrayCache *cache) |
| static float ** | blender::keyblock_get_per_block_weights (Object *ob, Key *key, WeightsArrayCache *cache) |
| static void | blender::keyblock_free_per_block_weights (Key *key, float **per_keyblock_weights, WeightsArrayCache *cache) |
| static void | blender::do_mesh_key (Object *ob, Key *key, const std::optional< Span< bool > > keys_to_process, char *out, const int tot) |
| static void | blender::do_curve_key (Object *ob, Key *key, const std::optional< Span< bool > > keys_to_process, char *out, const int tot) |
| static void | blender::do_latt_key (Object *ob, Key *key, const std::optional< Span< bool > > keys_to_process, char *out, const int tot) |
| static void | blender::keyblock_data_convert_to_lattice (const float(*fp)[3], BPoint *bpoint, const int totpoint) |
| static void | blender::keyblock_data_convert_to_curve (const float *fp, ListBaseT< Nurb > *nurb, const int totpoint) |
| 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_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_from_object (Object *ob) |
| KeyBlock * | blender::BKE_keyblock_from_object_reference (Object *ob) |
| 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_update_from_curve (const Curve *cu, KeyBlock *kb, 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_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) |
| #define IPO_BPOINT 101 |
Definition at line 146 of file key.cc.
Referenced by blender::BKE_key_add().
| #define IPO_FLOAT 4 |
Definition at line 144 of file key.cc.
Referenced by blender::BKE_key_add().