Navigation and Viewing Framework
Configurable navigation and viewing setups for various display types in the VR lab
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
lib-server.SlotManager.SlotManager Class Reference

Class to handle shutter configurations and timings. More...

Inheritance diagram for lib-server.SlotManager.SlotManager:

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...
 

Detailed Description

Class to handle shutter configurations and timings.

Associates the users per display to the available slots and sets the glasses correctly.

Constructor & Destructor Documentation

def lib-server.SlotManager.SlotManager.__init__ (   self)

Default constructor.

Member Function Documentation

def lib-server.SlotManager.SlotManager.display_has_free_slot (   self,
  DISPLAY 
)

Checks if a given Display instance has a slot left to give away to another user.

Parameters
DISPLAYThe Display instance to be checked for a free slot.
def lib-server.SlotManager.SlotManager.evaluate (   self)

Evaluated every frame.

def lib-server.SlotManager.SlotManager.my_constructor (   self,
  USER_LIST 
)

Custom constructor.

Parameters
USER_LISTReference 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.

Parameters
COMMAND_LISTA list of strings containing the commands.
FRAMESNumber 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.

Parameters
SLOTThe Slot instance to register.
DISPLAYThe Display instance to which the new slot belongs to.
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.

Member Data Documentation

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

Dictionary to map Display instances to a list of associated Slot instances.

lib-server.SlotManager.SlotManager.users

Reference to a list of all users to be handled in the setup.


The documentation for this class was generated from the following file: