Skip to content
Snippets Groups Projects
Select Git revision
  • c13243084d4d35f51b383e204b3b896601a3fbb6
  • master default protected
  • 489-add-option-to-change-radius-of-where-new-calibration-points-are-set
  • 349-extensibility-of-trackpoint-2
  • KpperMira-master-patch-4208
  • 185-enhance-background-subtraction
  • KpperMira-master-patch-3e0a
  • 553-calibration-without-intrinsic-calibration
  • export-hdf5-metadata
  • safer-trc-import
  • 547-shorter-text-for-show-complete-path
  • 567-add-changelog-update-to-review-checklist
  • 345-make-change-between-different-intrinsic-calibration-without-losing-trackpoints
  • add-hdf5-as-dependency
  • mac-os-target
  • 568-minor-improvements-to-machine-learning-marker
  • remove_machine_learning_docs_todo
  • m.boltes-master-patch-35078
  • macos_unit_tests
  • 484-show-set-to-false-should-imply-fix-set-to-true
  • 229-change-to-new-connect-syntax
  • v1.0
  • v0.10
  • CroMa
  • v0.9
  • v0.8
26 results

.gitlab-ci.yml

Blame
  • player.cpp 18.94 KiB
    /*
     * PeTrack - Software for tracking pedestrians movement in videos
     * Copyright (C) 2010-2020 Forschungszentrum Jülich GmbH,
     * Maik Boltes, Juliane Adrian, Ricardo Martin Brualla, Arne Graf, Paul Häger, Daniel Hillebrand,
     * Deniz Kilic, Paul Lieberenz, Daniel Salden, Tobias Schrödter, Ann Katrin Seemann
     *
     * This program is free software: you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * (at your option) any later version.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with this program.  If not, see <https://www.gnu.org/licenses/>.
     */
    
    #include <QApplication>
    #include <QToolButton>
    #include <QVBoxLayout>
    #include <QPixmap>
    #include <QSlider>
    #include <QStyle>
    #include <QLineEdit>
    #include <QLabel>
    #include <QIntValidator>
    #include <QtConcurrent>
    
    #include "player.h"
    #include "animation.h"
    #include "petrack.h"
    #include "control.h"
    #include "pMessageBox.h"
    
    
    Player::Player(Animation *anim, QWidget *parent) : QWidget(parent)
    {
        int size = style()->pixelMetric(QStyle::PM_ToolBarIconSize);
        QSize iconSize(size, size);
    
        //play forward Button
        mPlayForwardButton = new QToolButton;
        mPlayForwardButton->setIcon(QPixmap(":/playF"));
        mPlayForwardButton->setIconSize(iconSize);
        connect(mPlayForwardButton, &QToolButton::clicked,this, [&](){this->play(PlayerState::FORWARD);});
    
        //play backward Button
        mPlayBackwardButton = new QToolButton;
        mPlayBackwardButton->setIcon(QPixmap(":/playB"));
        mPlayBackwardButton->setIconSize(iconSize);
        connect(mPlayBackwardButton, &QToolButton::clicked, this, [&](){this->play(PlayerState::BACKWARD);});
    
        //frame forward Button
        mFrameForwardButton = new QToolButton;
        mFrameForwardButton->setAutoRepeat(true);
        mFrameForwardButton->setAutoRepeatDelay(400);   // before repetition starts
        mFrameForwardButton->setAutoRepeatInterval(1000./DEFAULT_FPS); // war: 40 // for 1000 ms / 25 fps
        mFrameForwardButton->setIcon(QPixmap(":/skipF"));
        mFrameForwardButton->setIconSize(iconSize);
        connect(mFrameForwardButton,SIGNAL(clicked()),this,SLOT(frameForward()));
    
        //frame backward Button
        mFrameBackwardButton = new QToolButton;
        mFrameBackwardButton->setAutoRepeat(true);
        mFrameBackwardButton->setAutoRepeatDelay(400);   // before repetition starts
        mFrameBackwardButton->setAutoRepeatInterval(1000./DEFAULT_FPS); // war: 40 // for 1000 ms / 25 fps
        mFrameBackwardButton->setIcon(QPixmap(":/skipB"));