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 : 2008-02-05 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (LGIT, Grenoble, France) 00024 ** 00025 ***************************************************************************/ 00026 00027 #ifndef ARRAYPROCESS_H 00028 #define ARRAYPROCESS_H 00029 00030 #include "ArrayStations.h" 00031 #include "ArrayParameters.h" 00032 #include "ArrayCoreDLLExport.h" 00033 00034 namespace ArrayCore { 00035 00036 class ARRAYCORE_EXPORT ArrayProcess : public AbstractParameters 00037 { 00038 TRANSLATIONS("ArrayProcess") 00039 public: 00040 virtual ~ArrayProcess(); 00041 00042 const ArrayParameters * takeParameters(); 00043 00044 void setHorizontalDirection(double az) {_horizontalDirection=az;} 00045 00046 bool setFrequency(double f, QString * log=0); 00047 bool setFrequency(int iOmega, QString * log=0, QString * status=0); 00048 00049 void setTimeRangeList(TimeRangeList * rl) {_timeRangeList=rl;} 00050 TimeRangeList * timeRangeList() {return _timeRangeList;} 00051 const TimeRangeList * timeRangeList() const {return _timeRangeList;} 00052 00053 const ArrayParameters * parameters() const {return _parameters;} 00054 const FrequencyBand& frequency() const {return _frequency;} 00055 const QList<StationProcessSignals *>& stations() const {return _stations;} 00056 00057 bool lockTimeWindow(const TimeRange * win); 00058 void unlockTimeWindow(); 00059 protected: 00060 ArrayProcess(); 00061 bool setParameters(const ArrayParameters * param, bool doNSampleWarning=true); 00062 00063 QList<StationProcessSignals *> _stations; 00064 double _horizontalDirection; 00065 private: 00066 bool setTimeLimits(bool doNSampleWarning); 00067 void setGlobalKeep(); 00068 00069 const ArrayParameters * _parameters; 00070 00071 FrequencyBand _frequency; 00072 SparseKeepSignal * _keep; 00073 TimeRangeList * _timeRangeList; 00074 00075 bool _signalsLocked; 00076 }; 00077 00078 } // namespace ArrayCore 00079 00080 #endif // ARRAYPROCESS_H