OpendTect  6.3
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 ________________________________________________________________________
10 
11 -*/
12 
13 #include "seismod.h"
14 #include "iopar.h"
15 #include "enums.h"
16 
17 
19 {
20 public:
21  SynthGenParams();
22 
23  enum SynthType { PreStack, ZeroOffset, StratProp, AngleStack,
26 
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 };
#define mExpClass(module)
Definition: commondefs.h:157
Seismics.
Definition: segydirectdef.h:20
static const char * sKeyInvalidInputPS()
Definition: stratsynthgenparams.h:34
BufferString inpsynthnm_
Definition: stratsynthgenparams.h:29
SynthType synthtype_
Definition: stratsynthgenparams.h:27
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
Definition: prestackagc.h:18
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:188
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
Definition: seistype.h:52
Interval< float > anglerg_
Definition: stratsynthgenparams.h:32
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
bool operator==(const SynthGenParams &gp) const
Definition: stratsynthgenparams.h:47
Definition: stratsynthgenparams.h:23
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
SynthType
Definition: stratsynthgenparams.h:23
BufferString name_
Definition: stratsynthgenparams.h:28
BufferString wvltnm_
Definition: stratsynthgenparams.h:31
bool isPSBased() const
Definition: stratsynthgenparams.h:38
Definition: stratsynthgenparams.h:18
IOPar raypars_
Definition: stratsynthgenparams.h:30
bool isPreStack() const
Definition: stratsynthgenparams.h:37

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