ArrayCore/SPACParameters.h
Go to the documentation of this file.
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 : 2007-05-14
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (LGIT, Grenoble, France)
00024 **
00025 ***************************************************************************/
00026 
00027 #ifndef SPACPARAMETERS_H
00028 #define SPACPARAMETERS_H
00029 
00030 #include "ArrayParameters.h"
00031 #include "RingCouples.h"
00032 #include "ArrayCoreDLLExport.h"
00033 
00034 namespace ArrayCore {
00035 
00036   class StationCouple;
00037 
00038   class ARRAYCORE_EXPORT SPACParameters : public ArrayParameters
00039   {
00040     TRANSLATIONS("SPACParameters")
00041   public:
00042     SPACParameters();
00043     SPACParameters(const SPACParameters& o);
00044 
00045     enum OutputType {NoOutput=0x0, Target=0x1, Stmap=0x2, Max=0x4};
00046     Q_DECLARE_FLAGS(OutputTypes, OutputType)
00047 
00048     void addRing(const QVector<StationCouple>& couples, double minRadius, double maxRadius);
00049     int ringCount() const {return _rings.count();}
00050     const RingCouples& ring(int index) const {return _rings.at(index);}
00051 
00052     bool overWrite(int nComponents);
00053 
00054     OutputTypes outputTypes() const {return _outputTypes;}
00055     QString outputTypesString() const;
00056     void setOutputTypes(OutputTypes t) {_outputTypes=t;}
00057     void setOutputTypes(const QString& t);
00058 
00059     virtual void collectKeywords(PARAMETERS_COLLECTKEYWORDS_ARGS);
00060     virtual int keywordCount(PARAMETERS_KEYWORDCOUNT_ARGS);
00061     virtual bool setValue(PARAMETERS_SETVALUE_ARGS);
00062     virtual QString toString(PARAMETERS_TOSTRING_ARGS_DECL) const;
00063   private:
00064     QList<RingCouples> _rings;
00065     OutputTypes _outputTypes;
00066   };
00067 
00068 } // namespace ArrayCore
00069 
00070 Q_DECLARE_OPERATORS_FOR_FLAGS(ArrayCore::SPACParameters::OutputTypes)
00071 
00072 #endif // SPACPARAMETERS_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines