 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_SCENE_ANIMATION_PROPERTY_RESOLVER_H_
6 #define FLUTTER_IMPELLER_SCENE_ANIMATION_PROPERTY_RESOLVER_H_
21 class TranslationTimelineResolver;
22 class RotationTimelineResolver;
23 class 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_;
140 #endif // FLUTTER_IMPELLER_SCENE_ANIMATION_PROPERTY_RESOLVER_H_
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...
virtual ~PropertyResolver()
std::vector< Scalar > times_
static std::unique_ptr< TranslationTimelineResolver > MakeTranslationTimeline(std::vector< Scalar > times, std::vector< Vector3 > values)
std::chrono::duration< float > SecondsF
size_t index
The index of the closest previous keyframe.
~RotationTimelineResolver()
~TranslationTimelineResolver()
static std::unique_ptr< ScaleTimelineResolver > MakeScaleTimeline(std::vector< Scalar > times, std::vector< Vector3 > values)
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...
virtual SecondsF GetEndTime()=0
static std::unique_ptr< RotationTimelineResolver > MakeRotationTimeline(std::vector< Scalar > times, std::vector< Quaternion > values)
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...
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...
TimelineKey GetTimelineKey(SecondsF time)
virtual ~TimelineResolver()