![]() |
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.
|
explicit |
Default constructor.
References buttonClicked(), checkMatrixValidityAndAccept(), initFromDipAndDipDir(), loadFromASCIIFile(), loadFromClipboard(), onEulerValueChanged(), onMatrixTextChange(), onRotAngleValueChanged(), s_currentFormIndex, s_inverseMatrix, and s_lastMatrix().
|
protectedslot |
Signal called when a button is clicked.
References updateAll().
Referenced by ccApplyTransformationDlg().
|
protectedslot |
Checks matrix validity and 'accept' dialog if ok.
References ccGLMatrixTpl< float >::FromString(), s_currentFormIndex, s_inverseMatrix, and s_lastMatrix().
Referenced by ccApplyTransformationDlg().
| ccGLMatrixd ccApplyTransformationDlg::getTransformation | ( | ) | const |
Returns input matrix.
References ccGLMatrixTpl< double >::FromString(), and ccGLMatrixTpl< T >::invert().
|
protectedslot |
Inits matrix from dip / dip direction values.
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.
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")
References CVLog::Warning().
Referenced by ccApplyTransformationDlg().
|
protectedslot |
Updates dialog when a component of the euleur form changes.
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
References ccGLMatrixTpl< float >::FromString(), and updateAll().
Referenced by ccApplyTransformationDlg().
|
protectedslot |
Updates dialog when a component of the rotation axis/angle form changes.
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.
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().