Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
|
Class for simulation and kinematic playback. More...
#include <PlaybackWidget.h>
Public Slots | |
void | slotUpdateSliderMinMax (int min, int max) |
Updates the min and max of the slider widget. | |
void | slotSetTimeDisplays (double sim_time, double rel_time) |
Updates the time displays of the playback widget. | |
Public Member Functions | |
PlaybackWidget (MainWindow *parent) | |
MetaObject macro for using signals and slots. | |
~PlaybackWidget () | |
Destructs this PlaybackWidget object. | |
void | reset () |
Resets the widgets. | |
void | setSliderValue (int value) |
Sets the value of the slider object. | |
int | getSliderValue () |
Gets the current value of the slider. | |
Public Attributes | |
Ui::PlaybackWidget * | ui |
UI object which holds all the widgets. |
Class for simulation and kinematic playback.
PlaybackWidget::PlaybackWidget | ( | MainWindow * | parent | ) |
MetaObject macro for using signals and slots.
Constructs a PlaybackWidget object
parent | Object that creates the PlaybackWidget object |
int PlaybackWidget::getSliderValue | ( | ) |
Gets the current value of the slider.
void PlaybackWidget::setSliderValue | ( | int | value | ) |
Sets the value of the slider object.
value | Value to set slider to |
void PlaybackWidget::slotSetTimeDisplays | ( | double | sim_time, |
double | rel_time | ||
) | [slot] |
Updates the time displays of the playback widget.
sim_time | Current simulation time for playback |
rel_time | Simulation time relative to real time |
void PlaybackWidget::slotUpdateSliderMinMax | ( | int | min, |
int | max | ||
) | [slot] |
Updates the min and max of the slider widget.
min | The new minimum value of the slider |
max | The new maximum value of the slider |