Widget to control joints via application of force.
More...
#include <JointControlWidget.hh>
Inherits QWidget.
|
| void | OnChanged (double _value) |
| | On force changed callback.
|
|
| void | changed (double _value, const std::string &_name) |
| | QT changed signal, used to report the change to the joint controller widget.
|
|
| | JointForceControl (const std::string &_name, QGridLayout *_layout, QWidget *_parent, int _index) |
| | Constructor.
|
| virtual | ~JointForceControl () |
| | Destructor.
|
| void | Reset () |
| | Reset the controls.
|
| void | SetForce (const double _force) |
| | Set the control force.
|
| void | SetShowActive (const bool _active) |
| | Indicate whether controls are active by highlighting them.
|
Widget to control joints via application of force.
◆ JointForceControl()
| JointForceControl |
( |
const std::string & | _name, |
|
|
QGridLayout * | _layout, |
|
|
QWidget * | _parent, |
|
|
int | _index ) |
Constructor.
- Parameters
-
| [in] | _name | Name of the joint. |
| [in] | _layout | Layout to add the control to. |
| [in] | _parent | Parent of the widget. |
| [in] | _index | Row index into the grid layout. |
◆ ~JointForceControl()
◆ changed
| void changed |
( |
double | _value, |
|
|
const std::string & | _name ) |
|
signal |
QT changed signal, used to report the change to the joint controller widget.
- Parameters
-
| [in] | _value | Value of the slider. |
| [in] | _name | Name of the joint. |
◆ OnChanged
| void OnChanged |
( |
double | _value | ) |
|
|
slot |
On force changed callback.
- Parameters
-
| [in] | _value | Value of the changed slider. |
◆ Reset()
◆ SetForce()
| void SetForce |
( |
const double | _force | ) |
|
Set the control force.
- Parameters
-
| [in] | _force | Value of the control force. |
◆ SetShowActive()
| void SetShowActive |
( |
const bool | _active | ) |
|
Indicate whether controls are active by highlighting them.
- Parameters
-
| [in] | _active | Whether the joint control is active or not. |
The documentation for this class was generated from the following file: