|
Blender V5.3
|
#include <ANIM_action.hh>
Inherits blender::ActionStripKeyframeData.
Static Public Attributes | |
| static constexpr Strip::Type | TYPE = Strip::Type::Keyframe |
Additional Inherited Members | |
| Public Attributes inherited from blender::ActionStripKeyframeData | |
| struct ActionChannelbag ** | channelbag_array = nullptr |
| int | channelbag_array_num = 0 |
| uint8_t | _pad [4] = {} |
Keyframe animation data for a keyframe strip.
This contains a set of Channelbags, up to one for each slot in the owning action. Each Channelbag contains the keyframe animation data for the slot it corresponds to.
Definition at line 924 of file ANIM_action.hh.
|
default |
References channelbag(), channelbag_for_slot(), channelbag_for_slot_add(), channelbag_for_slot_ensure(), channelbag_remove(), channelbags(), find_channelbag_index(), blender::INSERTKEY_NOFLAGS, keyframe_insert(), slot_data_duplicate(), slot_data_remove(), and StripKeyframeData().
Referenced by channelbag_for_slot(), StripKeyframeData(), and StripKeyframeData().
|
explicit |
| blender::animrig::StripKeyframeData::~StripKeyframeData | ( | ) |
Definition at line 1637 of file animrig/intern/action.cc.
References blender::ActionStripKeyframeData::channelbag_array, blender::ActionStripKeyframeData::channelbag_array_num, channelbag_for_slot(), and channelbags().
| Channelbag * blender::animrig::StripKeyframeData::channelbag | ( | int64_t | index | ) |
Definition at line 1660 of file animrig/intern/action.cc.
References blender::ActionStripKeyframeData::channelbag_array.
| const Channelbag * blender::animrig::StripKeyframeData::channelbag | ( | int64_t | index | ) | const |
Definition at line 1656 of file animrig/intern/action.cc.
References blender::ActionStripKeyframeData::channelbag_array.
Referenced by channelbag_for_slot_ensure(), find_channelbag_index(), blender::ed::animation::KeyframeCopyBuffer::is_single_fcurve(), blender::paste_animedit_keys(), slot_data_remove(), StripKeyframeData(), StripKeyframeData(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), and blender::animrig::tests::TEST_F().
| Channelbag * blender::animrig::StripKeyframeData::channelbag_for_slot | ( | const Slot & | slot | ) |
Definition at line 1692 of file animrig/intern/action.cc.
References channelbag_for_slot(), and blender::ActionSlot::handle.
| const Channelbag * blender::animrig::StripKeyframeData::channelbag_for_slot | ( | const Slot & | slot | ) | const |
Find the channelbag for the given slot.
Definition at line 1688 of file animrig/intern/action.cc.
References channelbag_for_slot(), and blender::ActionSlot::handle.
Referenced by blender::deg::DepsgraphRelationBuilder::build_animdata_action_targets(), blender::animrig::channelbag_for_action_slot(), channelbag_for_slot(), channelbag_for_slot(), blender::ed::animation::KeyframeCopyBuffer::channelbag_for_slot(), channelbag_for_slot_add(), channelbag_for_slot_ensure(), blender::animrig::channelbags_for_action_slot(), blender::animrig::evaluate_keyframe_data(), blender::animrig::fcurve_find_by_rna_path(), blender::animrig::tests::KeyframingTest::get_channelbag_in_first_layer(), keyframe_insert(), blender::animrig::move_slot(), slot_data_duplicate(), slot_data_remove(), StripKeyframeData(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), and ~StripKeyframeData().
| Channelbag * blender::animrig::StripKeyframeData::channelbag_for_slot | ( | slot_handle_t | slot_handle | ) |
Definition at line 1682 of file animrig/intern/action.cc.
References StripKeyframeData().
| const Channelbag * blender::animrig::StripKeyframeData::channelbag_for_slot | ( | slot_handle_t | slot_handle | ) | const |
Definition at line 1664 of file animrig/intern/action.cc.
References channelbags().
| Channelbag & blender::animrig::StripKeyframeData::channelbag_for_slot_add | ( | const Slot & | slot | ) |
Add a channelbag for the given slot.
Should only be called when there is no Channelbag for this slot yet.
Definition at line 1697 of file animrig/intern/action.cc.
References channelbag_for_slot_add(), and blender::ActionSlot::handle.
Referenced by channelbag_for_slot_add(), channelbag_for_slot_ensure(), and StripKeyframeData().
| Channelbag & blender::animrig::StripKeyframeData::channelbag_for_slot_add | ( | slot_handle_t | slot_handle | ) |
Definition at line 1702 of file animrig/intern/action.cc.
References BLI_assert_msg, blender::ActionStripKeyframeData::channelbag_array, blender::ActionStripKeyframeData::channelbag_array_num, channelbag_for_slot(), blender::animrig::grow_array_and_append(), blender::ActionChannelbag::slot_handle, and blender::animrig::Slot::unassigned.
| Channelbag & blender::animrig::StripKeyframeData::channelbag_for_slot_ensure | ( | const Slot & | slot | ) |
Find the channelbag for the given slot, or if none exists, create it.
Definition at line 1717 of file animrig/intern/action.cc.
References channelbag_for_slot_ensure(), and blender::ActionSlot::handle.
Referenced by blender::animrig::action_channelbag_ensure(), blender::animrig::action_fcurve_attach(), blender::animrig::tests::add_fcurve_to_action(), channelbag_for_slot_ensure(), blender::io::fbx::import_animations(), keyframe_insert(), blender::ed::animrig::replace_pose_key(), StripKeyframeData(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), and blender::animrig::tests::TEST_F().
| Channelbag & blender::animrig::StripKeyframeData::channelbag_for_slot_ensure | ( | slot_handle_t | slot_handle | ) |
Definition at line 1722 of file animrig/intern/action.cc.
References channelbag(), channelbag_for_slot(), and channelbag_for_slot_add().
| bool blender::animrig::StripKeyframeData::channelbag_remove | ( | Channelbag & | channelbag_to_remove | ) |
Remove the given channelbag from this strip data.
After this call the reference is no longer valid, as the memory will have been freed.
Definition at line 1737 of file animrig/intern/action.cc.
References blender::ActionStripKeyframeData::channelbag_array, blender::ActionStripKeyframeData::channelbag_array_num, blender::animrig::channelbag_ptr_destructor(), find_channelbag_index(), and blender::dna::array::remove_index().
Referenced by slot_data_remove(), and StripKeyframeData().
| Span< Channelbag * > blender::animrig::StripKeyframeData::channelbags | ( | ) |
Definition at line 1651 of file animrig/intern/action.cc.
References blender::ActionStripKeyframeData::channelbag_array, and blender::ActionStripKeyframeData::channelbag_array_num.
| Span< const Channelbag * > blender::animrig::StripKeyframeData::channelbags | ( | ) | const |
Definition at line 1646 of file animrig/intern/action.cc.
References blender::ActionStripKeyframeData::channelbag_array, and blender::ActionStripKeyframeData::channelbag_array_num.
Referenced by blender::animrig::action_fcurve_detach(), blender::animrig::legacy::channel_groups_all(), channelbag_for_slot(), blender::ed::animation::KeyframeCopyBuffer::debug_print(), blender::animrig::fcurve_find_in_action(), blender::animrig::foreach_fcurve_in_action(), blender::animrig::foreach_fcurve_in_action_slot(), blender::animrig::foreach_fcurve_in_action_slot_editable(), blender::ed::animation::KeyframeCopyBuffer::is_empty(), blender::ed::animation::KeyframeCopyBuffer::is_single_fcurve(), blender::ed::animation::KeyframeCopyBuffer::num_slots(), blender::ed::animation::pastebuf_find_matching_copybuf_item(), StripKeyframeData(), StripKeyframeData(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::bke::write_strip_keyframe_data(), and ~StripKeyframeData().
| int64_t blender::animrig::StripKeyframeData::find_channelbag_index | ( | const Channelbag & | channelbag | ) | const |
Return the index of channelbag in this strip data's channelbag array, or -1 if channelbag doesn't exist in this strip data.
Definition at line 1673 of file animrig/intern/action.cc.
References channelbag(), and blender::ActionStripKeyframeData::channelbag_array_num.
Referenced by channelbag_remove(), blender::animrig::move_slot(), and StripKeyframeData().
| SingleKeyingResult blender::animrig::StripKeyframeData::keyframe_insert | ( | Main * | bmain, |
| const Slot & | slot, | ||
| const FCurveDescriptor & | fcurve_descriptor, | ||
| float2 | time_value, | ||
| const KeyframeSettings & | settings, | ||
| eInsertKeyFlags | insert_key_flags = INSERTKEY_NOFLAGS, | ||
| std::optional< float2 > | cycle_range = std::nullopt ) |
Definition at line 2114 of file animrig/intern/action.cc.
References blender::animrig::FCurveDescriptor::array_index, blender::BKE_fcurve_is_keyframable(), blender::StringRefNull::c_str(), blender::animrig::CANNOT_CREATE_FCURVE, channelbag_for_slot(), channelbag_for_slot_ensure(), CLOG_WARN, blender::animrig::cyclic_keying_ensure_cycle_range_exists(), blender::animrig::cyclic_keying_ensure_modifier(), blender::animrig::Channelbag::fcurve_ensure(), blender::animrig::Channelbag::fcurve_find(), blender::animrig::FCURVE_NOT_KEYFRAMEABLE, blender::ActionSlot::identifier, blender::animrig::insert_vert_fcurve(), blender::animrig::key_insertion_may_create_fcurve(), blender::LOG, blender::animrig::FCurveDescriptor::prop_type, blender::animrig::FCurveDescriptor::rna_path, blender::animrig::SUCCESS, and blender::animrig::update_autoflags_fcurve_direct().
Referenced by blender::ed::animrig::extract_pose(), StripKeyframeData(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), blender::animrig::tests::TEST_F(), and blender::animrig::tests::TEST_F().
| void blender::animrig::StripKeyframeData::slot_data_duplicate | ( | slot_handle_t | source_slot_handle, |
| slot_handle_t | target_slot_handle ) |
Clone the channelbag belonging to the source slot, and assign it to the target slot.
This is typically only called from duplicate_slot().
Definition at line 1762 of file animrig/intern/action.cc.
References blender::BLI_assert(), blender::ActionStripKeyframeData::channelbag_array, blender::ActionStripKeyframeData::channelbag_array_num, channelbag_for_slot(), blender::animrig::grow_array_and_append(), and blender::ActionChannelbag::slot_handle.
Referenced by blender::animrig::duplicate_slot(), and StripKeyframeData().
| void blender::animrig::StripKeyframeData::slot_data_remove | ( | slot_handle_t | slot_handle | ) |
Remove all strip data for the given slot.
Definition at line 1753 of file animrig/intern/action.cc.
References channelbag(), channelbag_for_slot(), and channelbag_remove().
Referenced by StripKeyframeData().
|
staticconstexpr |
Definition at line 927 of file ANIM_action.hh.
Referenced by blender::animrig::Strip::data(), and blender::animrig::Strip::data().