|
Blender
V2.93
|
#include <BCAnimationCurve.h>
Public Member Functions | |
| BCAnimationCurve () | |
| BCAnimationCurve (const BCAnimationCurve &other) | |
| BCAnimationCurve (const BCCurveKey &key, Object *ob) | |
| BCAnimationCurve (BCCurveKey key, Object *ob, FCurve *fcu) | |
| ~BCAnimationCurve () | |
| bool | is_of_animation_type (BC_animation_type type) const |
| int | get_interpolation_type (float sample_frame) const |
| bool | is_animated () |
| bool | is_transform_curve () const |
| bool | is_rotation_curve () const |
| bool | is_keyframe (int frame) |
| void | adjust_range (int frame) |
| std::string | get_animation_name (Object *ob) const |
| std::string | get_channel_target () const |
| std::string | get_channel_type () const |
| std::string | get_channel_posebone () const |
| int | get_channel_index () const |
| int | get_subindex () const |
| std::string | get_rna_path () const |
| FCurve * | get_fcurve () const |
| int | sample_count () const |
| float | get_value (const float frame) |
| void | get_values (BCValues &values) const |
| void | get_value_map (BCValueMap &value_map) |
| void | get_frames (BCFrames &frames) const |
| FCurve * | get_edit_fcurve () |
| bool | add_value_from_rna (const int frame) |
| bool | add_value_from_matrix (const BCSample &sample, const int frame) |
| void | add_value (const float val, const int frame) |
| void | clean_handles () |
| int | closest_index_above (const float sample_frame, const int start_at) const |
| int | closest_index_below (const float sample_frame) const |
Definition at line 88 of file BCAnimationCurve.h.
| BCAnimationCurve::BCAnimationCurve | ( | ) |
Definition at line 22 of file BCAnimationCurve.cpp.
References BC_ANIMATION_TYPE_OBJECT, and BCCurveKey::set_object_type().
| BCAnimationCurve::BCAnimationCurve | ( | const BCAnimationCurve & | other | ) |
Definition at line 29 of file BCAnimationCurve.cpp.
References get_edit_fcurve().
| BCAnimationCurve::BCAnimationCurve | ( | const BCCurveKey & | key, |
| Object * | ob | ||
| ) |
Definition at line 53 of file BCAnimationCurve.cpp.
| BCAnimationCurve::BCAnimationCurve | ( | BCCurveKey | key, |
| Object * | ob, | ||
| FCurve * | fcu | ||
| ) |
Definition at line 43 of file BCAnimationCurve.cpp.
| BCAnimationCurve::~BCAnimationCurve | ( | ) |
Definition at line 118 of file BCAnimationCurve.cpp.
| void BCAnimationCurve::add_value | ( | const float | val, |
| const int | frame | ||
| ) |
Definition at line 389 of file BCAnimationCurve.cpp.
References FCurve::auto_smoothing, BEZT_KEYTYPE_KEYFRAME, get_edit_fcurve(), insert_vert_fcurve(), INSERTKEY_NOFLAGS, and FCurve::totvert.
Referenced by add_value_from_matrix(), add_value_from_rna(), and AnimationExporter::get_modified_export_curve().
| bool BCAnimationCurve::add_value_from_matrix | ( | const BCSample & | sample, |
| const int | frame | ||
| ) |
Definition at line 403 of file BCAnimationCurve.cpp.
References add_value(), BCCurveKey::get_array_index(), get_channel_target(), and blender::compositor::sample().
| bool BCAnimationCurve::add_value_from_rna | ( | const int | frame | ) |
Definition at line 421 of file BCAnimationCurve.cpp.
References add_value(), float(), BCCurveKey::get_array_index(), BCCurveKey::get_full_path(), BCCurveKey::get_path(), PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, ptr, RNA_path_resolve_full(), RNA_property_array_check(), RNA_property_array_length(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_enum_get(), RNA_property_float_get(), RNA_property_float_get_index(), RNA_property_int_get(), RNA_property_int_get_index(), and RNA_property_type().
| void BCAnimationCurve::adjust_range | ( | int | frame | ) |
Definition at line 374 of file BCAnimationCurve.cpp.
References FCurve::bezt, evaluate_fcurve(), FCurve::totvert, and BezTriple::vec.
| void BCAnimationCurve::clean_handles | ( | ) |
Definition at line 311 of file BCAnimationCurve.cpp.
References BEZKEYTYPE, FCurve::bezt, BezTriple::f1, BezTriple::f2, BezTriple::f3, get_edit_fcurve(), insert_vert_fcurve(), INSERTKEY_NOFLAGS, MEM_freeN, FCurve::totvert, BezTriple::vec, x, and y.
Referenced by AnimationExporter::get_modified_export_curve().
| int BCAnimationCurve::closest_index_above | ( | const float | sample_frame, |
| const int | start_at | ||
| ) | const |
Definition at line 233 of file BCAnimationCurve.cpp.
References FCurve::bezt, fabs(), FCurve::totvert, and BezTriple::vec.
| int BCAnimationCurve::closest_index_below | ( | const float | sample_frame | ) | const |
Definition at line 247 of file BCAnimationCurve.cpp.
References FCurve::bezt, float(), FCurve::totvert, and BezTriple::vec.
Referenced by get_interpolation_type().
| std::string BCAnimationCurve::get_animation_name | ( | Object * | ob | ) | const |
Definition at line 162 of file BCAnimationCurve.cpp.
References BC_ANIMATION_TYPE_BONE, BC_ANIMATION_TYPE_CAMERA, BC_ANIMATION_TYPE_LIGHT, BC_ANIMATION_TYPE_MATERIAL, BC_ANIMATION_TYPE_OBJECT, BKE_object_material_get(), BLI_str_quoted_substrN(), Object::data, BCCurveKey::get_animation_type(), BCCurveKey::get_subindex(), id_name(), lamp, MEM_freeN, and FCurve::rna_path.
| int BCAnimationCurve::get_channel_index | ( | ) | const |
Definition at line 210 of file BCAnimationCurve.cpp.
References BCCurveKey::get_array_index().
Referenced by operator<().
| std::string BCAnimationCurve::get_channel_posebone | ( | ) | const |
Definition at line 148 of file BCAnimationCurve.cpp.
References bc_string_after(), bc_string_before(), and get_channel_target().
| std::string BCAnimationCurve::get_channel_target | ( | ) | const |
Definition at line 132 of file BCAnimationCurve.cpp.
References bc_startswith(), bc_string_after(), and BCCurveKey::get_path().
Referenced by add_value_from_matrix(), get_channel_posebone(), get_channel_type(), and operator<().
| std::string BCAnimationCurve::get_channel_type | ( | ) | const |
Definition at line 142 of file BCAnimationCurve.cpp.
References bc_string_after(), and get_channel_target().
Referenced by is_rotation_curve(), and is_transform_curve().
| FCurve * BCAnimationCurve::get_edit_fcurve | ( | ) |
Definition at line 294 of file BCAnimationCurve.cpp.
References BCCurveKey::get_array_index(), and BCCurveKey::get_path().
Referenced by add_value(), BCAnimationCurve(), and clean_handles().
| FCurve * BCAnimationCurve::get_fcurve | ( | ) | const |
Definition at line 289 of file BCAnimationCurve.cpp.
| void BCAnimationCurve::get_frames | ( | BCFrames & | frames | ) | const |
Definition at line 512 of file BCAnimationCurve.cpp.
References FCurve::bezt, FCurve::totvert, and BezTriple::vec.
| int BCAnimationCurve::get_interpolation_type | ( | float | sample_frame | ) | const |
Definition at line 280 of file BCAnimationCurve.cpp.
References FCurve::bezt, BEZT_IPO_BEZ, closest_index_below(), and BezTriple::ipo.
| std::string BCAnimationCurve::get_rna_path | ( | ) | const |
Definition at line 220 of file BCAnimationCurve.cpp.
References BCCurveKey::get_path().
| int BCAnimationCurve::get_subindex | ( | ) | const |
Definition at line 215 of file BCAnimationCurve.cpp.
References BCCurveKey::get_subindex().
Definition at line 351 of file BCAnimationCurve.cpp.
References evaluate_fcurve().
Referenced by AnimationExporter::get_modified_export_curve().
| void BCAnimationCurve::get_value_map | ( | BCValueMap & | value_map | ) |
Definition at line 498 of file BCAnimationCurve.cpp.
References FCurve::bezt, FCurve::totvert, and BezTriple::vec.
| void BCAnimationCurve::get_values | ( | BCValues & | values | ) | const |
Definition at line 523 of file BCAnimationCurve.cpp.
References FCurve::bezt, FCurve::totvert, and BezTriple::vec.
| bool BCAnimationCurve::is_animated | ( | ) |
Definition at line 534 of file BCAnimationCurve.cpp.
References fabs().
| bool BCAnimationCurve::is_keyframe | ( | int | frame | ) |
Definition at line 540 of file BCAnimationCurve.cpp.
References FCurve::bezt, FCurve::totvert, and BezTriple::vec.
| bool BCAnimationCurve::is_of_animation_type | ( | BC_animation_type | type | ) | const |
Definition at line 127 of file BCAnimationCurve.cpp.
References BCCurveKey::get_animation_type(), and type.
| bool BCAnimationCurve::is_rotation_curve | ( | ) | const |
Definition at line 344 of file BCAnimationCurve.cpp.
References get_channel_type().
Referenced by is_transform_curve().
| bool BCAnimationCurve::is_transform_curve | ( | ) | const |
Definition at line 338 of file BCAnimationCurve.cpp.
References get_channel_type(), and is_rotation_curve().
| int BCAnimationCurve::sample_count | ( | ) | const |
Definition at line 225 of file BCAnimationCurve.cpp.
References FCurve::totvert.