Debian Codegraph @

plugins/core/Standard/qSRA/include/profileImportDlg.h

raw
1 //##########################################################################
2 //# #
3 //# CLOUDCOMPARE PLUGIN: qSRA #
4 //# #
5 //# This program is free software; you can redistribute it and/or modify #
6 //# it under the terms of the GNU General Public License as published by #
7 //# the Free Software Foundation; version 2 or later of the License. #
8 //# #
9 //# This program is distributed in the hope that it will be useful, #
10 //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
11 //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12 //# GNU General Public License for more details. #
13 //# #
14 //# COPYRIGHT: EDF #
15 //# #
16 //##########################################################################
17
18 #ifndef QSRA_PROFILE_IMPORT_DLG_HEADER
19 #define QSRA_PROFILE_IMPORT_DLG_HEADER
20
21 #include "ui_profileImportDlg.h"
22
23 //! Dialog for importing a 2D revolution profile (qSRA plugin)
24 class ProfileImportDlg : public QDialog, public Ui::ProfileImportDlg
25 {
26 Q_OBJECT
27
28 public:
29
30 //! Default constructor
31 explicit ProfileImportDlg(QWidget* parent = nullptr);
32
33 //! Returns revolution axis dimension index
34 /** \return 0(X), 1(Y) or 2(Z).
35 **/
36 int getAxisDimension() const;
37
38 //! Sets default filename
39 void setDefaultFilename(QString filename);
40
41 //! Returns input filename (on completion)
42 QString getFilename() const;
43
44 //! Returns whether the profile heights are absolute or not (i.e. relative to the center)
45 bool absoluteHeightValues() const;
46
47 protected:
48
49 //! Called when the 'browse' tool button is pressed
50 void browseFile();
51
52 };
53
54 #endif //QSRA_PROFILE_IMPORT_DLG_HEADER