| 17 | } |
| 18 | |
| 19 | class AnimationBase |
| 20 | { |
| 21 | public: |
| 22 | AnimationBase(); |
| 23 | virtual ~AnimationBase() = default; |
| 24 | virtual bool Play(HyperImage& painter) = 0; |
| 25 | virtual void Init(HyperImage& hyperImage, int hyperLatchTime) = 0; |
| 26 | virtual bool hasLedData(std::vector<ColorRgb>& buffer); |
| 27 | bool isStop(); |
| 28 | void SetSleepTime(int sleepTime); |
| 29 | int GetSleepTime(); |
| 30 | virtual bool isSoundEffect(); |
| 31 | virtual bool hasOwnImage(); |
| 32 | virtual bool getImage(Image<ColorRgb>& image); |
| 33 | |
| 34 | private: |
| 35 | int _sleepTime; |
| 36 | bool _stopMe; |
| 37 | protected: |
| 38 | void setStopMe(bool stopMe); |
| 39 | int clamp(int v, int lo, int hi); |
| 40 | }; |
| 41 | |
| 42 | struct Point2d |
| 43 | { |
nothing calls this directly
no outgoing calls
no test coverage detected