NDEVR
API Documentation
MatrixEditor

A simple widget that shows a modifiable 4x4 matrix and corresponding widgets for editing a 4x4 matrix. More...

Collaboration diagram for MatrixEditor:
[legend]

Public Member Functions

 MatrixEditor (QWidget *parent=nullptr)
 Constructs a MatrixEditor widget.
void edited ()
 Emitted when the matrix has been modified by the user.
bool hasParent ()
 Checks whether a parent matrix has been set.
OrientationEditororientationWidget ()
 Returns the orientation editor sub-widget.
void setEditable (bool editable)
 Sets whether the matrix fields are editable by the user.
void setParentMatrix (const Matrix< fltp08, 4, 4 > &matrix)
 Sets the parent transformation matrix used as a reference frame.
void updateOrientation ()
 Updates the orientation editor to reflect the current matrix value.

Public Attributes

Resource< Matrix< fltp08, 4, 4 > > matrix
 The 4x4 transformation matrix resource being edited.

Protected Member Functions

void OrientationEdited ()
 Slot called when the orientation editor values change, to sync back to the matrix.
void updateMatrix ()
 Slot that updates the matrix resource from the UI field values.

Detailed Description

A simple widget that shows a modifiable 4x4 matrix and corresponding widgets for editing a 4x4 matrix.


Definition at line 45 of file MatrixEditor.h.

Constructor & Destructor Documentation

◆ MatrixEditor()

MatrixEditor::MatrixEditor ( QWidget * parent = nullptr)

Constructs a MatrixEditor widget.

Parameters
[in]parentThe parent widget.

References MatrixEditor().

Referenced by MatrixEditor().

Member Function Documentation

◆ hasParent()

bool MatrixEditor::hasParent ( )

Checks whether a parent matrix has been set.

Returns
True if a non-identity parent matrix is present.

◆ orientationWidget()

OrientationEditor * MatrixEditor::orientationWidget ( )

Returns the orientation editor sub-widget.

Returns
A pointer to the OrientationEditor widget.

◆ setEditable()

void MatrixEditor::setEditable ( bool editable)

Sets whether the matrix fields are editable by the user.

Parameters
[in]editableTrue to allow editing, false to make read-only.

◆ setParentMatrix()

void MatrixEditor::setParentMatrix ( const Matrix< fltp08, 4, 4 > & matrix)

Sets the parent transformation matrix used as a reference frame.

Parameters
[in]matrixThe parent 4x4 transformation matrix.

References matrix.


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