|
Blender V4.3
|
Inherits testing::Test.
Public Member Functions | |
| void | SetUp () override |
| void | TearDown () override |
| std::optional< float > | evaluate_single_property (const StringRefNull rna_path, const int array_index, const float eval_time) |
| testing::AssertionResult | test_evaluate_layer (const StringRefNull rna_path, const int array_index, const float2 eval_time__expect_value) |
| testing::AssertionResult | test_evaluate_layer_no_result (const StringRefNull rna_path, const int array_index, const float eval_time) |
Static Public Member Functions | |
| static void | SetUpTestSuite () |
| static void | TearDownTestSuite () |
Protected Attributes | |
| Main * | bmain |
| Action * | action |
| Object * | cube |
| Slot * | slot |
| Layer * | layer |
| KeyframeSettings | settings = get_keyframe_settings(false) |
| AnimationEvalContext | anim_eval_context = {} |
| PointerRNA | cube_rna_ptr |
Definition at line 33 of file evaluation_test.cc.
|
inline |
Evaluate the layer, and return result for the given property.
Definition at line 84 of file evaluation_test.cc.
References action, anim_eval_context, cube_rna_ptr, AnimationEvalContext::eval_time, blender::animrig::internal::evaluate_layer(), ActionSlot::handle, slot, and blender::animrig::AnimatedProperty::value.
Referenced by test_evaluate_layer(), and test_evaluate_layer_no_result().
|
inlineoverride |
Definition at line 60 of file evaluation_test.cc.
References action, blender::animrig::assign_action_and_slot(), BEZT_IPO_LIN, BKE_id_new(), BKE_main_new(), BKE_object_add_only_object(), bmain, cube, cube_rna_ptr, Object::id, ID_AC, blender::animrig::Action::layer_add(), OB_EMPTY, blender::animrig::OK, RNA_pointer_create(), slot, and blender::animrig::Action::slot_add().
|
inlinestatic |
Definition at line 46 of file evaluation_test.cc.
References BKE_idtype_init(), and CLG_init().
|
inlineoverride |
Definition at line 78 of file evaluation_test.cc.
References BKE_main_free(), and bmain.
|
inlinestatic |
Definition at line 55 of file evaluation_test.cc.
References CLG_exit().
|
inline |
Evaluate the layer, and test that the given property evaluates to the expected value.
Definition at line 100 of file evaluation_test.cc.
References evaluate_single_property(), and ulp_diff_ff().
|
inline |
Evaluate the layer, and test that the given property is not part of the result.
Definition at line 129 of file evaluation_test.cc.
References evaluate_single_property().
|
protected |
Definition at line 36 of file evaluation_test.cc.
Referenced by evaluate_single_property(), and SetUp().
|
protected |
Definition at line 42 of file evaluation_test.cc.
Referenced by evaluate_single_property().
|
protected |
Definition at line 35 of file evaluation_test.cc.
Referenced by SetUp(), and TearDown().
|
protected |
Definition at line 37 of file evaluation_test.cc.
Referenced by SetUp().
|
protected |
Definition at line 43 of file evaluation_test.cc.
Referenced by evaluate_single_property(), and SetUp().
|
protected |
Definition at line 39 of file evaluation_test.cc.
|
protected |
Definition at line 41 of file evaluation_test.cc.
|
protected |
Definition at line 38 of file evaluation_test.cc.
Referenced by evaluate_single_property(), and SetUp().