/// <summary> /// Collects fixation events /// </summary> /// <param name="time">Start time of fixation</param> /// <param name="duration">Duration of fixation</param> /// <param name="x">Fixation Y position</param> /// <param name="y">Fixation X position</param> public override void FixationEnd(int time, int duration, int x, int y) { lock (this) { if (collectingData) { SFDFixation fixation = new SFDFixation(); fixation.Time = time; fixation.Duration = duration; fixation.X = x; fixation.Y = y; events.AddLast(new EyetrackerEvent(fixation)); } } }
public void FixationEnd(int time, int duration, int x, int y) { SFDFixation fix = new SFDFixation(); fix.Time = time; fix.Duration = duration; fix.X = x; fix.Y = y; lock (this) { if (collectingData) { fixations.AddLast(fix); } } }
public EyetrackerEvent(SFDFixation fixation) { this.fixation = fixation; }