Navigation and Viewing Framework
Configurable navigation and viewing setups for various display types in the VR lab
|
Base class for the representation of an input device supplying multiple degrees of freedom. More...
Public Member Functions | |
def | __init__ |
Default constructor. More... | |
def | init_station_tracking |
Initializes a tracking reader for the device's position and rotation. More... | |
def | filter_channel |
Map an input value to a certain interval. More... | |
def | set_input_channel_parameters |
Sets given values as input channel filtering parameters. More... | |
def | add_input_binding |
Adds an input binding to the list of bindings for this device. More... | |
def | frame_callback |
Callback: evaluated every frame. More... | |
def | set_x |
Filters and sets the x parameter. More... | |
def | set_y |
Filters and sets the y parameter. More... | |
def | set_z |
Filters and sets the z parameter. More... | |
def | set_rx |
Filters and sets the rx parameter. More... | |
def | set_ry |
Filters and sets the ry parameter. More... | |
def | set_rz |
Filters and sets the rz parameter. More... | |
def | set_w |
Filters and sets the w parameter. More... | |
def | set_reset_trigger |
Sets the reset trigger. More... | |
def | set_coupling_trigger |
Sets the coupling trigger. More... | |
def | set_dof_trigger |
Sets the dof trigger. More... | |
Public Attributes | |
input_bindings | |
List of bindings between input values / button values and events. More... | |
dofs | |
Temporary list of degrees of freedom used for storage before setting mf_dof. More... | |
x_parameters | |
Filer channel parameters for x. More... | |
y_parameters | |
Filer channel parameters for y. More... | |
z_parameters | |
Filer channel parameters for z. More... | |
rx_parameters | |
Filer channel parameters for rx. More... | |
ry_parameters | |
Filer channel parameters for ry. More... | |
rz_parameters | |
Filer channel parameters for rz. More... | |
w_parameters | |
Filer channel parameters for w. More... | |
translation_factor | |
Factor to modify the device's translation input. More... | |
rotation_factor | |
Factor to modify the device's rotation input. More... | |
frame_trigger | |
Triggers framewise evaluation of frame_callback method. More... | |
tracking_reader | |
Tracking Reader to process the tracking input of the device. More... | |
Static Public Attributes | |
tuple | mf_dof = avango.MFFloat() |
The input values of the input device. More... | |
tuple | sf_reset_trigger = avango.SFBool() |
Boolean indicating if a reset of the platform is to be triggered. More... | |
tuple | sf_coupling_trigger = avango.SFBool() |
Boolean indicating if a coupling with other platforms is to be triggered. More... | |
tuple | sf_dof_trigger = avango.SFBool() |
Boolean indicating if a change of dof mode is to be triggered. More... | |
tuple | sf_station_mat = avango.gua.SFMatrix4() |
Tracking position and rotation. More... | |
Base class for the representation of an input device supplying multiple degrees of freedom.
This class should not be instantiated, but concrete device reading classed will inherit from this one.
def lib-server.Device.MultiDofDevice.__init__ | ( | self | ) |
Default constructor.
def lib-server.Device.MultiDofDevice.add_input_binding | ( | self, | |
INSTRUCTION | |||
) |
Adds an input binding to the list of bindings for this device.
INSTRUCTION | The binding in code form to be set. |
def lib-server.Device.MultiDofDevice.filter_channel | ( | self, | |
VALUE, | |||
OFFSET, | |||
MIN, | |||
MAX, | |||
NEG_THRESHOLD, | |||
POS_THRESHOLD | |||
) |
Map an input value to a certain interval.
VALUE | The value to be mapped. |
OFFSET | The offset to be applied to VALUE, MIN and MAX. |
MIN | The minimum value of the old interval. |
MAX | The maximum value of the old interval. |
NEG_THRESHOLD | The negative threshold to be used. |
POS_THRESHOLD | The positive threshold to be used. |
def lib-server.Device.MultiDofDevice.frame_callback | ( | self | ) |
Callback: evaluated every frame.
def lib-server.Device.MultiDofDevice.init_station_tracking | ( | self, | |
TRACKING_TARGET_NAME, | |||
NO_TRACKING_MAT | |||
) |
Initializes a tracking reader for the device's position and rotation.
TRACKING_TARGET_NAME | The tracking name as chosen in daemon, None if no tracking is available. |
NO_TRACKING_MAT | Tracking matrix to be used if no tracking is available. |
def lib-server.Device.MultiDofDevice.set_coupling_trigger | ( | self, | |
VALUE | |||
) |
Sets the coupling trigger.
VALUE | The value to be set. |
def lib-server.Device.MultiDofDevice.set_dof_trigger | ( | self, | |
VALUE | |||
) |
Sets the dof trigger.
VALUE | The value to be set. |
def lib-server.Device.MultiDofDevice.set_input_channel_parameters | ( | self, | |
INPUT_CHANNEL_PARAMETERS, | |||
OFFSET, | |||
MIN, | |||
MAX, | |||
NEG_THRESHOLD, | |||
POS_THRESHOLD | |||
) |
Sets given values as input channel filtering parameters.
INPUT_CHANNEL_PARAMETERS | List on which the following values will be set. |
OFFSET | The offset to be applied to VALUE, MIN and MAX. |
MIN | The minimum value of the old interval. |
MAX | The maximum value of the old interval. |
NEG_THRESHOLD | The negative threshold to be used. |
POS_THRESHOLD | The positive threshold to be used. |
def lib-server.Device.MultiDofDevice.set_reset_trigger | ( | self, | |
VALUE | |||
) |
Sets the reset trigger.
VALUE | The value to be set. |
def lib-server.Device.MultiDofDevice.set_rx | ( | self, | |
VALUE | |||
) |
Filters and sets the rx parameter.
VALUE | The value to be set. |
def lib-server.Device.MultiDofDevice.set_ry | ( | self, | |
VALUE | |||
) |
Filters and sets the ry parameter.
VALUE | The value to be set. |
def lib-server.Device.MultiDofDevice.set_rz | ( | self, | |
VALUE | |||
) |
Filters and sets the rz parameter.
VALUE | The value to be set. |
def lib-server.Device.MultiDofDevice.set_w | ( | self, | |
VALUE | |||
) |
Filters and sets the w parameter.
VALUE | The value to be set. |
def lib-server.Device.MultiDofDevice.set_x | ( | self, | |
VALUE | |||
) |
Filters and sets the x parameter.
VALUE | The value to be set. |
def lib-server.Device.MultiDofDevice.set_y | ( | self, | |
VALUE | |||
) |
Filters and sets the y parameter.
VALUE | The value to be set. |
def lib-server.Device.MultiDofDevice.set_z | ( | self, | |
VALUE | |||
) |
Filters and sets the z parameter.
VALUE | The value to be set. |
lib-server.Device.MultiDofDevice.dofs |
Temporary list of degrees of freedom used for storage before setting mf_dof.
lib-server.Device.MultiDofDevice.frame_trigger |
Triggers framewise evaluation of frame_callback method.
lib-server.Device.MultiDofDevice.input_bindings |
List of bindings between input values / button values and events.
Code form.
|
static |
The input values of the input device.
lib-server.Device.MultiDofDevice.rotation_factor |
Factor to modify the device's rotation input.
lib-server.Device.MultiDofDevice.rx_parameters |
Filer channel parameters for rx.
lib-server.Device.MultiDofDevice.ry_parameters |
Filer channel parameters for ry.
lib-server.Device.MultiDofDevice.rz_parameters |
Filer channel parameters for rz.
|
static |
Boolean indicating if a coupling with other platforms is to be triggered.
|
static |
Boolean indicating if a change of dof mode is to be triggered.
|
static |
Boolean indicating if a reset of the platform is to be triggered.
|
static |
Tracking position and rotation.
lib-server.Device.MultiDofDevice.tracking_reader |
Tracking Reader to process the tracking input of the device.
lib-server.Device.MultiDofDevice.translation_factor |
Factor to modify the device's translation input.
lib-server.Device.MultiDofDevice.w_parameters |
Filer channel parameters for w.
lib-server.Device.MultiDofDevice.x_parameters |
Filer channel parameters for x.
lib-server.Device.MultiDofDevice.y_parameters |
Filer channel parameters for y.
lib-server.Device.MultiDofDevice.z_parameters |
Filer channel parameters for z.