Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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 }
00074
00075 #endif // POISSONCONDITION_H