OpendTect-6_4  6.4
stratsynthgenparams.h
Go to the documentation of this file.
1 #ifndef stratsynthgenparams_h
2 #define stratsynthgenparams_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bruno/Satyaki
9  Date: July 2013
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "wellattribmod.h"
16 #include "iopar.h"
17 #include "enums.h"
18 
19 
20 mStruct(WellAttrib) SynthGenParams
21 {
22  SynthGenParams();
23 
24  enum SynthType { PreStack, ZeroOffset, StratProp, AngleStack,
25  AVOGradient };
26  mDeclareEnumUtils(SynthType);
27 
28  SynthType synthtype_;
29  BufferString name_;
30  BufferString inpsynthnm_;
31  IOPar raypars_;
32  BufferString wvltnm_;
33  Interval<float> anglerg_;
34 
35  static const char* sKeyInvalidInputPS() { return "Invalid Input"; }
36 
37  bool hasOffsets() const;
38  bool isPreStack() const { return synthtype_==PreStack; }
39  bool isPSBased() const
40  { return synthtype_==AngleStack ||
41  synthtype_==AVOGradient; }
42  void createName(BufferString&) const;
44  void fillPar(IOPar&) const;
45  void usePar(const IOPar&);
46  void setDefaultValues();
47 
48 bool operator==( const SynthGenParams& gp ) const
49 {
50  bool hassameanglerg = true;
51  bool hassameinput = true;
52  if ( gp.isPSBased() )
53  {
54  hassameanglerg = anglerg_==gp.anglerg_;
55  hassameinput = inpsynthnm_==gp.inpsynthnm_;
56  }
57 
58  return isPreStack()==gp.isPreStack() && wvltnm_==gp.wvltnm_ &&
59  raypars_==gp.raypars_ && hassameanglerg && hassameinput; }
60 
61 };
62 
63 
64 #endif
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
#define mStruct(module)
Definition: commondefs.h:165
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
Definition: synthseis.h:36
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Definition: seistype.h:54
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019