![]() |
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.
|
explicit |
Default constructor.
References exportToASCII(), and exportToClipboard().
| void MatrixDisplayDlg::clear | ( | ) |
Clears widget.
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!
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.
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.
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.
References ecvGui::ParamStruct::displayedNumPrecision, fillDialogWith(), ccGLMatrixTpl< T >::getParameters(), m_mat, ecvGui::Parameters(), and ccGLMatrixTpl< T >::toString().
|
protected |
Fills the second part of the dialog.
References cloudViewer::RadiansToDegrees(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
|
protected |
Matrix.
Referenced by clear(), exportToASCII(), exportToClipboard(), and fillDialogWith().