ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
matrixDisplayDlg.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 // Qt
11 #include <ecvGLMatrix.h>
12 #include <ui_matrixDisplayDlg.h>
13 
14 #include <QWidget>
15 
17 class MatrixDisplayDlg : public QWidget, public Ui::MatrixDisplayDlg {
18  Q_OBJECT
19 
20 public:
22  explicit MatrixDisplayDlg(QWidget* parent = 0);
23 
25  void clear();
26 
28  void fillDialogWith(const ccGLMatrix& mat);
30  void fillDialogWith(const ccGLMatrixd& mat);
31 
32 public slots:
33 
35 
37  void exportToASCII();
39  void exportToClipboard();
40 
41 protected:
43  void fillDialogWith(const CCVector3d& axis,
44  double angle_rad,
45  const CCVector3d& T,
46  int precision);
47 
50 };
#define slots
Simple widget to display a 4x4 matrix in various formats.
void exportToASCII()
Exports current matrix to an ASCII file.
void clear()
Clears widget.
MatrixDisplayDlg(QWidget *parent=0)
Default constructor.
void exportToClipboard()
Exports current matrix to the clipboard.
ccGLMatrixd m_mat
Matrix.
void fillDialogWith(const ccGLMatrix &mat)
Updates dialog with a given (float) matrix.
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56