|
cisst-saw
|
#include <vctForceTorqueQtWidget.h>
Public Types | |
| enum | DisplayModeType { UNDEFINED_WIDGET , TEXT_WIDGET , PLOT_2D_WIDGET , PLOT_3D_WIDGET } |
Public Member Functions | |
| vctForceTorqueQtWidget (const DisplayModeType displayMode=PLOT_3D_WIDGET) | |
| ~vctForceTorqueQtWidget (void) | |
| void | SetValue (const vct3 &force, const vct3 &torque, const double &time=0.0) |
| void | SetDisplayMode (const DisplayModeType displayMode) |
Protected Slots | |
| void | ShowContextMenu (const QPoint &position) |
Protected Member Functions | |
| void | UpdateCurrentWidget (void) |
Protected Attributes | |
| DisplayModeType | DisplayMode |
| vct3 | mForce |
| vct3 | mTorque |
| double | mTime |
| vctQtWidgetDynamicVectorDoubleRead * | ForceWidget |
| vctQtWidgetDynamicVectorDoubleRead * | TorqueWidget |
| vctQtWidgetDynamicVectorDoubleRead * | NormWidget |
| QWidget * | ForceTorqueWidget |
| vctForceTorque2DQtWidget * | Plot2DWidget |
| vctForceTorque3DQtWidget * | Plot3DWidget |
| QWidget * | CurrentWidget |
| QVBoxLayout * | Layout |
Qt Widget to display force/torque using cisstVector.
| vctForceTorqueQtWidget::vctForceTorqueQtWidget | ( | const DisplayModeType | displayMode = PLOT_3D_WIDGET | ) |
Constructor. Default display mode is 2D plot. See also SetDisplayMode.
|
inline |
| void vctForceTorqueQtWidget::SetDisplayMode | ( | const DisplayModeType | displayMode | ) |
Set the display mode, i.e. the widget used to represent the wrench. Options are TEXT_WIDGET (just numbers), PLOT_2D_WIDGET (x, y, z plot over time), PLOT_3D_WIDGET (3D lines representing force/torque direction and amplitude). Please note that the display mode UNDEFINED_WIDGET will be silently ignored.
|
inline |
Set the force and torque. For 2D plot, time is needed as well.
|
protectedslot |
Contextual menu showed when the user right clicks on the widget
|
protected |
Update the content of the current widget. This method is called when the user provides a new wrench with SetValue or when the widget used to display the wrench is changed using SetDisplayMode.
|
protected |
|
protected |
Current display mode, somewhat redundant with the CurrentWidget pointer. The current widget should always be set by changing the DisplayMode.
|
protected |
|
protected |
|
protected |
|
protected |
Internal representation for the wrench/time to display.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |