gplivemodel/MagnetoTelluricThread.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of gplivemodel.
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: 2010-06-15
00021 **  Authors:
00022 **    Marc Wathelet (LGIT, Grenoble, France)
00023 **
00024 ***************************************************************************/
00025 
00026 #ifndef MAGNETOTELLURICTHREAD_H
00027 #define MAGNETOTELLURICTHREAD_H
00028 
00029 #include <QGpCoreWave.h>
00030 
00031 #include "CurvesThread.h"
00032 
00033 class MagnetoTelluricThread : public CurvesThread
00034 {
00035 public:
00036   MagnetoTelluricThread(QObject * parent=0);
00037   MagnetoTelluricThread(const MagnetoTelluricThread& o);
00038   ~MagnetoTelluricThread();
00039 
00040   virtual ResultsThread * clone() const {return new MagnetoTelluricThread(*this);}
00041 
00042   virtual bool setParameters(int& argc, char ** argv);
00043   virtual void initModelGraphs(GraphicSheet * sheet);
00044   virtual void initModelGraphs(const ResultsThread& o);
00045 
00046   virtual void initResultsGraphs(GraphicSheet * sheet);
00047   virtual void initResultsGraphs(const ResultsThread& o);
00048 
00049   virtual void addModel(GeophysicalModel * m);
00050   virtual void setModel(GeophysicalModel * m);
00051   virtual void clear();
00052 
00053   virtual void modelDeepUpdate();
00054   virtual void resultsDeepUpdate();
00055   virtual void setModelLimits();
00056   virtual void setResultsLimits();
00057   virtual LegendWidget * legend() const {return _leg;}
00058 private slots:
00059   virtual void showCurves();
00060 private:
00061   virtual GeophysicalModel * createModel() const {return new Resistivity1DModel;}
00062   virtual void run();
00063   virtual void run(GeophysicalModel * m);
00064 
00065   LineLayer * _res;
00066   LineLayer * _appRes;
00067   LineLayer * _phase;
00068   LegendWidget * _leg;
00069   QList<MagnetoTelluricCurve> _curves;
00070 };
00071 
00072 #endif // MAGNETOTELLURICTHREAD_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines