VirtualHandInterface_SetupInterface#

class myogestic.gui.widgets.visual_interfaces.virtual_hand_interface.VirtualHandInterface_SetupInterface(main_window, name='VirtualHandInterface')[source]#

Setup interface for the Virtual Hand Interface.

This class is responsible for setting up the Virtual Hand Interface.

predicted_hand__signal#

Signal that emits the predicted hand data.

Type:

Signal

Parameters:
  • main_window (QMainWindow) – The main window of the application.

  • name (str) –

    The name of the interface. Default is “VirtualHandInterface”.

    Important

    The name of the interface must be unique.

Methods

__init__(main_window[, name])

_get_unity_executable()

Get the path to the Unity executable based on the platform.

_setup_timers()

Setup the timers for the Virtual Hand Interface.

_update_status()

Update the status of the Virtual Hand Interface.

clear_custom_signal_buffers()

Clear custom signal buffers for the Virtual Hand Interface.

close_event(_)

Handle the close event of the Virtual Hand Interface.

connect_custom_signals()

Connect custom signals for the Virtual Hand Interface.

disconnect_custom_signals()

Disconnect custom signals for the Virtual Hand Interface.

get_custom_save_data()

Get custom save data for the Virtual Hand Interface.

initialize_ui_logic()

Initialize the UI logic for the Virtual Hand Interface.

interface_was_killed()

Handle the case when the Virtual Hand Interface was killed.

online_predicted_hand_update(data)

Update the predicted hand data for the online protocol.

read_message()

Read a message from the Virtual Hand Interface.

read_predicted_hand()

Read the predicted hand data from the Virtual Hand Interface.

start_interface()

Start the Virtual Hand Interface.

stop_interface()

Stop the Virtual Hand Interface.

toggle_streaming()

Toggle the streaming of the Virtual Hand Interface.

toggle_virtual_hand_interface()

Toggle the Virtual Hand Interface.

write_message(message)

Write a message to the Virtual Hand Interface.

write_status_message()

Write a status message to the Virtual Hand Interface.

clear_custom_signal_buffers()[source]#

Clear custom signal buffers for the Virtual Hand Interface.

Return type:

None

close_event(_)[source]#

Handle the close event of the Virtual Hand Interface.

Parameters:

_ (QCloseEvent)

Return type:

None

connect_custom_signals()[source]#

Connect custom signals for the Virtual Hand Interface.

Return type:

None

disconnect_custom_signals()[source]#

Disconnect custom signals for the Virtual Hand Interface.

Return type:

None

get_custom_save_data()[source]#

Get custom save data for the Virtual Hand Interface.

Return type:

dict

initialize_ui_logic()[source]#

Initialize the UI logic for the Virtual Hand Interface.

interface_was_killed()[source]#

Handle the case when the Virtual Hand Interface was killed.

Return type:

None

online_predicted_hand_update(data)[source]#

Update the predicted hand data for the online protocol.

Parameters:

data (ndarray)

Return type:

None

read_message()[source]#

Read a message from the Virtual Hand Interface.

Return type:

None

read_predicted_hand()[source]#

Read the predicted hand data from the Virtual Hand Interface.

Return type:

None

start_interface()[source]#

Start the Virtual Hand Interface.

stop_interface()[source]#

Stop the Virtual Hand Interface.

toggle_streaming()[source]#

Toggle the streaming of the Virtual Hand Interface.

Return type:

None

toggle_virtual_hand_interface()[source]#

Toggle the Virtual Hand Interface.

write_message(message)[source]#

Write a message to the Virtual Hand Interface.

Parameters:

message (QByteArray)

Return type:

None

write_status_message()[source]#

Write a status message to the Virtual Hand Interface.

Return type:

None