Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-gui
Commits
d8ca13a4
Commit
d8ca13a4
authored
Oct 10, 2016
by
Joseph Mirabel
Committed by
Joseph Mirabel
Oct 10, 2016
Browse files
Remove PathPlayer::frameRate_
parent
f25860c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/hppwidgetsplugin/pathplayer.cc
View file @
d8ca13a4
...
...
@@ -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
...
...
plugins/hppwidgetsplugin/pathplayer.hh
View file @
d8ca13a4
...
...
@@ -77,7 +77,6 @@ signals:
QPushButton
*
stop
()
const
;
QPushButton
*
record
()
const
;
const
int
frameRate_
;
double
pathLength_
;
double
currentParam_
;
int
timerId_
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment