Package de.dfki.km.text20.services.trackingdevices.eyes

Examples of de.dfki.km.text20.services.trackingdevices.eyes.EyeTrackingDeviceInfo


        }

        // In case we have a new fixation, and an old one
        if (event.getType() == FixationEventType.FIXATION_START && this.lastFixation != null) {

            final Fixation finalLastFixation = this.lastFixation;
            final Fixation currentFixation = event.getFixation();

            final Saccade saccade = new Saccade() {

                @Override
                public Fixation getStart() {
View Full Code Here


        }

        // TODO: Proper handling of non-saccades between two fixations, i.e. when the time and or distance between two
        // fixation was too long, you wouldn't call it a saccade anymore.

        final Fixation last = this.lastFixation;

        callListener(new SaccadeEvent() {

            @Override
            public long getGenerationTime() {
View Full Code Here

            //
        }

        final List<Fixation> lastFixations = flu.getLastFixations(2);

        final Fixation a = lastFixations.get(0);
        final Fixation b = lastFixations.get(1);

        dispatchWith(fl, a, b);
    }
View Full Code Here

    /**
     * @return .
     */
    public RenderElement getLastFixatedElement() {
        final Fixation fixation = this.correctedFixations.get(this.correctedFixations.size() - 1);
        @SuppressWarnings("unused")
        final Point location2 = this.pseudorenderer.convertPoint(fixation.getCenter(), CoordinatesType.SCREEN_BASED, CoordinatesType.DOCUMENT_BASED);

        return null;
    }
View Full Code Here

    /**
     * @return .
     */
    public int getLastFixatedWordPos() {
        final Fixation fixation = this.correctedFixations.get(this.correctedFixations.size() - 1);
        final Point location2 = this.pseudorenderer.convertPoint(fixation.getCenter(), CoordinatesType.SCREEN_BASED, CoordinatesType.DOCUMENT_BASED);

        final RenderElement element = getLastFixatedElement();

        // Get fixated word.
        if (element != null && element instanceof TextualRenderElement) {
View Full Code Here

     * First observation-point of this event.
     *
     * @return .
     */
    public long getStartTime() {
        final Fixation fixation = this.$fixations.compact().get(0);
        if (fixation == null || fixation.getTrackingEvents() == null) return 0;

        final EyeTrackingEvent trackingEvent = fixation.getTrackingEvents().get(0);
        if (trackingEvent == null) return 0;

        return trackingEvent.getEventTime();
    }
View Full Code Here

     * Last observation-point of this fixation line.
     *
     * @return .
     */
    public long getStopTime() {
        final Fixation fixation = this.$fixations.compact().get(-1);
        if (fixation == null || fixation.getTrackingEvents() == null) return 0;

        final EyeTrackingEvent trackingEvent = $(fixation.getTrackingEvents()).get(-1);
        if (trackingEvent == null) return 0;

        return trackingEvent.getEventTime();
    }
View Full Code Here

     */
    public Fixation getFixation() {

        final Point center = this.fixation;

        return new Fixation() {

            @Override
            public Point getCenter() {
                return center;
            }
View Full Code Here

                              final List<EyeTrackingEvent> trackingEvents) {

        final Point center = getCenter(trackingEvents);
        final List<EyeTrackingEvent> myTrackingEvents = new ArrayList<EyeTrackingEvent>(trackingEvents);

        callListener(new FixationEvent() {
            @Override
            public Fixation getFixation() {
                return new Fixation() {

                    @Override
View Full Code Here

        return new ArrayList<Fixation>(this.lastFixations.subList(s - n, s));
    }

    @Override
    public void init(AddGazeEvaluationListenerOption... options) {
        this.gazeEvaluator.addEvaluationListener(new FixationListener() {

            @Override
            public void newEvaluationEvent(final FixationEvent event) {
                if (event.getType().equals(FixationEventType.FIXATION_END)) {
                    FixationLineHandler4.this.currentTime = event.getGenerationTime();
View Full Code Here

TOP

Related Classes of de.dfki.km.text20.services.trackingdevices.eyes.EyeTrackingDeviceInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.