VirtualCursorInterface_SetupInterface#
- class myogestic.gui.widgets.visual_interfaces.virtual_cursor_interface.VirtualCursorInterface_SetupInterface(*args, **kwargs)[source]#
Setup interface for the Virtual Cursor Interface.
This class is responsible for setting up the Virtual Cursor Interface.
- predicted_cursor__signal#
Signal that emits the predicted cursor data.
- Type:
Signal
- incoming_message_signal#
Signal that emits both an array and a string.
- Type:
Signal
- Parameters:
main_window (QMainWindow) – The main window of the application.
name (str) –
The name of the interface. Default is “VirtualCursorInterface”.
Important
The name of the interface must be unique.
Methods
__init__(main_window[, name])Get the path to the Python main script for the cursor application.
Setup the timers for the Virtual Cursor Interface.
Update the status of the Virtual Cursor Interface.
Clear custom signal buffers for the Virtual Cursor Interface.
close_event(_)Handle the close event of the Virtual Cursor Interface.
Connect custom signals for the Virtual Cursor Interface.
Disconnect custom signals for the Virtual Cursor Interface.
Get custom save data for the Virtual Cursor Interface.
Initialize the UI logic for the Virtual Cursor Interface.
Handle the case when the Virtual Cursor Interface was killed or finished.
Update the predicted cursor data for the online protocol.
Read a message from the Virtual Cursor Interface.
Read the predicted cursor data from the Virtual Cursor Interface.
Start the Virtual Cursor Interface.
Stop the Virtual Cursor Interface.
Toggle the streaming of the Virtual Cursor Interface.
Toggle the Virtual Cursor Interface.
write_message(message)Write a message to the Virtual Cursor Interface.
Write a status message to the Virtual Cursor Interface.
- clear_custom_signal_buffers()[source]#
Clear custom signal buffers for the Virtual Cursor Interface.
- Return type:
None
- close_event(_)[source]#
Handle the close event of the Virtual Cursor Interface.
- Parameters:
- Return type:
None
- connect_custom_signals()[source]#
Connect custom signals for the Virtual Cursor Interface.
- Return type:
None
- disconnect_custom_signals()[source]#
Disconnect custom signals for the Virtual Cursor Interface.
- Return type:
None
- interface_was_killed()[source]#
Handle the case when the Virtual Cursor Interface was killed or finished.
- Return type:
None
- online_predicted_cursor_update(data)[source]#
Update the predicted cursor data for the online protocol.
- Parameters:
data (ndarray)
- Return type:
None
- read_predicted_cursor()[source]#
Read the predicted cursor data from the Virtual Cursor Interface.
- Return type:
None
- write_message(message)[source]#
Write a message to the Virtual Cursor Interface.
- Parameters:
message (PySide6.QtCore.QByteArray)
- Return type:
None