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:
[legend]
Collaboration diagram for ccApplyTransformationDlg:
[legend]

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.

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.

References updateAll().

Referenced by ccApplyTransformationDlg().

◆ checkMatrixValidityAndAccept

void ccApplyTransformationDlg::checkMatrixValidityAndAccept ( )
protectedslot

Checks matrix validity and 'accept' dialog if ok.

References ccGLMatrixTpl< float >::FromString(), s_currentFormIndex, s_inverseMatrix, and s_lastMatrix().

Referenced by ccApplyTransformationDlg().

◆ getTransformation()

ccGLMatrixd ccApplyTransformationDlg::getTransformation ( ) const

◆ initFromDipAndDipDir

◆ loadFromASCIIFile

void ccApplyTransformationDlg::loadFromASCIIFile ( )
protectedslot

◆ loadFromClipboard

void ccApplyTransformationDlg::loadFromClipboard ( )
protectedslot

Loads matrix from clipboard ("paste")

References CVLog::Warning().

Referenced by ccApplyTransformationDlg().

◆ onEulerValueChanged

void ccApplyTransformationDlg::onEulerValueChanged ( double  )
protectedslot

◆ onMatrixTextChange

void ccApplyTransformationDlg::onMatrixTextChange ( )
protectedslot

Automatically removes anything between square brackets, and update the other forms

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.

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: