![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Dialog to input a 4x4 matrix. More...
#include <ecvApplyTransformationDlg.h>


Public Member Functions | |
| ccApplyTransformationDlg (QWidget *parent=0) | |
| Default constructor. More... | |
| ccGLMatrixd | getTransformation () const |
| Returns input matrix. More... | |
Protected Slots | |
| void | checkMatrixValidityAndAccept () |
| Checks matrix validity and 'accept' dialog if ok. More... | |
| void | onMatrixTextChange () |
| void | onRotAngleValueChanged (double) |
| Updates dialog when a component of the rotation axis/angle form changes. More... | |
| void | onEulerValueChanged (double) |
| Updates dialog when a component of the euleur form changes. More... | |
| void | loadFromASCIIFile () |
| Loads matrix from ASCII file. More... | |
| void | loadFromClipboard () |
| Loads matrix from clipboard ("paste") More... | |
| void | initFromDipAndDipDir () |
| Inits matrix from dip / dip direction values. More... | |
| void | buttonClicked (QAbstractButton *) |
| Signal called when a button is clicked. More... | |
Protected Member Functions | |
| void | updateAll (const ccGLMatrix &mat, bool textForm=true, bool axisAngleForm=true, bool eulerForm=true) |
| Updates all forms with a given matrix. More... | |
Dialog to input a 4x4 matrix.
Definition at line 16 of file ecvApplyTransformationDlg.h.
|
explicit |
Default constructor.
Definition at line 51 of file ecvApplyTransformationDlg.cpp.
References buttonClicked(), checkMatrixValidityAndAccept(), initFromDipAndDipDir(), loadFromASCIIFile(), loadFromClipboard(), onEulerValueChanged(), onMatrixTextChange(), onRotAngleValueChanged(), s_currentFormIndex, s_inverseMatrix, and s_lastMatrix().
|
protectedslot |
Signal called when a button is clicked.
Definition at line 377 of file ecvApplyTransformationDlg.cpp.
References updateAll().
Referenced by ccApplyTransformationDlg().
|
protectedslot |
Checks matrix validity and 'accept' dialog if ok.
Definition at line 274 of file ecvApplyTransformationDlg.cpp.
References ccGLMatrixTpl< float >::FromString(), s_currentFormIndex, s_inverseMatrix, and s_lastMatrix().
Referenced by ccApplyTransformationDlg().
| ccGLMatrixd ccApplyTransformationDlg::getTransformation | ( | ) | const |
Returns input matrix.
Definition at line 259 of file ecvApplyTransformationDlg.cpp.
References ccGLMatrixTpl< double >::FromString(), and ccGLMatrixTpl< T >::invert().
|
protectedslot |
Inits matrix from dip / dip direction values.
Definition at line 331 of file ecvApplyTransformationDlg.cpp.
References ccNormalVectors::ConvertDipAndDipDirToNormal(), ccGLMatrixTpl< float >::FromToRotation(), ccHObject::getBB_recursive(), cloudViewer::BoundingBoxTpl< T >::getCenter(), MainWindow::getSelectedEntities(), cloudViewer::BoundingBoxTpl< T >::isValid(), ccGLMatrixTpl< T >::setTranslation(), MainWindow::TheInstance(), and updateAll().
Referenced by ccApplyTransformationDlg().
|
protectedslot |
Loads matrix from ASCII file.
Definition at line 295 of file ecvApplyTransformationDlg.cpp.
References ecvPS::CurrentPath(), ecvFileUtils::defaultDocPath(), CVLog::Error(), ccGLMatrixTpl< T >::fromAsciiFile(), ecvPS::LoadFile(), and ccGLMatrixTpl< T >::toString().
Referenced by ccApplyTransformationDlg().
|
protectedslot |
Loads matrix from clipboard ("paste")
Definition at line 320 of file ecvApplyTransformationDlg.cpp.
References CVLog::Warning().
Referenced by ccApplyTransformationDlg().
|
protectedslot |
Updates dialog when a component of the euleur form changes.
Definition at line 170 of file ecvApplyTransformationDlg.cpp.
References cloudViewer::DegreesToRadians(), ccGLMatrixTpl< T >::initFromParameters(), updateAll(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by ccApplyTransformationDlg().
|
protectedslot |
Automatically removes anything between square brackets, and update the other forms
Definition at line 132 of file ecvApplyTransformationDlg.cpp.
References ccGLMatrixTpl< float >::FromString(), and updateAll().
Referenced by ccApplyTransformationDlg().
|
protectedslot |
Updates dialog when a component of the rotation axis/angle form changes.
Definition at line 151 of file ecvApplyTransformationDlg.cpp.
References cloudViewer::DegreesToRadians(), ccGLMatrixTpl< T >::initFromParameters(), updateAll(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by ccApplyTransformationDlg().
|
protected |
Updates all forms with a given matrix.
Definition at line 190 of file ecvApplyTransformationDlg.cpp.
References cloudViewer::DegreesToRadians(), ccGLMatrixTpl< T >::getParameters(), ccGLMatrixTpl< T >::toString(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by buttonClicked(), initFromDipAndDipDir(), onEulerValueChanged(), onMatrixTextChange(), and onRotAngleValueChanged().