|
Blender V4.3
|
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 (keylist, 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 (keylist, 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 (keylist, find_exact) | |
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 65 of file keyframes_keylist_test.cc.
|
static |
Definition at line 53 of file keyframes_keylist_test.cc.
References ActKeyColumn::cfra, EXPECT_EQ(), and KEYLIST_NEAR_ERROR.
Referenced by check_keylist_find_range().
|
static |
Definition at line 27 of file keyframes_keylist_test.cc.
References FCurve::bezt, MEM_callocN, FCurve::totvert, and BezTriple::vec.
Referenced by create_test_keylist().
|
static |
Definition at line 120 of file keyframes_keylist_test.cc.
References check_keylist_find_range(), and ED_keylist_find_exact().
Referenced by TEST().
|
static |
Definition at line 80 of file keyframes_keylist_test.cc.
References check_keylist_find_range(), and ED_keylist_find_next().
Referenced by TEST().
|
static |
Definition at line 100 of file keyframes_keylist_test.cc.
References check_keylist_find_range(), and ED_keylist_find_prev().
Referenced by TEST().
|
static |
Definition at line 67 of file keyframes_keylist_test.cc.
References assert_act_key_column(), and FRAME_STEP.
Referenced by check_keylist_find_exact_range(), check_keylist_find_next_range(), and check_keylist_find_prev_range().
|
static |
Definition at line 40 of file keyframes_keylist_test.cc.
References BKE_fcurve_create(), BKE_fcurve_free(), build_fcurve(), ED_keylist_create(), ED_keylist_prepare_for_direct_access(), fcurve_to_keylist(), and FLT_MAX.
| blender::editor::animation::tests::TEST | ( | keylist | , |
| find_exact | ) |
Definition at line 128 of file keyframes_keylist_test.cc.
References check_keylist_find_exact_range(), create_test_keylist(), and ED_keylist_free().
| blender::editor::animation::tests::TEST | ( | keylist | , |
| find_next | ) |
Definition at line 88 of file keyframes_keylist_test.cc.
References check_keylist_find_next_range(), create_test_keylist(), and ED_keylist_free().
| blender::editor::animation::tests::TEST | ( | keylist | , |
| find_prev | ) |
Definition at line 108 of file keyframes_keylist_test.cc.
References check_keylist_find_prev_range(), create_test_keylist(), and ED_keylist_free().
| const float blender::editor::animation::tests::FRAME_STEP = 0.005 |
Definition at line 24 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 23 of file keyframes_keylist_test.cc.
Referenced by assert_act_key_column().