cisst-saw
|
#include <vctQtWidgetRotation.h>
Public Types | |
enum | DisplayModeType { UNDEFINED_WIDGET, MATRIX_WIDGET, AXIS_ANGLE_WIDGET, QUATERNION_WIDGET, EULERZYZ_WIDGET, EULERZYX_WIDGET, OPENGL_WIDGET } |
Public Member Functions | |
vctQtWidgetRotationDoubleRead (const DisplayModeType displayMode=MATRIX_WIDGET) | |
~vctQtWidgetRotationDoubleRead (void) | |
template<class _containerType > | |
void | SetValue (const vctMatrixRotation3ConstBase< _containerType > &rotation) |
void | SetDisplayMode (const DisplayModeType displayMode) |
Protected Slots | |
void | ShowContextMenu (const QPoint &position) |
Protected Member Functions | |
void | UpdateCurrentWidget (void) |
Qt Widget to display a rotation using cisstVector.
vctQtWidgetRotationDoubleRead::vctQtWidgetRotationDoubleRead | ( | const DisplayModeType | displayMode = MATRIX_WIDGET | ) |
Constructor. Default display mode is rotation matrix. See also SetDisplayMode.
|
inline |
void vctQtWidgetRotationDoubleRead::SetDisplayMode | ( | const DisplayModeType | displayMode | ) |
Set the display mode, i.e. the widget used to represent the rotation. Options are rotation matrix, axis and angle, quaternion (displayed in order x, y, z, w), Euler angles (ZYZ or ZYX, in degrees), and 3D OpenGL based using red, green and blue axes. Please note that the display mode UNDEFINED_WIDGET will be silently ignored.
|
inline |
Set the rotation value to be displayed. This method assumes the rotation matrix is valid, i.e. normalized and will not perform any check or normalization.
|
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 rotation with SetValue or when the widget used to display the rotation is changed using SetDisplayMode.
|
protected |
|
protected |
|
protected |
|
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 |
|
protected |
|
protected |
|
protected |
Internal representation for the rotation to display.