DinverDCGui/ViewerParam.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of DinverDCGui.
00004 **
00005 **  This file may be distributed and/or modified under the terms of the
00006 **  GNU General Public License version 2 or 3 as published by the Free
00007 **  Software Foundation and appearing in the file LICENSE.GPL included
00008 **  in the packaging of this file.
00009 **
00010 **  This file is distributed in the hope that it will be useful, but WITHOUT
00011 **  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 **  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
00013 **  more details.
00014 **
00015 **  You should have received a copy of the GNU General Public License
00016 **  along with this program. If not, see <http://www.gnu.org/licenses/>.
00017 **
00018 **  See http://www.geopsy.org for more information.
00019 **
00020 **  Created : 2006-05-19
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (LGIT, Grenoble, France)
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 } // namespace DinverDCGui
00080 
00081 #endif // VIEWERPARAM_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines