cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
vctQtWidgetRotationDoubleRead Class Reference

#include <vctQtWidgetRotation.h>

Inheritance diagram for vctQtWidgetRotationDoubleRead:

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)
 

Protected Attributes

DisplayModeType DisplayMode
 
vctMatRot3 Rotation
 
vctQtWidgetDynamicMatrixDoubleReadMatrixWidget
 
vctQtWidgetDynamicVectorDoubleReadAxisWidget
 
vctQtWidgetDynamicVectorDoubleReadAngleWidget
 
QWidget * AxisAngleWidget
 
vctQtWidgetDynamicVectorDoubleReadQuaternionWidget
 
vctQtWidgetDynamicVectorDoubleReadEulerZYZWidget
 
vctQtWidgetDynamicVectorDoubleReadEulerZYXWidget
 
vctQtWidgetRotationOpenGLOpenGLWidget
 
QWidget * CurrentWidget
 
QVBoxLayout * Layout
 

Detailed Description

Qt Widget to display a rotation using cisstVector.

Member Enumeration Documentation

Possible display modes. See SetDisplayMode method. Please note that UNDEFINED_WIDGET should never be used.

Enumerator
UNDEFINED_WIDGET 
MATRIX_WIDGET 
AXIS_ANGLE_WIDGET 
QUATERNION_WIDGET 
EULERZYZ_WIDGET 
EULERZYX_WIDGET 
OPENGL_WIDGET 

Constructor & Destructor Documentation

vctQtWidgetRotationDoubleRead::vctQtWidgetRotationDoubleRead ( const DisplayModeType  displayMode = MATRIX_WIDGET)

Constructor. Default display mode is rotation matrix. See also SetDisplayMode.

vctQtWidgetRotationDoubleRead::~vctQtWidgetRotationDoubleRead ( void  )
inline

Member Function Documentation

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.

template<class _containerType >
void vctQtWidgetRotationDoubleRead::SetValue ( const vctMatrixRotation3ConstBase< _containerType > &  rotation)
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.

void vctQtWidgetRotationDoubleRead::ShowContextMenu ( const QPoint &  position)
protectedslot

Contextual menu showed when the user right clicks on the widget

void vctQtWidgetRotationDoubleRead::UpdateCurrentWidget ( void  )
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.

Member Data Documentation

vctQtWidgetDynamicVectorDoubleRead* vctQtWidgetRotationDoubleRead::AngleWidget
protected
QWidget* vctQtWidgetRotationDoubleRead::AxisAngleWidget
protected
vctQtWidgetDynamicVectorDoubleRead* vctQtWidgetRotationDoubleRead::AxisWidget
protected
QWidget* vctQtWidgetRotationDoubleRead::CurrentWidget
protected
DisplayModeType vctQtWidgetRotationDoubleRead::DisplayMode
protected

Current display mode, somewhat redundant with the CurrentWidget pointer. The current widget should always be set by changing the DisplayMode.

vctQtWidgetDynamicVectorDoubleRead* vctQtWidgetRotationDoubleRead::EulerZYXWidget
protected
vctQtWidgetDynamicVectorDoubleRead* vctQtWidgetRotationDoubleRead::EulerZYZWidget
protected
QVBoxLayout* vctQtWidgetRotationDoubleRead::Layout
protected
vctQtWidgetDynamicMatrixDoubleRead* vctQtWidgetRotationDoubleRead::MatrixWidget
protected
vctQtWidgetRotationOpenGL* vctQtWidgetRotationDoubleRead::OpenGLWidget
protected
vctQtWidgetDynamicVectorDoubleRead* vctQtWidgetRotationDoubleRead::QuaternionWidget
protected
vctMatRot3 vctQtWidgetRotationDoubleRead::Rotation
protected

Internal representation for the rotation to display.


The documentation for this class was generated from the following file: