|
Blender V4.5
|
#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 (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 (int frame) |
| bool | add_value_from_matrix (const BCSample &sample, int frame) |
| void | add_value (float val, int frame) |
| void | clean_handles () |
| int | closest_index_above (float sample_frame, int start_at) const |
| int | closest_index_below (float sample_frame) const |
Definition at line 72 of file BCAnimationCurve.h.
| BCAnimationCurve::BCAnimationCurve | ( | ) |
Definition at line 25 of file BCAnimationCurve.cpp.
References BC_ANIMATION_TYPE_OBJECT.
Referenced by BCAnimationCurve().
| BCAnimationCurve::BCAnimationCurve | ( | const BCAnimationCurve & | other | ) |
Definition at line 32 of file BCAnimationCurve.cpp.
References BCAnimationCurve(), and get_edit_fcurve().
| BCAnimationCurve::BCAnimationCurve | ( | const BCCurveKey & | key, |
| Object * | ob ) |
Definition at line 56 of file BCAnimationCurve.cpp.
| BCAnimationCurve::BCAnimationCurve | ( | BCCurveKey | key, |
| Object * | ob, | ||
| FCurve * | fcu ) |
Definition at line 46 of file BCAnimationCurve.cpp.
| BCAnimationCurve::~BCAnimationCurve | ( | ) |
Definition at line 126 of file BCAnimationCurve.cpp.
| void BCAnimationCurve::add_value | ( | float | val, |
| int | frame ) |
Definition at line 394 of file BCAnimationCurve.cpp.
References FCurve::auto_smoothing, get_edit_fcurve(), blender::animrig::get_keyframe_settings(), blender::animrig::insert_vert_fcurve(), INSERTKEY_NOFLAGS, FCurve::totvert, and U.
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, |
| int | frame ) |
Definition at line 410 of file BCAnimationCurve.cpp.
References add_value(), get_channel_target(), and sample.
| bool BCAnimationCurve::add_value_from_rna | ( | int | frame | ) |
Definition at line 428 of file BCAnimationCurve.cpp.
References add_value(), 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 379 of file BCAnimationCurve.cpp.
References evaluate_fcurve().
| void BCAnimationCurve::clean_handles | ( | ) |
Definition at line 318 of file BCAnimationCurve.cpp.
References BezTriple::f1, get_edit_fcurve(), blender::animrig::get_keyframe_settings(), i, blender::animrig::insert_vert_fcurve(), INSERTKEY_NOFLAGS, MEM_freeN(), BezTriple::vec, x, and y.
Referenced by AnimationExporter::get_modified_export_curve().
| int BCAnimationCurve::closest_index_above | ( | float | sample_frame, |
| int | start_at ) const |
Definition at line 240 of file BCAnimationCurve.cpp.
References fabs().
| int BCAnimationCurve::closest_index_below | ( | float | sample_frame | ) | const |
Definition at line 254 of file BCAnimationCurve.cpp.
Referenced by get_interpolation_type().
| std::string BCAnimationCurve::get_animation_name | ( | Object * | ob | ) | const |
Definition at line 170 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_substr(), Object::data, id_name(), and MAXBONENAME.
Referenced by AnimationExporter::export_curve_animation().
| int BCAnimationCurve::get_channel_index | ( | ) | const |
Definition at line 217 of file BCAnimationCurve.cpp.
Referenced by AnimationExporter::export_curve_animation(), and operator<().
| std::string BCAnimationCurve::get_channel_posebone | ( | ) | const |
Definition at line 156 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 140 of file BCAnimationCurve.cpp.
References bc_startswith(), and bc_string_after().
Referenced by add_value_from_matrix(), AnimationExporter::collada_tangent_from_curve(), AnimationExporter::export_curve_animation(), get_channel_posebone(), get_channel_type(), and operator<().
| std::string BCAnimationCurve::get_channel_type | ( | ) | const |
Definition at line 150 of file BCAnimationCurve.cpp.
References bc_string_after(), and get_channel_target().
Referenced by AnimationExporter::export_curve_animation(), AnimationExporter::export_curve_animation_set(), AnimationExporter::get_collada_sid(), AnimationExporter::get_modified_export_curve(), is_rotation_curve(), and is_transform_curve().
| FCurve * BCAnimationCurve::get_edit_fcurve | ( | ) |
Definition at line 301 of file BCAnimationCurve.cpp.
Referenced by add_value(), BCAnimationCurve(), and clean_handles().
| FCurve * BCAnimationCurve::get_fcurve | ( | ) | const |
Definition at line 296 of file BCAnimationCurve.cpp.
Referenced by AnimationExporter::collada_tangent_from_curve().
| void BCAnimationCurve::get_frames | ( | BCFrames & | frames | ) | const |
Definition at line 519 of file BCAnimationCurve.cpp.
References i.
Referenced by AnimationExporter::collada_interpolation_source(), and AnimationExporter::export_collada_curve_animation().
| int BCAnimationCurve::get_interpolation_type | ( | float | sample_frame | ) | const |
Definition at line 287 of file BCAnimationCurve.cpp.
References BEZT_IPO_BEZ, and closest_index_below().
Referenced by AnimationExporter::collada_interpolation_source().
| std::string BCAnimationCurve::get_rna_path | ( | ) | const |
Definition at line 227 of file BCAnimationCurve.cpp.
| int BCAnimationCurve::get_subindex | ( | ) | const |
Definition at line 222 of file BCAnimationCurve.cpp.
Referenced by AnimationExporter::export_curve_animation().
| float BCAnimationCurve::get_value | ( | float | frame | ) |
Definition at line 360 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 505 of file BCAnimationCurve.cpp.
References i.
Referenced by AnimationExporter::get_modified_export_curve().
| void BCAnimationCurve::get_values | ( | BCValues & | values | ) | const |
Definition at line 530 of file BCAnimationCurve.cpp.
References i.
Referenced by AnimationExporter::export_collada_curve_animation().
| bool BCAnimationCurve::is_animated | ( | ) |
Definition at line 541 of file BCAnimationCurve.cpp.
References fabs().
Referenced by AnimationExporter::export_curve_animation_set().
| bool BCAnimationCurve::is_keyframe | ( | int | frame | ) |
Definition at line 547 of file BCAnimationCurve.cpp.
References i.
| bool BCAnimationCurve::is_of_animation_type | ( | BC_animation_type | type | ) | const |
Definition at line 135 of file BCAnimationCurve.cpp.
Referenced by AnimationExporter::export_curve_animation().
| bool BCAnimationCurve::is_rotation_curve | ( | ) | const |
Definition at line 354 of file BCAnimationCurve.cpp.
References ELEM, and get_channel_type().
Referenced by AnimationExporter::export_collada_curve_animation(), AnimationExporter::get_collada_sid(), and is_transform_curve().
| bool BCAnimationCurve::is_transform_curve | ( | ) | const |
Definition at line 348 of file BCAnimationCurve.cpp.
References get_channel_type(), and is_rotation_curve().
Referenced by AnimationExporter::export_curve_animation_set().
| int BCAnimationCurve::sample_count | ( | ) | const |
Definition at line 232 of file BCAnimationCurve.cpp.
Referenced by AnimationExporter::collada_interpolation_source(), and AnimationExporter::collada_tangent_from_curve().