SciFigs/RealStatisticalProxy.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of SciFigs.
00004 **
00005 **  This library is free software; you can redistribute it and/or
00006 **  modify it under the terms of the GNU Lesser General Public
00007 **  License as published by the Free Software Foundation; either
00008 **  version 2.1 of the License, or (at your option) any later version.
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 Lesser General Public
00013 **  License for more details.
00014 **
00015 **  You should have received a copy of the GNU Lesser General Public
00016 **  License along with this library; if not, write to the Free Software
00017 **  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018 **
00019 **  See http://www.geopsy.org for more information.
00020 **
00021 **  Created : 2008-11-03
00022 **  Authors :
00023 **    Marc Wathelet
00024 **    Marc Wathelet (LGIT, Grenoble, France)
00025 **
00026 ***************************************************************************/
00027 
00028 #ifndef REALSTATISTICALPROXY_H
00029 #define REALSTATISTICALPROXY_H
00030 
00031 #include "CurveBrowserSimpleProxy.h"
00032 #include "SciFigsDLLExport.h"
00033 
00034 namespace SciFigs {
00035 
00036 class SCIFIGS_EXPORT RealStatisticalProxy : public CurveBrowserSimpleProxy
00037 {
00038   TRANSLATIONS("RealStatisticalProxy")
00039 public:
00040   virtual QString tag() const {return "RealStatisticalProxy";}
00041 
00042   virtual CurveBrowserProxy * clone() const {return new RealStatisticalProxy;}
00043 
00044   virtual void setFunction();
00045   virtual double minimumX() const;
00046   virtual double maximumX() const;
00047   virtual double minimumY(const CurvePointOptions * pointOptions) const;
00048   virtual double maximumY(const CurvePointOptions * pointOptions) const;
00049   virtual void cut(double min, double max, SamplingOptions options);
00050   virtual void resample(int n, double min, double max,
00051                         SamplingOptions options,
00052                         double valX, double valY,
00053                         const CurvePointOptions * pointOptions);
00054   virtual void resample(int n, double min, double max,
00055                         SamplingOptions options);
00056   virtual void average(const CurveBrowserProxy * o);
00057 
00058   virtual int columnCount() const {return 4;}
00059   virtual QString columnName(int col) const;
00060   virtual QString columnUnit(int col) const;
00061 
00062   virtual QVariant columnValue(int sample, int col) const;
00063   virtual void setColumnValue(int sample, int col, const QVariant & value);
00064 
00065   virtual int xAxisColumn() const {return 0;}
00066   virtual int xAxisInversedColumn() const  {return -1;}
00067   virtual int yAxisColumn() const {return 1;}
00068   virtual int yAxisInversedColumn() const {return -1;}
00069 
00070   virtual QStringList columnFileTypes() const;
00071   virtual QVector<int> defaultColumnFileTypes() const;
00072   virtual QVector<int> savedColumns() const;
00073 
00074   virtual void parse(ColumnTextIterator& it);
00075 protected:
00076   const Curve<RealStatisticalPoint>& curve() const;
00077   Curve<RealStatisticalPoint>& curve();
00078 };
00079 
00080 } // namespace SciFigs
00081 
00082 #endif // REALSTATISTICALPROXY_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines