00001 /*************************************************************************** 00002 ** 00003 ** This file is part of DinverDCCore. 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 : 2009-07-27 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (LGIT, Grenoble, France) 00024 ** 00025 ***************************************************************************/ 00026 00027 #ifndef TARGET_H 00028 #define TARGET_H 00029 00030 #include <QGpCoreTools.h> 00031 #include "DinverDCCoreDLLExport.h" 00032 00033 namespace DinverDCCore { 00034 00035 class DINVERDCCORE_EXPORT Target : public XMLClass 00036 { 00037 public: 00038 Target(); 00039 Target(const Target& o); 00040 00041 bool selected() const {return _selected;} 00042 void setSelected(bool s) {_selected= s;} 00043 00044 double misfitWeight() const {return _misfitWeight;} 00045 void setMisfitWeight(double w) {_misfitWeight= w;} 00046 00047 double minimumMisfit() const {return _minimumMisfit;} 00048 void setMinimumMisfit(double m) {_minimumMisfit=m;} 00049 00050 MisfitType misfitType() const {return _misfitType;} 00051 void setMisfitType(MisfitType t) {_misfitType=t;} 00052 protected: 00053 virtual void xml_writeProperties(XML_WRITEPROPERTIES_ARGS) const; 00054 virtual bool xml_setProperty(XML_SETPROPERTY_ARGS); 00055 virtual XMLMember xml_member(XML_MEMBER_ARGS); 00056 private: 00057 bool _selected; 00058 double _misfitWeight; 00059 double _minimumMisfit; 00060 MisfitType _misfitType; 00061 }; 00062 00063 } // namespace DinverDCCore 00064 00065 #endif // TARGET_H