Skip to content

← gaze package

GazeScreenCoordinateConversion

Perform coordinate conversions on gaze data.

Conversions are related to the screen resolution, viewer distance, etc. Normalized coordinates are between 0 and 1 (not between -0.5 and +0.5). However, meters, centimeters, degrees and radians are measured relative to the screen center and can therefore be negative. This expects the screen metadata to be stored in the chunk properties. Use the SetGazeMetadata node if you need to set that data (i.e., if it is not present in the original gaze data). Version 1.0.0

Ports/Properties

data

Data to process.

  • verbose name: Data
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: INOUT

convert_from

Current units.

  • verbose name: Convert From
  • default value: pixels
  • port type: EnumPort
  • value type: str (can be None)

convert_to

Units to convert to.

  • verbose name: Convert To
  • default value: degrees
  • port type: EnumPort
  • value type: str (can be None)

correct_flat

Correct for screen being flat. Only relevant in conversions between angular and linear measures.

  • verbose name: Correct Flat
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

convert_instance_fields

List of instance axis data field names (table columns) to convert as well.

  • verbose name: Convert Instance Fields
  • default value: None
  • port type: ListPort
  • value type: list (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)