geopsyarray/ToolSPAC.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of geopsyarray.
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-09-09
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (ULg, Liège, Belgium)
00024 **    Marc Wathelet (LGIT, Grenoble, France)
00025 **
00026 ***************************************************************************/
00027 
00028 #ifndef TOOLSPAC_H
00029 #define TOOLSPAC_H
00030 
00031 #include <ArrayCore.h>
00032 
00033 #include "ToolArrayBase.h"
00034 
00035 class ToolSPACd;
00036 class SPACLoop;
00037 
00038 class ToolSPAC :  public ToolArrayBase
00039 {
00040   Q_OBJECT
00041 public:
00042   ToolSPAC(QWidget * parent);
00043   ~ToolSPAC();
00044 
00045   virtual bool initStations(SubSignalPool * subPool);
00046   virtual void setParameters(int& argc, char ** argv);
00047   virtual void waitFinished();
00048   void setRings(QString fileName);
00049 private slots:
00050   virtual void start();
00051   void stop();
00052   void finish();
00053   void parametersChanged();
00054 protected:
00055   void startLoop(SPACLoop * loop, SPACParameters * param);
00056   AbstractParameters * parameters(AbstractParameters *param=0) const;
00057   virtual void updateAllFields();
00058   virtual const char * toolName();
00059   void setArrayMap();
00060   void setCoArrayMap();
00061 protected:
00062   ToolSPACd * _d;
00063   QVector<StationCouple> _stationCouples;
00064   TimeWindowList _winList;
00065   // Process loop members
00066   SPACLoop * _loop;
00067   SPACParameters * _param;
00068   QTime _chrono;
00069 };
00070 
00071 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines