You.i Engine
YiInterpolatePath.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. 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 fTimePercentage) override;
40  virtual void Reset() override final;
41 
42 private:
43  std::unique_ptr<CYIPath> m_pPath;
44  float m_fYAxis;
45  float m_fXAxis;
46  uint32_t m_nLastContour;
47  float m_fLastTime;
48 
51 };
52 
55 #endif // _YI_INTERPOLATE_PATH_H_
Container for basic interpolator functions.
Definition: YiTimeInterpolator.h:21
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:114
#define YI_TYPE_BASES(...)
Definition: YiRtti.h:350
virtual float Interpolate(float fTimePercentage) override
virtual void Reset() overridefinal
An interpolator that maps a range onto a CYIPath.
Definition: YiInterpolatePath.h:24
virtual ~CYIInterpolatePath()
void SetPath(std::unique_ptr< CYIPath > pPath)