ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvApplyTransformationDlg.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <ui_applyTransformationDlg.h>
11 
12 // CV_DB_LIB
13 #include <ecvGLMatrix.h>
14 
16 class ccApplyTransformationDlg : public QDialog,
17  public Ui::ApplyTransformationDialog {
18  Q_OBJECT
19 
20 public:
22  explicit ccApplyTransformationDlg(QWidget* parent = 0);
23 
26 
27 protected slots:
28 
31 
34  void onMatrixTextChange();
35 
37  void onRotAngleValueChanged(double);
39  void onEulerValueChanged(double);
40 
42  void loadFromASCIIFile();
44  void loadFromClipboard();
46  void initFromDipAndDipDir();
47 
49  void buttonClicked(QAbstractButton*);
50 
51 protected:
53  void updateAll(const ccGLMatrix& mat,
54  bool textForm = true,
55  bool axisAngleForm = true,
56  bool eulerForm = true);
57 };
#define slots
Dialog to input a 4x4 matrix.
void onEulerValueChanged(double)
Updates dialog when a component of the euleur form changes.
void updateAll(const ccGLMatrix &mat, bool textForm=true, bool axisAngleForm=true, bool eulerForm=true)
Updates all forms with a given matrix.
void onRotAngleValueChanged(double)
Updates dialog when a component of the rotation axis/angle form changes.
ccApplyTransformationDlg(QWidget *parent=0)
Default constructor.
ccGLMatrixd getTransformation() const
Returns input matrix.
void loadFromASCIIFile()
Loads matrix from ASCII file.
void buttonClicked(QAbstractButton *)
Signal called when a button is clicked.
void checkMatrixValidityAndAccept()
Checks matrix validity and 'accept' dialog if ok.
void loadFromClipboard()
Loads matrix from clipboard ("paste")
void initFromDipAndDipDir()
Inits matrix from dip / dip direction values.
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56