示例#1
0
        /// <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));
                }
            }
        }
示例#2
0
        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);
                }
            }
        }
示例#3
0
        /// <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));
                }
            }
        }
示例#4
0
        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);
                }
            }
        }
示例#5
0
 public EyetrackerEvent(SFDFixation fixation)
 {
     this.fixation = fixation;
 }
示例#6
0
 public EyetrackerEvent(SFDFixation fixation)
 {
     this.fixation = fixation;
 }