You.i Engine
YiInterpolatePath.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_INTERPOLATE_PATH_H_
3 #define _YI_INTERPOLATE_PATH_H_
4 
5 #include "YiTimeInterpolator.h"
6 #include "graphics/YiPath.h"
7 
25 {
26 public:
28 
32  CYIInterpolatePath(std::unique_ptr<CYIPath> pPath);
33  virtual ~CYIInterpolatePath();
34 
38  void SetPath(std::unique_ptr<CYIPath> pPath);
39  virtual float Interpolate(float timePercentage) override;
40  virtual void Reset() override final;
41 
42 private:
43  std::unique_ptr<CYIPath> m_pPath;
44  float m_yAxis;
45  float m_xAxis;
46  uint32_t m_lastContour;
47  float m_lastTime;
48 
51 };
52 
55 #endif // _YI_INTERPOLATE_PATH_H_
Container for basic interpolator functions.
Definition: YiTimeInterpolator.h:20
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:122
virtual float Interpolate(float timePercentage) override
An interpolator that maps a range onto a CYIPath.
Definition: YiInterpolatePath.h:24
virtual void Reset() override final
virtual ~CYIInterpolatePath()
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
void SetPath(std::unique_ptr< CYIPath > pPath)