5#ifndef FLUTTER_IMPELLER_SCENE_ANIMATION_PROPERTY_RESOLVER_H_
6#define FLUTTER_IMPELLER_SCENE_ANIMATION_PROPERTY_RESOLVER_H_
21class TranslationTimelineResolver;
22class RotationTimelineResolver;
23class ScaleTimelineResolver;
28 std::vector<Scalar>
times,
29 std::vector<Vector3>
values);
32 std::vector<Scalar>
times,
33 std::vector<Quaternion>
values);
36 std::vector<Scalar>
times,
37 std::vector<Vector3>
values);
85 std::vector<Vector3> values_;
107 std::vector<Quaternion> values_;
128 std::vector<Vector3> values_;
static SkISize times(const SkISize &size, float factor)
static std::unique_ptr< RotationTimelineResolver > MakeRotationTimeline(std::vector< Scalar > times, std::vector< Quaternion > values)
static std::unique_ptr< ScaleTimelineResolver > MakeScaleTimeline(std::vector< Scalar > times, std::vector< Vector3 > values)
static std::unique_ptr< TranslationTimelineResolver > MakeTranslationTimeline(std::vector< Scalar > times, std::vector< Vector3 > values)
virtual SecondsF GetEndTime()=0
virtual ~PropertyResolver()
virtual void Apply(AnimationTransforms &target, SecondsF time, Scalar weight)=0
Resolve and apply the property value to a target node. This operation is additive; a given node prope...
void Apply(AnimationTransforms &target, SecondsF time, Scalar weight) override
Resolve and apply the property value to a target node. This operation is additive; a given node prope...
~RotationTimelineResolver()
void Apply(AnimationTransforms &target, SecondsF time, Scalar weight) override
Resolve and apply the property value to a target node. This operation is additive; a given node prope...
std::vector< Scalar > times_
virtual ~TimelineResolver()
TimelineKey GetTimelineKey(SecondsF time)
void Apply(AnimationTransforms &target, SecondsF time, Scalar weight) override
Resolve and apply the property value to a target node. This operation is additive; a given node prope...
~TranslationTimelineResolver()
std::chrono::duration< float > SecondsF
static double time(int loops, Benchmark *bench, Target *target)
size_t index
The index of the closest previous keyframe.