/// <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 FixationDataParams { FixationDataMode = Mode }; interactor.CreateFixationDataBehavior(ref parameters); }
protected override void AssignBehavior(Interactor interactor) { var behaviorParams = new FixationDataParams() { FixationDataMode = _mode }; interactor.CreateFixationDataBehavior(ref behaviorParams); }
/// <summary> /// Sets the FixationData 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="fixationDataMode">Which fixation data mode to use.</param> /// </summary> private void AddFixationDataBehavior(Interactor interactor, FixationDataMode fixationDataMode) { var behavior = interactor.CreateBehavior(InteractionBehaviorType.FixationData); var behaviorParams = new FixationDataParams() { FixationDataMode = fixationDataMode }; behavior.SetFixationDataParams(ref behaviorParams); }