DinverDCCore/PoissonCondition.h
Go to the documentation of this file.
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 : 2007-08-08
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (LGIT, Grenoble, France)
00024 **
00025 ***************************************************************************/
00026 
00027 #ifndef POISSONCONDITION_H
00028 #define POISSONCONDITION_H
00029 
00030 #include <DinverCore.h>
00031 #include <QGpCoreWave.h>
00032 #include "GroundParameter.h"
00033 #include "DinverDCCoreDLLExport.h"
00034 
00035 namespace DinverDCCore {
00036 
00037 struct ParamProfile;
00038 class ProfileLimits;
00039 
00040 class DINVERDCCORE_EXPORT PoissonCondition : public AbstractCondition
00041 {
00042 public:
00043   PoissonCondition(ParamProfile * vp, ParamProfile * vs, ParamProfile * nu);
00044 
00045   virtual bool operator==(const AbstractCondition& o) const;
00046 
00047   virtual const QString& xml_tagName() const {return xmlPoissonConditionTag;}
00048   static const QString xmlPoissonConditionTag;
00049 
00050   virtual void getLimits(int paramIndex, double& min, double& max) const;
00051   virtual void humanInfo() const;
00052   bool isOk(const GroundParameter * from);
00053 protected:
00054   virtual uint internalChecksum() const;
00055 private:
00056   inline const GroundParameter& parameter(int index) const;
00057   void getTopLimits(const ProfileLimits& pl, double& min, double& max) const;
00058   void getBottomLimits(const ProfileLimits& pl, double& min, double& max) const;
00059   void getDepthLimits(const ProfileLimits& pl, double& min, double& max) const;
00060 
00061   ParamProfile * _vp;
00062   ParamProfile * _vs;
00063   ParamProfile * _nu;
00064 
00065   Profile _min, _max;
00066 };
00067 
00068 inline const GroundParameter& PoissonCondition::parameter(int index) const
00069 {
00070   return static_cast<const GroundParameter&>(AbstractCondition::parameter(index));
00071 }
00072 
00073 } // namespace DinverDCCore
00074 
00075 #endif // POISSONCONDITION_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines