00001 /*************************************************************************** 00002 ** 00003 ** This file is part of geopsydamping. 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 ** 00019 ** 00020 ** Created: 2012-03-24 00021 ** Authors: 00022 ** Marc Wathelet (ISTerre, Grenoble, France) 00023 ** 00024 ***************************************************************************/ 00025 00026 #ifndef PARAMETERS_H 00027 #define PARAMETERS_H 00028 00029 #include <GeopsyCore.h> 00030 00031 class Parameters : public AbstractParameters 00032 { 00033 public: 00034 Parameters(); 00035 Parameters(const Parameters& o); 00036 ~Parameters(); 00037 00038 bool isFilter() const {return _filter;} 00039 FilterParameters& filter(); 00040 const FilterParameters& filter() const; 00041 void setFilter(const FilterParameters& f); 00042 00043 TimeRangeParameters& timeRange() {return _timeRange;} 00044 const TimeRangeParameters& timeRange() const {return _timeRange;} 00045 void setTimeRange(const TimeRangeParameters& t) {_timeRange=t;} 00046 00047 const double& windowLength() const {return _windowLength;} 00048 void setWindowLength(const double& w) {_windowLength=w;} 00049 00050 const double& fitLength() const {return _fitLength;} 00051 void setFitLength(const double& f) {_fitLength=f;} 00052 00053 virtual void collectKeywords(PARAMETERS_COLLECTKEYWORDS_ARGS); 00054 virtual int keywordCount(PARAMETERS_KEYWORDCOUNT_ARGS); 00055 virtual bool setValue(PARAMETERS_SETVALUE_ARGS); 00056 virtual QString toString(PARAMETERS_TOSTRING_ARGS_DECL) const; 00057 private: 00058 FilterParameters * _filter; 00059 TimeRangeParameters _timeRange; 00060 double _windowLength; 00061 double _fitLength; 00062 }; 00063 00064 #endif // PARAMETERS_H 00065