Class CueHandler¶
Defined in File cuehandler.h
Inheritance Relationships¶
Derived Types¶
public PixelMaestro::AnimationCueHandler
(Class AnimationCueHandler)public PixelMaestro::CanvasCueHandler
(Class CanvasCueHandler)public PixelMaestro::MaestroCueHandler
(Class MaestroCueHandler)public PixelMaestro::SectionCueHandler
(Class SectionCueHandler)public PixelMaestro::ShowCueHandler
(Class ShowCueHandler)
Class Documentation¶
-
class
CueHandler
¶ Subclassed by PixelMaestro::AnimationCueHandler, PixelMaestro::CanvasCueHandler, PixelMaestro::MaestroCueHandler, PixelMaestro::SectionCueHandler, PixelMaestro::ShowCueHandler
Public Functions
-
CueHandler
(CueController &controller)¶ Constructor.
- Parameters
controller
: CueController to assign to this CueHandler.
-
virtual
~CueHandler
()¶
-
virtual void
run
(uint8_t *cue) = 0¶
Protected Functions
-
void
add_float_to_cue
(uint32_t &index, float value)¶ Inserts a float into a Cue.
- Parameters
index
: Last position in the Cue.value
: Float to insert.
-
void
add_uint16_to_cue
(uint32_t &index, uint16_t value)¶ Inserts a 16-bit integer into a Cue.
- Parameters
index
: Last position in the Cue.value
: 16-bit integer to insert.
-
void
add_uint32_to_cue
(uint32_t &index, uint32_t value)¶ Inserts a 32-bit integer into a Cue.
- Parameters
index
: Last position in the Cue.value
: 32-bit integer to insert.
-
Section *
get_section
(uint8_t section_id, uint8_t layer_id) const¶ Returns the Section/Layer corresponding to the given Section ID and Layer level.
-
Palette *
deserialize_palette
(const uint8_t *cue, uint8_t num_colors)¶ Extracts a Palette from a Cue.
-
uint32_t
start_cue
(uint8_t handler_byte, uint8_t action_byte)¶ Assembles the first part of a Cue.
- Return
The current index in the Cue.
- Parameters
handler_byte
: The CueHandler that the Cue belongs to.action_byte
: The action being performed.
-
uint32_t
start_cue
(uint8_t handler_byte, uint8_t action_byte, uint8_t section_num, uint8_t layer_num)¶ Assembles the first part of a Cue.
- Return
The current index in the Cue.
- Parameters
handler_byte
: The CueHandler that the Cue belongs to.action_byte
: The action being performed.section_num
: The ID of the affected Section.layer_num
: The ID of the affected Layer.
Protected Attributes
-
CueController &
controller_
¶ The controller managing this Handler.
-