//########################################################################## //# # //# CLOUDCOMPARE PLUGIN: qSRA # //# # //# This program is free software; you can redistribute it and/or modify # //# it under the terms of the GNU General Public License as published by # //# the Free Software Foundation; version 2 or later of the License. # //# # //# This program is distributed in the hope that it will be useful, # //# but WITHOUT ANY WARRANTY; without even the implied warranty of # //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # //# GNU General Public License for more details. # //# # //# COPYRIGHT: EDF # //# # //########################################################################## #ifndef QSRA_PROFILE_IMPORT_DLG_HEADER #define QSRA_PROFILE_IMPORT_DLG_HEADER #include "ui_profileImportDlg.h" //! Dialog for importing a 2D revolution profile (qSRA plugin) class ProfileImportDlg : public QDialog, public Ui::ProfileImportDlg { Q_OBJECT public: //! Default constructor explicit ProfileImportDlg(QWidget* parent = nullptr); //! Returns revolution axis dimension index /** \return 0(X), 1(Y) or 2(Z). **/ int getAxisDimension() const; //! Sets default filename void setDefaultFilename(QString filename); //! Returns input filename (on completion) QString getFilename() const; //! Returns whether the profile heights are absolute or not (i.e. relative to the center) bool absoluteHeightValues() const; protected: //! Called when the 'browse' tool button is pressed void browseFile(); }; #endif //QSRA_PROFILE_IMPORT_DLG_HEADER