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-04 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (ULg, Liège, Belgium) 00024 ** Marc Wathelet (LGIT, Grenoble, France) 00025 ** 00026 ***************************************************************************/ 00027 00028 #ifndef ToolFK_H 00029 #define ToolFK_H 00030 00031 #include <ArrayCore.h> 00032 00033 #include "ToolArrayBase.h" 00034 00035 class ToolFKd; 00036 class FKLoop; 00037 00038 class ToolFK : public ToolArrayBase 00039 { 00040 Q_OBJECT 00041 public: 00042 ToolFK(QWidget * parent); 00043 ~ToolFK(); 00044 00045 virtual bool initStations(SubSignalPool * subPool); 00046 virtual void setParameters(int& argc, char ** argv); 00047 virtual void waitFinished(); 00048 public slots: 00049 virtual void test(); 00050 virtual void start(); 00051 void stop(); 00052 protected slots: 00053 void parametersChanged(); 00054 void kmaxChanged(); 00055 void gridChanged(); 00056 void finish(); 00057 void setTemporaryKmax(); 00058 void setComputedKmax(); 00059 protected: 00060 void setDefaultGridParameters(); 00061 virtual void setDefaultGridStep(double kmin); 00062 virtual void setDefaultGridSize(double kmax); 00063 void startLoop(FKLoop * loop, FKParameters * param, const QString& message=QString::null); 00064 virtual void updateAllFields(); 00065 virtual const char * toolName(); 00066 virtual AbstractParameters * parameters(AbstractParameters * param=0) const; 00067 virtual void setParameters(const AbstractParameters * param); 00068 bool checkParameters(FKParameters * param) const; 00069 00070 ToolFKd * _d; 00071 bool _exportAllFKGrids; 00072 // Kmax computation 00073 QTimer _kmaxTimer; 00074 bool _kmaxTouched, _kminTouched; 00075 KmaxSolver * _kmaxSolver; 00076 // Process loop members 00077 FKLoop * _loop; 00078 FKParameters * _param; 00079 QTime _chrono; 00080 }; 00081 00082 #endif