cisst-saw
Loading...
Searching...
No Matches
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)
void SetPrismaticRevoluteFactors (const double &CMN_UNUSED(prismatic), const double &revolute)

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
double mRevoluteFactor

Detailed Description

Qt Widget to display a rotation using cisstVector.

Member Enumeration Documentation

◆ DisplayModeType

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::vctQtWidgetRotationDoubleRead ( const DisplayModeType displayMode = MATRIX_WIDGET)

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

◆ ~vctQtWidgetRotationDoubleRead()

vctQtWidgetRotationDoubleRead::~vctQtWidgetRotationDoubleRead ( void )
inline

Member Function Documentation

◆ SetDisplayMode()

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.

◆ SetPrismaticRevoluteFactors()

void vctQtWidgetRotationDoubleRead::SetPrismaticRevoluteFactors ( const double & CMN_UNUSEDprismatic,
const double & revolute )
inline

◆ SetValue()

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.

◆ ShowContextMenu

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

Contextual menu showed when the user right clicks on the widget

◆ UpdateCurrentWidget()

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

◆ AngleWidget

vctQtWidgetDynamicVectorDoubleRead* vctQtWidgetRotationDoubleRead::AngleWidget
protected

◆ AxisAngleWidget

QWidget* vctQtWidgetRotationDoubleRead::AxisAngleWidget
protected

◆ AxisWidget

vctQtWidgetDynamicVectorDoubleRead* vctQtWidgetRotationDoubleRead::AxisWidget
protected

◆ CurrentWidget

QWidget* vctQtWidgetRotationDoubleRead::CurrentWidget
protected

◆ DisplayMode

DisplayModeType vctQtWidgetRotationDoubleRead::DisplayMode
protected

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

◆ EulerZYXWidget

vctQtWidgetDynamicVectorDoubleRead* vctQtWidgetRotationDoubleRead::EulerZYXWidget
protected

◆ EulerZYZWidget

vctQtWidgetDynamicVectorDoubleRead* vctQtWidgetRotationDoubleRead::EulerZYZWidget
protected

◆ Layout

QVBoxLayout* vctQtWidgetRotationDoubleRead::Layout
protected

◆ MatrixWidget

vctQtWidgetDynamicMatrixDoubleRead* vctQtWidgetRotationDoubleRead::MatrixWidget
protected

◆ mRevoluteFactor

double vctQtWidgetRotationDoubleRead::mRevoluteFactor
protected

◆ OpenGLWidget

vctQtWidgetRotationOpenGL* vctQtWidgetRotationDoubleRead::OpenGLWidget
protected

◆ QuaternionWidget

vctQtWidgetDynamicVectorDoubleRead* vctQtWidgetRotationDoubleRead::QuaternionWidget
protected

◆ Rotation

vctMatRot3 vctQtWidgetRotationDoubleRead::Rotation
protected

Internal representation for the rotation to display.


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