![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Simple widget to display a 4x4 matrix in various formats. More...
#include <matrixDisplayDlg.h>


Public Slots | |
| void | exportToASCII () |
| Exports current matrix to an ASCII file. More... | |
| void | exportToClipboard () |
| Exports current matrix to the clipboard. More... | |
Public Member Functions | |
| MatrixDisplayDlg (QWidget *parent=0) | |
| Default constructor. More... | |
| void | clear () |
| Clears widget. More... | |
| void | fillDialogWith (const ccGLMatrix &mat) |
| Updates dialog with a given (float) matrix. More... | |
| void | fillDialogWith (const ccGLMatrixd &mat) |
| Updates dialog with a given (double) matrix. More... | |
Protected Member Functions | |
| void | fillDialogWith (const CCVector3d &axis, double angle_rad, const CCVector3d &T, int precision) |
| Fills the second part of the dialog. More... | |
Protected Attributes | |
| ccGLMatrixd | m_mat |
| Matrix. More... | |
Simple widget to display a 4x4 matrix in various formats.
Definition at line 17 of file matrixDisplayDlg.h.
|
explicit |
Default constructor.
Definition at line 22 of file matrixDisplayDlg.cpp.
References exportToASCII(), and exportToClipboard().
| void MatrixDisplayDlg::clear | ( | void | ) |
Clears widget.
Definition at line 94 of file matrixDisplayDlg.cpp.
References m_mat, and ccGLMatrixTpl< T >::toZero().
Referenced by ccPropertiesTreeDelegate::setEditorData().
|
slot |
Exports current matrix to an ASCII file.
Will display a file selection dialog!
Definition at line 102 of file matrixDisplayDlg.cpp.
References ecvPS::CurrentPath(), ecvFileUtils::defaultDocPath(), CVLog::Error(), ecvPS::LoadFile(), m_mat, CVLog::Print(), and ccGLMatrixTpl< T >::toAsciiFile().
Referenced by MatrixDisplayDlg().
|
slot |
Exports current matrix to the clipboard.
Definition at line 128 of file matrixDisplayDlg.cpp.
References m_mat, CVLog::Print(), and ccGLMatrixTpl< T >::toString().
Referenced by MatrixDisplayDlg().
| void MatrixDisplayDlg::fillDialogWith | ( | const ccGLMatrix & | mat | ) |
Updates dialog with a given (float) matrix.
Definition at line 34 of file matrixDisplayDlg.cpp.
References ccGLMatrixTpl< T >::data(), ecvGui::ParamStruct::displayedNumPrecision, Vector3Tpl< double >::fromArray(), ccGLMatrixTpl< T >::getParameters(), m_mat, ecvGui::Parameters(), ccGLMatrixTpl< T >::toString(), and Tuple3Tpl< Type >::u.
Referenced by fillDialogWith(), and ccPropertiesTreeDelegate::setEditorData().
| void MatrixDisplayDlg::fillDialogWith | ( | const ccGLMatrixd & | mat | ) |
Updates dialog with a given (double) matrix.
Definition at line 53 of file matrixDisplayDlg.cpp.
References ecvGui::ParamStruct::displayedNumPrecision, fillDialogWith(), ccGLMatrixTpl< T >::getParameters(), m_mat, ecvGui::Parameters(), and ccGLMatrixTpl< T >::toString().
|
protected |
Fills the second part of the dialog.
Definition at line 71 of file matrixDisplayDlg.cpp.
References cloudViewer::RadiansToDegrees(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
|
protected |
Matrix.
Definition at line 49 of file matrixDisplayDlg.h.
Referenced by clear(), exportToASCII(), exportToClipboard(), and fillDialogWith().