ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccApplyTransformationDlg Class Reference

Dialog to input a 4x4 matrix. More...

#include <ecvApplyTransformationDlg.h>

Inheritance diagram for ccApplyTransformationDlg:
Collaboration diagram for ccApplyTransformationDlg:

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...
 

Detailed Description

Dialog to input a 4x4 matrix.

Definition at line 16 of file ecvApplyTransformationDlg.h.

Constructor & Destructor Documentation

◆ ccApplyTransformationDlg()

ccApplyTransformationDlg::ccApplyTransformationDlg ( QWidget *  parent = 0)
explicit

Member Function Documentation

◆ buttonClicked

void ccApplyTransformationDlg::buttonClicked ( QAbstractButton *  button)
protectedslot

Signal called when a button is clicked.

Definition at line 377 of file ecvApplyTransformationDlg.cpp.

References updateAll().

Referenced by ccApplyTransformationDlg().

◆ checkMatrixValidityAndAccept

void ccApplyTransformationDlg::checkMatrixValidityAndAccept ( )
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().

◆ getTransformation()

ccGLMatrixd ccApplyTransformationDlg::getTransformation ( ) const

Returns input matrix.

Definition at line 259 of file ecvApplyTransformationDlg.cpp.

References ccGLMatrixTpl< double >::FromString(), and ccGLMatrixTpl< T >::invert().

◆ initFromDipAndDipDir

◆ loadFromASCIIFile

void ccApplyTransformationDlg::loadFromASCIIFile ( )
protectedslot

◆ loadFromClipboard

void ccApplyTransformationDlg::loadFromClipboard ( )
protectedslot

Loads matrix from clipboard ("paste")

Definition at line 320 of file ecvApplyTransformationDlg.cpp.

References CVLog::Warning().

Referenced by ccApplyTransformationDlg().

◆ onEulerValueChanged

void ccApplyTransformationDlg::onEulerValueChanged ( double  )
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().

◆ onMatrixTextChange

void ccApplyTransformationDlg::onMatrixTextChange ( )
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().

◆ onRotAngleValueChanged

void ccApplyTransformationDlg::onRotAngleValueChanged ( double  )
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().

◆ updateAll()

void ccApplyTransformationDlg::updateAll ( const ccGLMatrix mat,
bool  textForm = true,
bool  axisAngleForm = true,
bool  eulerForm = true 
)
protected

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