MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / AnimationBase

Class AnimationBase

include/effects/AnimationBase.h:19–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19class AnimationBase
20{
21public:
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
34private:
35 int _sleepTime;
36 bool _stopMe;
37protected:
38 void setStopMe(bool stopMe);
39 int clamp(int v, int lo, int hi);
40};
41
42struct Point2d
43{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected