Navigation and Viewing Framework
Configurable navigation and viewing setups for various display types in the VR lab
|
Class to handle shutter configurations and timings. More...
Public Member Functions | |
def | __init__ |
Default constructor. More... | |
def | my_constructor |
Custom constructor. More... | |
def | reset_shutter_config |
Loads an XML shutter configuration and uploads it. More... | |
def | send_shutter_config |
Tells the RadioMasterHID to send the shutter configuration. More... | |
def | print_uploaded_shutter_config |
Prints the currently uploaded shutter configuration including timings and values. More... | |
def | display_has_free_slot |
Checks if a given Display instance has a slot left to give away to another user. More... | |
def | register_slot |
Tells the SlotManager that a new Slot instance is to be handled for a certain Display instance. More... | |
def | evaluate |
Evaluated every frame. More... | |
def | queue_commands |
Registers a list of string commands to be executed in some frames in the future. More... | |
def | update_slot_configuration |
Updates the shutter timings and scenegraph slot connections according to the vip / active status, display and platform of users. More... | |
def | open_unused_shutter_glasses |
Determines which shutter glasses have no slots assigned and opens them. More... | |
Public Attributes | |
glasses_slot_status | |
List containing the number of slots for shutter glasses per display. More... | |
users | |
Reference to a list of all users to be handled in the setup. More... | |
slots | |
Dictionary to map Display instances to a list of associated Slot instances. More... | |
queued_commands | |
Format: [string list, frames] A list of commands in string form that are executed in x frames in the future. More... | |
radio_master_hid | |
Instance of RadioMasterHID to handle shutter glass configurations. More... | |
Class to handle shutter configurations and timings.
Associates the users per display to the available slots and sets the glasses correctly.
def lib-server.SlotManager.SlotManager.__init__ | ( | self | ) |
Default constructor.
def lib-server.SlotManager.SlotManager.display_has_free_slot | ( | self, | |
DISPLAY | |||
) |
def lib-server.SlotManager.SlotManager.evaluate | ( | self | ) |
Evaluated every frame.
def lib-server.SlotManager.SlotManager.my_constructor | ( | self, | |
USER_LIST | |||
) |
Custom constructor.
USER_LIST | Reference to a list of all users in the setup. |
def lib-server.SlotManager.SlotManager.open_unused_shutter_glasses | ( | self | ) |
Determines which shutter glasses have no slots assigned and opens them.
def lib-server.SlotManager.SlotManager.print_uploaded_shutter_config | ( | self | ) |
Prints the currently uploaded shutter configuration including timings and values.
def lib-server.SlotManager.SlotManager.queue_commands | ( | self, | |
COMMAND_LIST, | |||
FRAMES | |||
) |
Registers a list of string commands to be executed in some frames in the future.
COMMAND_LIST | A list of strings containing the commands. |
FRAMES | Number of frames in which the commands are to be executed. |
def lib-server.SlotManager.SlotManager.register_slot | ( | self, | |
SLOT, | |||
DISPLAY | |||
) |
Tells the SlotManager that a new Slot instance is to be handled for a certain Display instance.
def lib-server.SlotManager.SlotManager.reset_shutter_config | ( | self, | |
INITIAL_CONFIGURATION | |||
) |
Loads an XML shutter configuration and uploads it.
def lib-server.SlotManager.SlotManager.send_shutter_config | ( | self | ) |
Tells the RadioMasterHID to send the shutter configuration.
Formats feedback nicely.
def lib-server.SlotManager.SlotManager.update_slot_configuration | ( | self | ) |
Updates the shutter timings and scenegraph slot connections according to the vip / active status, display and platform of users.
lib-server.SlotManager.SlotManager.glasses_slot_status |
List containing the number of slots for shutter glasses per display.
Form: [ [DISPLAY_NAME, [LIST OF SLOTS PER SHUTTER] ], ... ]
lib-server.SlotManager.SlotManager.queued_commands |
Format: [string list, frames] A list of commands in string form that are executed in x frames in the future.
lib-server.SlotManager.SlotManager.radio_master_hid |
Instance of RadioMasterHID to handle shutter glass configurations.
lib-server.SlotManager.SlotManager.slots |
lib-server.SlotManager.SlotManager.users |
Reference to a list of all users to be handled in the setup.