|
Blender V5.3
|
Classes | |
| class | KeyListTest |
| class | KeylistSummaryTest |
Typedefs | |
| using | KeylistFindFunction = std::function<const ActKeyColumn *(const AnimKeylist *, float)> |
Functions | |
| static void | build_fcurve (FCurve &fcurve) |
| static AnimKeylist * | create_test_keylist () |
| static void | assert_act_key_column (const ActKeyColumn *column, const std::optional< float > expected_frame) |
| static void | check_keylist_find_range (const AnimKeylist *keylist, KeylistFindFunction keylist_find_func, const float frame_from, const float frame_to, const std::optional< float > expected_frame) |
| static void | check_keylist_find_next_range (const AnimKeylist *keylist, const float frame_from, const float frame_to, const std::optional< float > expected_frame) |
| TEST_F (KeyListTest, find_next) | |
| static void | check_keylist_find_prev_range (const AnimKeylist *keylist, const float frame_from, const float frame_to, const std::optional< float > expected_frame) |
| TEST_F (KeyListTest, find_prev) | |
| static void | check_keylist_find_exact_range (const AnimKeylist *keylist, const float frame_from, const float frame_to, const std::optional< float > expected_frame) |
| TEST_F (KeyListTest, find_exact) | |
| TEST_F (KeyListTest, find_closest) | |
| TEST_F (KeylistSummaryTest, slot_summary_simple) | |
| TEST_F (KeylistSummaryTest, slot_summary_bone_selection) | |
Variables | |
| const float | KEYLIST_NEAR_ERROR = 0.1 |
| const float | FRAME_STEP = 0.005 |
| using blender::editor::animation::tests::KeylistFindFunction = std::function<const ActKeyColumn *(const AnimKeylist *, float)> |
Definition at line 77 of file keyframes_keylist_test.cc.
|
static |
Definition at line 65 of file keyframes_keylist_test.cc.
References assert_act_key_column(), blender::ActKeyColumn::cfra, blender::EXPECT_EQ(), EXPECT_NEAR, and KEYLIST_NEAR_ERROR.
Referenced by assert_act_key_column(), and check_keylist_find_range().
|
static |
Definition at line 40 of file keyframes_keylist_test.cc.
References blender::FCurve::bezt, build_fcurve(), blender::MEM_new_array_zeroed(), blender::FCurve::totvert, and blender::BezTriple::vec.
Referenced by build_fcurve(), and create_test_keylist().
|
static |
Definition at line 134 of file keyframes_keylist_test.cc.
References check_keylist_find_exact_range(), check_keylist_find_range(), and blender::ED_keylist_find_exact().
Referenced by check_keylist_find_exact_range(), and TEST_F().
|
static |
Definition at line 92 of file keyframes_keylist_test.cc.
References check_keylist_find_next_range(), check_keylist_find_range(), and blender::ED_keylist_find_next().
Referenced by check_keylist_find_next_range(), and TEST_F().
|
static |
Definition at line 114 of file keyframes_keylist_test.cc.
References check_keylist_find_prev_range(), check_keylist_find_range(), and blender::ED_keylist_find_prev().
Referenced by check_keylist_find_prev_range(), and TEST_F().
|
static |
Definition at line 79 of file keyframes_keylist_test.cc.
References assert_act_key_column(), check_keylist_find_range(), and FRAME_STEP.
Referenced by check_keylist_find_exact_range(), check_keylist_find_next_range(), check_keylist_find_prev_range(), and check_keylist_find_range().
|
static |
Definition at line 52 of file keyframes_keylist_test.cc.
References blender::BKE_fcurve_create(), blender::BKE_fcurve_free(), build_fcurve(), create_test_keylist(), blender::ED_keylist_create(), blender::ED_keylist_prepare_for_direct_access(), blender::fcurve_to_keylist(), and FLT_MAX.
Referenced by create_test_keylist(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| blender::editor::animation::tests::TEST_F | ( | KeylistSummaryTest | , |
| slot_summary_bone_selection | ) |
Definition at line 309 of file keyframes_keylist_test.cc.
References blender::animrig::action_channelbag_ensure(), blender::action_slot_summary_to_keylist(), blender::ADS_FILTER_ONLYSEL, blender::animrig::assign_action_and_slot(), blender::BKE_pose_channel_find_name(), blender::ED_keylist_create(), blender::ED_keylist_find_exact(), blender::ED_keylist_free(), blender::ED_keylist_prepare_for_direct_access(), blender::EXPECT_EQ(), EXPECT_NE, blender::animrig::Channelbag::fcurve_ensure(), blender::bPoseChannel::flag, blender::ActionSlot::handle, blender::animrig::insert_vert_fcurve(), blender::animrig::OK, blender::POSE_SELECTED, blender::animrig::SUCCESS, TEST_F(), and blender::ActKeyColumn::totkey.
| blender::editor::animation::tests::TEST_F | ( | KeylistSummaryTest | , |
| slot_summary_simple | ) |
Definition at line 253 of file keyframes_keylist_test.cc.
References blender::animrig::action_channelbag_ensure(), blender::action_slot_summary_to_keylist(), blender::animrig::assign_action_and_slot(), blender::ED_keylist_create(), blender::ED_keylist_find_exact(), blender::ED_keylist_free(), blender::ED_keylist_prepare_for_direct_access(), blender::EXPECT_EQ(), EXPECT_NE, blender::animrig::Channelbag::fcurve_ensure(), blender::ActionSlot::handle, blender::animrig::insert_vert_fcurve(), blender::animrig::OK, blender::animrig::SUCCESS, TEST_F(), and blender::ActKeyColumn::totkey.
| blender::editor::animation::tests::TEST_F | ( | KeyListTest | , |
| find_closest | ) |
Definition at line 157 of file keyframes_keylist_test.cc.
References closest(), create_test_keylist(), blender::ED_keylist_find_closest(), blender::ED_keylist_free(), blender::EXPECT_EQ(), and TEST_F().
| blender::editor::animation::tests::TEST_F | ( | KeyListTest | , |
| find_exact | ) |
Definition at line 142 of file keyframes_keylist_test.cc.
References check_keylist_find_exact_range(), create_test_keylist(), blender::ED_keylist_free(), and TEST_F().
| blender::editor::animation::tests::TEST_F | ( | KeyListTest | , |
| find_next | ) |
Definition at line 102 of file keyframes_keylist_test.cc.
References check_keylist_find_next_range(), create_test_keylist(), blender::ED_keylist_free(), and TEST_F().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| blender::editor::animation::tests::TEST_F | ( | KeyListTest | , |
| find_prev | ) |
Definition at line 122 of file keyframes_keylist_test.cc.
References check_keylist_find_prev_range(), create_test_keylist(), blender::ED_keylist_free(), and TEST_F().
| const float blender::editor::animation::tests::FRAME_STEP = 0.005 |
Definition at line 37 of file keyframes_keylist_test.cc.
Referenced by check_keylist_find_range().
| const float blender::editor::animation::tests::KEYLIST_NEAR_ERROR = 0.1 |
Definition at line 36 of file keyframes_keylist_test.cc.
Referenced by assert_act_key_column().