Class MaestroController¶
Defined in File maestrocontroller.h
Class Documentation¶
-
class
MaestroController: public QObject¶ Public Functions
-
MaestroController(MaestroControlWidget &maestro_control_widget)¶ Initializes the MaestroController.
- Parameters
maestro_control_widget: The widget responsible for controlling this MaestroController.
-
~MaestroController()¶
-
void
add_drawing_area(MaestroDrawingArea &drawing_area)¶ Adds a DrawingArea to the list of DrawingAreas that the MaestroController renders to.
- Parameters
drawing_area: New DrawingArea.
-
Maestro &
get_maestro()¶ Returns the Maestro handled by this MaestroController.
- Return
Underlying Maestro.
-
bool
get_running()¶ Returns whether the Maestro is running.
- Return
True if Maestro is running.
-
uint64_t
get_total_elapsed_time()¶ Gets the total elapsed time since the Maestro start.
- Return
Total elapsed time.
-
void
initialize_maestro()¶ Resets the Maestro.
-
void
remove_drawing_area(MaestroDrawingArea &drawing_area)¶ Removes a DrawingArea from the controller’s render list. Automatically called in the DrawingArea’s destructor.
- Parameters
drawing_area: DrawingArea to remove.
-
void
save_maestro_to_datastream(QDataStream &datastream, QVector<CueController::Handler> *save_handlers = nullptr)¶ Saves Maestro settings to a DataStream as Cues.
- Parameters
datastream: Stream to save Cues to.save_handlers: CueHandlers that are enabled for saving.
-
void
save_section_to_datastream(QDataStream &datastream, uint8_t section_id, uint8_t layer_id, QVector<CueController::Handler> *save_handlers = nullptr)¶ Saves Section settings to a DataStream as Cues.
- Parameters
datastream: Stream to save Cues to.section_id: The index of the Section to save.layer_id: The index of the Layer to save.save_handlers: CueHandlers that are enabled for saving. If null, save all Cues
-
void
write_cue_to_stream(QDataStream &stream, uint8_t *cue)¶ Appends a Cue to a stream.
- Parameters
stream: Stream to append to.cue: Cue to append.
-
Section *
set_sections(uint8_t num_sections, Point dimensions = Point(10, 10))¶ Initializes the Maestro’s Sections.
- Return
Array of new Sections.
- Parameters
num_sections: Number of Sections to apply.dimensions: The size of each Section.
-
void
start()¶
-
void
stop()¶
-