/foundation/arkui/ui_lite/test/unittest/animator/ |
H A D | interpolation_unit_test.cpp | 44 float ret = Interpolation::GetBezierInterpolation(0.2f, U1, U2, U3, U4); // 0.2f:current change rate; in HWTEST_F() 46 ret = Interpolation::GetBezierInterpolation(0.5f, U1, U2, U3, U4); // 0.5f:current change rate; in HWTEST_F() 48 ret = Interpolation::GetBezierInterpolation(0.7f, U1, U2, U3, U4); // 0.7f:current change rate; in HWTEST_F() 50 ret = Interpolation::GetBezierInterpolation(0.9f, U1, U2, U3, U4); // 0.9f:current change rate; in HWTEST_F() 62 float ret = Interpolation::GetBezierY(0.2f, U1, U2, U3, U4); // 0.2f:current change rate; in HWTEST_F() 64 ret = Interpolation::GetBezierY(0.5f, U1, U2, U3, U4); // 0.5f:current change rate; in HWTEST_F() 66 ret = Interpolation::GetBezierY(0.7f, U1, U2, U3, U4); // 0.7f:current change rate; in HWTEST_F() 68 ret = Interpolation::GetBezierY(0.9f, U1, U2, U3, U4); // 0.9f:current change rate; in HWTEST_F()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/components/ |
H A D | animation_track_component_manager.cpp | 26 DECLARE_PROPERTY_TYPE(AnimationTrackComponent::Interpolation); 28 BEGIN_ENUM(AnimationInterpolationMetaData, AnimationTrackComponent::Interpolation) 29 DECL_ENUM(AnimationTrackComponent::Interpolation, STEP, "Step") 30 DECL_ENUM(AnimationTrackComponent::Interpolation, LINEAR, "Linear") 31 DECL_ENUM(AnimationTrackComponent::Interpolation, SPLINE, "Spline") 32 END_ENUM(AnimationInterpolationMetaData, AnimationTrackComponent::Interpolation)
|
/foundation/arkui/ui_lite/frameworks/animator/ |
H A D | interpolation.cpp | 22 int16_t Interpolation::GetBezierInterpolation(int16_t t, int16_t u0, int16_t u1, int16_t u2, int16_t u3) in GetBezierInterpolation() 41 float Interpolation::GetBezierInterpolation(float t, float u0, float u1, float u2, float u3) in GetBezierInterpolation() 57 float Interpolation::GetBezierDerivative(float t, float u0, float u1, float u2, float u3) in GetBezierDerivative() 71 float Interpolation::GetBezierY(float x, float x1, float y1, float x2, float y2) in GetBezierY()
|
/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | draw_curve.cpp | 32 point.x = Interpolation::GetBezierInterpolation(t, start.x, control1.x, control2.x, end.x); in DrawCubicBezier() 33 point.y = Interpolation::GetBezierInterpolation(t, start.y, control1.y, control2.y, end.y); in DrawCubicBezier()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/ |
H A D | animation_track_component.h | 39 enum class Interpolation : uint8_t { class 40 /** Interpolation type step */ 42 /** Interpolation type linear */ 44 /** Interpolation type spline */ 55 DEFINE_PROPERTY(Interpolation, interpolationMode, "Interpolation Mode", 0, )
|
/foundation/arkui/ui_lite/interfaces/kits/animator/ |
H A D | interpolation.h | 47 class Interpolation : public HeapBase { class
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_radio_button.cpp | 170 Interpolation::GetBezierY(x, SCALE_BEZIER_CONTROL_POINT_X_1, 0, SCALE_BEZIER_CONTROL_POINT_X_2, 1); in Callback() 173 coefficient = Interpolation::GetBezierY(x, ALPHA_BEZIER_CONTROL_POINT_X_1, 0, ALPHA_BEZIER_CONTROL_POINT_X_2, 1); in Callback()
|
H A D | ui_button.cpp | 323 x = Interpolation::GetBezierY(FULL_SCALE - y, 0, BEZIER_CONTROL, FULL_SCALE, BEZIER_CONTROL); in Start() 348 float offset = Interpolation::GetBezierY(x, BEZIER_CONTROL, 0, BEZIER_CONTROL, FULL_SCALE); in Callback()
|
H A D | ui_toggle_button.cpp | 127 float coefficient = Interpolation::GetBezierY(x, BEZIER_CONTROL_POINT_X_1, 0, BEZIER_CONTROL_POINT_X_2, 1); in Callback()
|
H A D | ui_checkbox.cpp | 207 float coefficient = Interpolation::GetBezierY(x, BEZIER_CONTROL_POINT_X_1, 0, BEZIER_CONTROL_POINT_X_2, 1); in Callback()
|
H A D | ui_abstract_scroll.cpp | 76 Interpolation::GetBezierY(bezielY / OPA_OPAQUE, BEZIER_CONTROL_POINT_X_1, 0, BEZIER_CONTROL_POINT_X_2, 1);
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/ |
H A D | animation_system.cpp | 62 AnimationTrackComponent::Interpolation mode; 303 case AnimationTrackComponent::Interpolation::STEP: in Interpolate() 308 case AnimationTrackComponent::Interpolation::LINEAR: in Interpolate() 312 case AnimationTrackComponent::Interpolation::SPLINE: { in Interpolate() 341 case AnimationTrackComponent::Interpolation::STEP: { in Interpolate() 348 case AnimationTrackComponent::Interpolation::LINEAR: { in Interpolate() 354 case AnimationTrackComponent::Interpolation::SPLINE: { in Interpolate() 385 if (interpolation.mode == AnimationTrackComponent::Interpolation::SPLINE) { in AnimateArray() 409 if (interpolation.mode == AnimationTrackComponent::Interpolation::STEP) { in AnimateArray() 1236 (trackHandle->interpolationMode == AnimationTrackComponent::Interpolation in AnimateTracks() [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2_exporter.cpp | 173 GLTF2::AnimationInterpolation GetAnimationInterpolation(AnimationTrackComponent::Interpolation interpolation) in GetAnimationInterpolation() 176 case AnimationTrackComponent::Interpolation::STEP: in GetAnimationInterpolation() 178 case AnimationTrackComponent::Interpolation::LINEAR: in GetAnimationInterpolation() 180 case AnimationTrackComponent::Interpolation::SPLINE: in GetAnimationInterpolation()
|
H A D | gltf2_importer.cpp | 1317 AnimationTrackComponent::Interpolation ConvertAnimationInterpolation(GLTF2::AnimationInterpolation mode) in ConvertAnimationInterpolation() 1324 return AnimationTrackComponent::Interpolation::STEP; in ConvertAnimationInterpolation() 1326 return AnimationTrackComponent::Interpolation::LINEAR; in ConvertAnimationInterpolation() 1328 return AnimationTrackComponent::Interpolation::SPLINE; in ConvertAnimationInterpolation() 1333 return AnimationTrackComponent::Interpolation::LINEAR; in ConvertAnimationInterpolation()
|
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | ecs_animation.cpp | 914 trackHandle->interpolationMode = AnimationTrackComponent::Interpolation::LINEAR; in CreateAnimationTrack()
|