Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef VIEWERPARAM_H
00028 #define VIEWERPARAM_H
00029
00030 #include <QGpCoreWave.h>
00031 #include <QGpGuiTools.h>
00032
00033 #include "ui_ViewerParam.h"
00034 #include "DinverDCGuiDLLExport.h"
00035
00036 namespace DinverDCGui {
00037
00038 class DCModelViewer;
00039
00040 class DINVERDCGUI_EXPORT ViewerParam : public Dialog, protected Ui::ViewerParam
00041 {
00042 Q_OBJECT
00043 public:
00044 ViewerParam(QWidget * parent=0);
00045
00046 DCModelViewer * groundProfile(QStringList reportFileNames) {return setViewer(0, reportFileNames);}
00047 DCModelViewer * dispersion(QStringList reportFileNames) {return setViewer(1, reportFileNames);}
00048 DCModelViewer * autocorr(QStringList reportFileNames) {return setViewer(2, reportFileNames);}
00049 DCModelViewer * ellipticity(QStringList reportFileNames) {return setViewer(3, reportFileNames);}
00050 DCModelViewer * refractionVp(QStringList reportFileNames) {return setViewer(4, reportFileNames);}
00051 DCModelViewer * refractionVs(QStringList reportFileNames) {return setViewer(5, reportFileNames);}
00052 DCModelViewer * magnetoTelluric(QStringList reportFileNames) {return setViewer(6, reportFileNames);}
00053 void select(DCModelViewer * w, const QVector<int> * indexes);
00054 void reject(DCModelViewer * w, const QVector<int> * indexes);
00055 private slots:
00056 void on_viewer_currentIndexChanged(int index);
00057 private:
00058 DCModelViewer * setViewer(int index, QStringList reportFileNames);
00059
00060 void setModeEnabled(bool e);
00061 void setModeSlownessEnabled(bool e);
00062 void setModeIndexEnabled(bool e);
00063 void setAxisEnabled(bool e);
00064
00065 void setModePolarisationRL();
00066 void setModePolarisationVRT();
00067
00068 void removeMaxMisfit();
00069 void removeMode();
00070 void removeModeSlowness();
00071 void removeModeIndex();
00072 void removeAxis();
00073
00074 bool exec();
00075 Mode mode() const;
00076 DCModelViewer * createViewer(int index);
00077 };
00078
00079 }
00080
00081 #endif // VIEWERPARAM_H