Abstract base class for LED strip animations operating on LedStrip.
More...
#include <abstractanimation.h>
|
void | ledStripChanged () const |
| The LedStrip this animation operates on has changed.
|
|
void | frameComplete () const |
| Subclasses must emit this signal after they have finished painting a frame.
|
|
Abstract base class for LED strip animations operating on LedStrip.
Extends QTimeLine with useful defaults and member-based access to a LedStrip instance.
AbstractAnimations are set on a ShelfModel instance by calling its ShelfModel::setAnimation method.
- Attention
- AbstractAnimations must provide a name and emit the frameComplete signal.
AbstractAnimations loop forever by default.
- See also
- ShelfModel
-
QTimeLine
◆ AbstractAnimation()
AbstractAnimation::AbstractAnimation |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
Create an animation.
- Parameters
-
◆ frameComplete
void AbstractAnimation::frameComplete |
( |
| ) |
const |
|
signal |
Subclasses must emit this signal after they have finished painting a frame.
A subclass will commonly perform painting operations on its ledStrip in response to a QTimeLine::valueChanged
signal. After painting is concluded for a frame it must emit this signal.
◆ ledStrip()
LedStrip * AbstractAnimation::ledStrip |
( |
| ) |
const |
◆ ledStripChanged
void AbstractAnimation::ledStripChanged |
( |
| ) |
const |
|
signal |
◆ name()
virtual QString AbstractAnimation::name |
( |
| ) |
const |
|
pure virtual |
The name of this animation.
- Returns
- Animation name.
- See also
- name (property)
Implemented in FireAnimation.
◆ setLedStrip()
void AbstractAnimation::setLedStrip |
( |
LedStrip * |
ledStrip | ) |
|
◆ ledStrip
◆ name
QString AbstractAnimation::name |
|
read |
Name of this animation.
Subclasses must implement this to provide an animation name.
The documentation for this class was generated from the following files:
- /__w/hyelicht/hyelicht/src/abstractanimation.h
- /__w/hyelicht/hyelicht/src/abstractanimation.cpp