00001 /*************************************************************************** 00002 ** 00003 ** This file is part of ArrayCore. 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 : 2004-01-05 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (ULg, Liège, Belgium) 00024 ** Marc Wathelet (LGIT, Grenoble, France) 00025 ** 00026 ***************************************************************************/ 00027 00028 #ifndef RINGCOUPLES_H 00029 #define RINGCOUPLES_H 00030 00031 #include <GeopsyCore.h> 00032 #include <QGpCoreWave.h> 00033 00034 #include "ArrayCoreDLLExport.h" 00035 00036 namespace ArrayCore { 00037 00038 class StationCouple; 00039 00040 class ARRAYCORE_EXPORT RingCouples: public QVector<const StationCouple *>, public AutocorrRing 00041 { 00042 public: 00043 RingCouples() : AutocorrRing() {_weights=0;} 00044 RingCouples(double rMin, double rMax) : AutocorrRing(rMin, rMax) {_weights=0;} 00045 RingCouples(const RingCouples& o); 00046 ~RingCouples() {delete [] _weights;} 00047 00048 void operator=(const RingCouples& o); 00049 00050 bool setCouples(const QVector<StationCouple>& couples); 00051 QString log() const; 00052 QString name() const {return QString( "(%1 m, %2 m)" ).arg(minRadius()).arg(maxRadius());} 00053 double weight(int index) const {return _weights[index];} 00054 private: 00055 static bool lessThan(const StationCouple * s1, const StationCouple * s2); 00056 00057 double * _weights; 00058 }; 00059 00060 } // namespace ArrayCore 00061 00062 #endif // RINGCOUPLES_H