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

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