/// <summary> /// Assigns the behavior corresponding to the data stream type to an interactor. /// </summary> /// <param name="interactor">The global interactor to add the data stream behavior to.</param> protected override void AssignBehavior(Interactor interactor) { var parameters = new GazePointDataParams() { GazePointDataMode = Mode }; interactor.CreateGazePointDataBehavior(ref parameters); }
protected override void AssignBehavior(Interactor interactor) { var behaviorParams = new GazePointDataParams() { GazePointDataMode = _mode }; interactor.CreateGazePointDataBehavior(ref behaviorParams); }
/// <summary> /// Sets the GazePointData behavior on the global interactor and specifies the data mode /// to be used. /// <param name="interactor">Interactor object to be fitted with the interaction behavior.</param> /// <param name="gazePointDataMode">Which gaze point data mode to use.</param> /// </summary> private static void AddGazePointDataBehavior(Interactor interactor, GazePointDataMode gazePointDataMode) { var behavior = interactor.CreateBehavior(InteractionBehaviorType.GazePointData); var behaviorParams = new GazePointDataParams() { GazePointDataMode = gazePointDataMode }; behavior.SetGazePointDataParams(ref behaviorParams); }
private void InitializeGlobalInteractorSnapshot() { globalInteractorSnapshot = context.CreateSnapshot(); globalInteractorSnapshot.CreateBounds(InteractionBoundsType.None); globalInteractorSnapshot.AddWindowId(Literals.GlobalInteractorWindowId); var interactor = globalInteractorSnapshot.CreateInteractor(InteractorId, Literals.RootId, Literals.GlobalInteractorWindowId); interactor.CreateBounds(InteractionBoundsType.None); var behavior = interactor.CreateBehavior(InteractionBehaviorType.GazePointData); var behaviorParams = new GazePointDataParams() { GazePointDataMode = GazePointDataMode.LightlyFiltered }; behavior.SetGazePointDataOptions(ref behaviorParams); }