QGpGuiWave/MagnetoTelluricProxy.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of QGpGuiWave.
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-05-21
00021 **  Authors:
00022 **    Marc Wathelet (LGIT, Grenoble, France)
00023 **
00024 ***************************************************************************/
00025 
00026 #ifndef MAGNETOTELLURICPROXY_H
00027 #define MAGNETOTELLURICPROXY_H
00028 
00029 #include <QGpGuiWave.h>
00030 
00031 #include "QGpGuiWaveDLLExport.h"
00032 
00033 namespace QGpGuiWave {
00034 
00035 class QGPGUIWAVE_EXPORT MagnetoTelluricProxy : public CurveBrowserProxy
00036 {
00037 public:
00038   virtual QString tag() const {return "MagnetoTelluricProxy";}
00039 
00040   virtual CurveBrowserProxy * clone() const {return new MagnetoTelluricProxy;}
00041 
00042   virtual int sampleCount() const;
00043   virtual void setFunction();
00044   virtual double minimumX() const;
00045   virtual double maximumX() const;
00046   virtual double minimumY(const CurvePointOptions * pointOptions) const;
00047   virtual double maximumY(const CurvePointOptions * pointOptions) const;
00048   virtual bool isValid(int sample) const;
00049   virtual void setValid(int sample, bool v);
00050   virtual void cut(double min, double max, SamplingOptions options);
00051   virtual void resample(int n, double min, double max,
00052                         SamplingOptions options,
00053                         double valX, double valY,
00054                         const CurvePointOptions * pointOptions);
00055   virtual void resample(int n, double min, double max,
00056                         SamplingOptions options);
00057   virtual void average(const CurveBrowserProxy * o);
00058   virtual void setName(const QString & n);
00059   virtual QString name() const;
00060   virtual void addLog(QString s);
00061   virtual QString log() const;
00062 
00063   virtual QString columnName(int col) const;
00064   virtual QString columnUnit(int col) const;
00065   virtual QString columnTitle(int col) const;
00066   virtual QVector<int> savedColumns() const;
00067   virtual QVariant columnValue(int sample, int col) const;
00068   virtual void setColumnValue(int sample, int col, const QVariant & value);
00069   virtual QStringList columnFileTypes() const;
00070   virtual QVector<int> defaultColumnFileTypes() const;
00071   virtual void parse(ColumnTextIterator& it);
00072 
00073   virtual int columnCount() const {return 10;}
00074   virtual void setXAxisProperties(Axis * a);
00075   virtual int xAxisColumn() const {return 0;}
00076   virtual int xAxisInversedColumn() const  {return 1;}
00077   virtual int yAxisColumn() const;
00078   virtual int yAxisInversedColumn() const {return -1;}
00079 
00080   void setYMode(MagnetoTelluricPointOptions::OutputMode m) {_yMode=m;}
00081   MagnetoTelluricPointOptions::OutputMode yMode() const {return _yMode;}
00082 protected:
00083   const MagnetoTelluricCurve& curve() const;
00084   MagnetoTelluricCurve& curve();
00085 private:
00086   MagnetoTelluricPointOptions::OutputMode _yMode;
00087 };
00088 
00089 } // namespace QGpGuiWave
00090 
00091 #endif // MAGNETOTELLURICPROXY_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines