Commit d8ca13a4 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Remove PathPlayer::frameRate_

parent f25860c4
......@@ -14,7 +14,6 @@ namespace hpp {
PathPlayer::PathPlayer (HppWidgetsPlugin *plugin, QWidget *parent) :
QWidget (parent)
, ui_ (new ::Ui::PathPlayerWidget)
, frameRate_ (25)
, timerId_ (0)
, process_ (new QProcess (this))
, showPOutput_ (new QDialog (this, Qt::Dialog | Qt::WindowCloseButtonHint | Qt::WindowMinMaxButtonsHint))
......@@ -289,12 +288,13 @@ namespace hpp {
inline int PathPlayer::timeBetweenRefresh() const
{
return 1000/frameRate_;
gepetto::gui::MainWindow* main = gepetto::gui::MainWindow::instance();
return main->settings_->refreshRate;
}
double PathPlayer::lengthBetweenRefresh() const
{
return pathLength_ / (timeSpinBox()->value() * frameRate_);
return pathLength_ * timeBetweenRefresh() / (1000 * timeSpinBox()->value());
}
QDoubleSpinBox *PathPlayer::timeSpinBox() const
......
......@@ -77,7 +77,6 @@ signals:
QPushButton* stop () const;
QPushButton* record () const;
const int frameRate_;
double pathLength_;
double currentParam_;
int timerId_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment