QGpCompatibility/CompatEllipticityData.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of QGpCompatibility.
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 : 2003-05-20
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (ULg, Liège, Belgium)
00024 **    Marc Wathelet (LGIT, Grenoble, France)
00025 **
00026 ***************************************************************************/
00027 
00028 #ifndef COMPATELLIPTICITYDATA_H
00029 #define COMPATELLIPTICITYDATA_H
00030 
00031 #include <QGpCoreWave.h>
00032 #include "QGpCompatibilityDLLExport.h"
00033 #include "CompatMultiModalData.h"
00034 #include "CompatMultiModalCurves.h"
00035 
00036 namespace QGpCompatibility {
00037 
00038 #define CompatELLIPTICITY_INVALID_VALUE -999999
00039 
00040 class CompatDispersion;
00041 
00042 class QGPCOMPATIBILITY_EXPORT CompatEllipticity :  public CompatMultiModalCurves
00043 {
00044 public:
00046   CompatEllipticity():
00047       CompatMultiModalCurves() {}
00049   CompatEllipticity(int modesCount,int omegasCount):
00050       CompatMultiModalCurves(modesCount, omegasCount) {}
00052   CompatEllipticity(const CompatMultiModalFrequency *o):
00053       CompatMultiModalCurves(o) {}
00055   CompatEllipticity(const CompatMultiModalCurves *o):
00056       CompatMultiModalCurves(o) {}
00058   CompatEllipticity(const CompatEllipticity * o,int modesCount):
00059       CompatMultiModalCurves(o, modesCount,CompatELLIPTICITY_INVALID_VALUE) {}
00061   void resetValues();
00062 };
00063 
00064 class QGPCOMPATIBILITY_EXPORT CompatEllipticityData :  public CompatEllipticity, public CompatMultiModalData
00065 {
00066 public:
00068   CompatEllipticityData();
00070   CompatEllipticityData(int modesCount,int omegasCount);
00072   CompatEllipticityData(const CompatEllipticityData * o,int modesCount);
00074   CompatEllipticityData(const CompatEllipticity * o);
00076   void valuesToData() {CompatMultiModalData::valuesToData(this);}
00078   void setF0(double f0, double devf0) {_f0=f0; _devf0=devf0;}
00079   double f0() {return _f0;}
00080   double devf0() {return _devf0;}
00081   // I/O functions
00082   // -------------
00083   // Version 5 Store f0 in an inversion report
00084   void f0ToReport(QDataStream& s);
00085   // Version 5 Load f0 from an inversion report
00086   void reportToF0(QDataStream& s);
00087   // Compatibility with new framework
00088   ModalCurve curve(int iMode);
00089 protected:
00090   double _f0;
00091   double _devf0;
00092 };
00093 
00094 } // namespace QGpCompatibility
00095 
00096 #endif // COMPATELLIPTICITYDATA_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines