|
Blender
V2.93
|
Classes | |
| struct | LatticeDeformTestContext |
Functions | |
| TEST (mat3_vec_to_roll, UnitMatrix) | |
| TEST (mat3_vec_to_roll, Rotationmatrix) | |
| TEST (vec_roll_to_mat3_normalized, Rotationmatrix) | |
| TEST (evaluate_fcurve, EmptyFCurve) | |
| TEST (evaluate_fcurve, OnKeys) | |
| TEST (evaluate_fcurve, InterpolationConstant) | |
| TEST (evaluate_fcurve, InterpolationLinear) | |
| TEST (evaluate_fcurve, InterpolationBezier) | |
| TEST (evaluate_fcurve, InterpolationBounce) | |
| TEST (evaluate_fcurve, ExtrapolationLinearKeys) | |
| TEST (evaluate_fcurve, ExtrapolationBezierKeys) | |
| TEST (fcurve_subdivide, BKE_fcurve_bezt_subdivide_handles) | |
| TEST (fcurve_active_keyframe, ActiveKeyframe) | |
| TEST (BKE_fcurve, BKE_fcurve_keyframe_move_value_with_handles) | |
| static void | test_lattice_deform_init (LatticeDeformTestContext *ctx, RandomNumberGenerator *rng, int32_t num_items) |
| static void | test_lattice_deform (LatticeDeformTestContext *ctx, int32_t num_items) |
| static void | test_lattice_deform_free (LatticeDeformTestContext *ctx) |
| TEST (lattice_deform_performance, performance_no_dvert_1) | |
| TEST (lattice_deform_performance, performance_no_dvert_1000) | |
| TEST (lattice_deform_performance, performance_no_dvert_10000) | |
| TEST (lattice_deform_performance, performance_no_dvert_100000) | |
| TEST (lattice_deform_performance, performance_no_dvert_1000000) | |
| TEST (lattice_deform_performance, performance_no_dvert_10000000) | |
| TEST (view_layer, aov_unique_names) | |
| static void | test_render_pass_conflict (Scene *scene, RenderEngine *engine, ViewLayer *view_layer, ViewLayerAOV *aov, const char *render_pass_name, const char *rna_prop_name) |
| TEST (view_layer, aov_conflict) | |
Variables | |
| static const float | FLOAT_EPSILON = 1.2e-7 |
| static const float | EPSILON = 1e-7f |
| blender::bke::tests::TEST | ( | BKE_fcurve | , |
| BKE_fcurve_keyframe_move_value_with_handles | |||
| ) |
Definition at line 334 of file fcurve_test.cc.
References FCurve::bezt, BEZT_KEYTYPE_KEYFRAME, BKE_fcurve_create(), BKE_fcurve_free(), BKE_fcurve_keyframe_move_value_with_handles(), insert_vert_fcurve(), INSERTKEY_NO_USERPREF, and BezTriple::vec.
| blender::bke::tests::TEST | ( | evaluate_fcurve | , |
| EmptyFCurve | |||
| ) |
Definition at line 34 of file fcurve_test.cc.
References BKE_fcurve_create(), BKE_fcurve_free(), evaluate_fcurve(), and EXPECT_EQ().
| blender::bke::tests::TEST | ( | evaluate_fcurve | , |
| ExtrapolationBezierKeys | |||
| ) |
Definition at line 179 of file fcurve_test.cc.
References FCurve::bezt, BEZT_KEYTYPE_KEYFRAME, BKE_fcurve_create(), BKE_fcurve_free(), EPSILON, evaluate_fcurve(), EXPECT_EQ(), FCurve::extend, FCURVE_EXTRAPOLATE_CONSTANT, FCURVE_EXTRAPOLATE_LINEAR, insert_vert_fcurve(), INSERTKEY_NO_USERPREF, and BezTriple::vec.
| blender::bke::tests::TEST | ( | evaluate_fcurve | , |
| ExtrapolationLinearKeys | |||
| ) |
Definition at line 150 of file fcurve_test.cc.
References FCurve::bezt, BEZT_IPO_LIN, BEZT_KEYTYPE_KEYFRAME, BKE_fcurve_create(), BKE_fcurve_free(), EPSILON, evaluate_fcurve(), EXPECT_EQ(), FCurve::extend, FCURVE_EXTRAPOLATE_CONSTANT, FCURVE_EXTRAPOLATE_LINEAR, insert_vert_fcurve(), INSERTKEY_NO_USERPREF, and BezTriple::ipo.
| blender::bke::tests::TEST | ( | evaluate_fcurve | , |
| InterpolationBezier | |||
| ) |
Definition at line 97 of file fcurve_test.cc.
References FCurve::bezt, BEZT_IPO_BEZ, BEZT_KEYTYPE_KEYFRAME, BKE_fcurve_create(), BKE_fcurve_free(), EPSILON, evaluate_fcurve(), EXPECT_EQ(), insert_vert_fcurve(), INSERTKEY_NO_USERPREF, BezTriple::ipo, and BezTriple::vec.
| blender::bke::tests::TEST | ( | evaluate_fcurve | , |
| InterpolationBounce | |||
| ) |
Definition at line 130 of file fcurve_test.cc.
References FCurve::bezt, BEZT_IPO_BOUNCE, BEZT_IPO_EASE_AUTO, BEZT_IPO_EASE_IN, BEZT_KEYTYPE_KEYFRAME, BKE_fcurve_create(), BKE_fcurve_free(), BezTriple::easing, EPSILON, evaluate_fcurve(), EXPECT_EQ(), insert_vert_fcurve(), INSERTKEY_NO_USERPREF, and BezTriple::ipo.
| blender::bke::tests::TEST | ( | evaluate_fcurve | , |
| InterpolationConstant | |||
| ) |
Definition at line 64 of file fcurve_test.cc.
References FCurve::bezt, BEZT_IPO_CONST, BEZT_KEYTYPE_KEYFRAME, BKE_fcurve_create(), BKE_fcurve_free(), EPSILON, evaluate_fcurve(), EXPECT_EQ(), insert_vert_fcurve(), INSERTKEY_NO_USERPREF, and BezTriple::ipo.
| blender::bke::tests::TEST | ( | evaluate_fcurve | , |
| InterpolationLinear | |||
| ) |
Definition at line 80 of file fcurve_test.cc.
References FCurve::bezt, BEZT_IPO_LIN, BEZT_KEYTYPE_KEYFRAME, BKE_fcurve_create(), BKE_fcurve_free(), EPSILON, evaluate_fcurve(), EXPECT_EQ(), insert_vert_fcurve(), INSERTKEY_NO_USERPREF, and BezTriple::ipo.
| blender::bke::tests::TEST | ( | evaluate_fcurve | , |
| OnKeys | |||
| ) |
Definition at line 41 of file fcurve_test.cc.
References BEZT_KEYTYPE_KEYFRAME, BKE_fcurve_create(), BKE_fcurve_free(), EPSILON, evaluate_fcurve(), insert_vert_fcurve(), and INSERTKEY_NO_USERPREF.
| blender::bke::tests::TEST | ( | fcurve_active_keyframe | , |
| ActiveKeyframe | |||
| ) |
Definition at line 278 of file fcurve_test.cc.
References FCurve::active_keyframe_index, FCurve::bezt, BEZT_KEYTYPE_KEYFRAME, BKE_fcurve_active_keyframe_index(), BKE_fcurve_active_keyframe_set(), BKE_fcurve_create(), BKE_fcurve_free(), EXPECT_EQ(), BezTriple::f1, BezTriple::f2, BezTriple::f3, FCURVE_ACTIVE_KEYFRAME_NONE, insert_vert_fcurve(), INSERTKEY_NO_USERPREF, SELECT, and FCurve::totvert.
| blender::bke::tests::TEST | ( | fcurve_subdivide | , |
| BKE_fcurve_bezt_subdivide_handles | |||
| ) |
Definition at line 215 of file fcurve_test.cc.
References FCurve::bezt, BEZT_IPO_BEZ, BEZT_KEYTYPE_KEYFRAME, BKE_fcurve_bezt_subdivide_handles(), BKE_fcurve_create(), BKE_fcurve_free(), EXPECT_EQ(), BezTriple::h1, BezTriple::h2, HD_AUTO_ANIM, HD_FREE, insert_vert_fcurve(), INSERTKEY_NO_USERPREF, BezTriple::ipo, BezTriple::vec, x, and y.
| blender::bke::tests::TEST | ( | lattice_deform_performance | , |
| performance_no_dvert_1 | |||
| ) |
Definition at line 84 of file lattice_deform_test.cc.
References test_lattice_deform(), test_lattice_deform_free(), and test_lattice_deform_init().
| blender::bke::tests::TEST | ( | lattice_deform_performance | , |
| performance_no_dvert_1000 | |||
| ) |
Definition at line 93 of file lattice_deform_test.cc.
References test_lattice_deform(), test_lattice_deform_free(), and test_lattice_deform_init().
| blender::bke::tests::TEST | ( | lattice_deform_performance | , |
| performance_no_dvert_10000 | |||
| ) |
Definition at line 102 of file lattice_deform_test.cc.
References test_lattice_deform(), test_lattice_deform_free(), and test_lattice_deform_init().
| blender::bke::tests::TEST | ( | lattice_deform_performance | , |
| performance_no_dvert_100000 | |||
| ) |
Definition at line 111 of file lattice_deform_test.cc.
References test_lattice_deform(), test_lattice_deform_free(), and test_lattice_deform_init().
| blender::bke::tests::TEST | ( | lattice_deform_performance | , |
| performance_no_dvert_1000000 | |||
| ) |
Definition at line 120 of file lattice_deform_test.cc.
References test_lattice_deform(), test_lattice_deform_free(), and test_lattice_deform_init().
| blender::bke::tests::TEST | ( | lattice_deform_performance | , |
| performance_no_dvert_10000000 | |||
| ) |
Definition at line 129 of file lattice_deform_test.cc.
References test_lattice_deform(), test_lattice_deform_free(), and test_lattice_deform_init().
| blender::bke::tests::TEST | ( | mat3_vec_to_roll | , |
| Rotationmatrix | |||
| ) |
Definition at line 60 of file armature_test.cc.
References eul_to_mat3(), FLOAT_EPSILON, and mat3_vec_to_roll().
| blender::bke::tests::TEST | ( | mat3_vec_to_roll | , |
| UnitMatrix | |||
| ) |
Definition at line 30 of file armature_test.cc.
References FLOAT_EPSILON, mat3_vec_to_roll(), normalize_v3(), and unit_m3().
| blender::bke::tests::TEST | ( | vec_roll_to_mat3_normalized | , |
| Rotationmatrix | |||
| ) |
Definition at line 93 of file armature_test.cc.
References e, normalize_v3_v3(), unit_m3(), and vec_roll_to_mat3_normalized().
| blender::bke::tests::TEST | ( | view_layer | , |
| aov_conflict | |||
| ) |
Definition at line 132 of file layer_test.cc.
References ViewLayer::active_aov, AOV_CONFLICT, BKE_appdir_exit(), BKE_appdir_init(), BKE_view_layer_add_aov(), BKE_view_layer_has_valid_aov(), BKE_view_layer_verify_aov(), CLG_exit(), CLG_init(), RenderData::engine, EXPECT_EQ(), ListBase::first, ViewLayerAOV::flag, IDTypeInfo::free_data, Scene::id, IDType_ID_SCE, IMB_exit(), IMB_init(), IDTypeInfo::init_data, Scene::r, RE_engine_create(), RE_engine_free(), RE_engines_exit(), RE_engines_find(), RE_engines_init(), scene, test_render_pass_conflict(), and Scene::view_layers.
| blender::bke::tests::TEST | ( | view_layer | , |
| aov_unique_names | |||
| ) |
Definition at line 38 of file layer_test.cc.
References ViewLayer::active_aov, AOV_CONFLICT, BKE_appdir_exit(), BKE_appdir_init(), BKE_idtype_init(), BKE_view_layer_add_aov(), BKE_view_layer_has_valid_aov(), BKE_view_layer_remove_aov(), BKE_view_layer_verify_aov(), BLI_strncpy(), CLG_exit(), CLG_init(), RenderData::engine, EXPECT_EQ(), ListBase::first, ViewLayerAOV::flag, IDTypeInfo::free_data, Scene::id, IDType_ID_SCE, IMB_exit(), IMB_init(), IDTypeInfo::init_data, MAX_NAME, ViewLayerAOV::name, Scene::r, RE_engine_create(), RE_engine_free(), RE_engines_exit(), RE_engines_find(), RE_engines_init(), scene, STREQ, and Scene::view_layers.
|
static |
Definition at line 66 of file lattice_deform_test.cc.
References BKE_lattice_deform_data_eval_co(), blender::bke::tests::LatticeDeformTestContext::coords, and blender::bke::tests::LatticeDeformTestContext::ldd.
Referenced by TEST().
|
static |
Definition at line 74 of file lattice_deform_test.cc.
References BKE_lattice_deform_data_destroy(), blender::bke::tests::LatticeDeformTestContext::coords, IDTypeInfo::free_data, Lattice::id, Mesh::id, Object::id, IDType_ID_LT, IDType_ID_ME, IDType_ID_OB, blender::bke::tests::LatticeDeformTestContext::lattice, blender::bke::tests::LatticeDeformTestContext::ldd, MEM_freeN, blender::bke::tests::LatticeDeformTestContext::mesh, blender::bke::tests::LatticeDeformTestContext::ob_lattice, and blender::bke::tests::LatticeDeformTestContext::ob_mesh.
Referenced by TEST().
|
static |
Definition at line 42 of file lattice_deform_test.cc.
References BKE_lattice_deform_data_create(), blender::bke::tests::LatticeDeformTestContext::coords, Object::data, float(), blender::RandomNumberGenerator::get_float(), Lattice::id, Mesh::id, Object::id, IDType_ID_LT, IDType_ID_ME, IDType_ID_OB, IDTypeInfo::init_data, blender::bke::tests::LatticeDeformTestContext::lattice, blender::bke::tests::LatticeDeformTestContext::ldd, MEM_malloc_arrayN, blender::bke::tests::LatticeDeformTestContext::mesh, ID::name, blender::bke::tests::LatticeDeformTestContext::ob_lattice, OB_LATTICE, blender::bke::tests::LatticeDeformTestContext::ob_mesh, OB_MESH, and Object::type.
Referenced by TEST().
|
static |
Definition at line 99 of file layer_test.cc.
References AOV_CONFLICT, BKE_view_layer_has_valid_aov(), BKE_view_layer_verify_aov(), BLI_strncpy(), ViewLayerAOV::flag, Scene::id, MAX_NAME, ViewLayerAOV::name, ptr, RNA_boolean_set(), RNA_pointer_create(), RNA_ViewLayer, scene, and STREQ.
Referenced by TEST().
Definition at line 32 of file fcurve_test.cc.
Referenced by TEST().
Definition at line 28 of file armature_test.cc.
Referenced by TEST().