OpendTect  6.3
seistype.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: K. Tingdahl
8  Date: 29-5-99
9 ________________________________________________________________________
10 
11 */
12 
13 #include "seismod.h"
14 #include "gendefs.h"
15 #include "uistring.h"
16 class IOObjContext;
17 class BufferStringSet;
18 
19 
22 namespace Seis
23 {
24 
26  mGlobal(Seis) const char* nameOf(SelType);
27  mGlobal(Seis) SelType selTypeOf(const char*);
28 
29  enum ReadMode { PreScan, Scan, Prod };
30 
31  enum GeomType { Vol, VolPS, Line, LinePS };
32  mGlobal(Seis) inline bool is2D( GeomType gt )
33  { return gt > VolPS; }
34  mGlobal(Seis) inline bool is3D( GeomType gt )
35  { return gt < Line; }
36  mGlobal(Seis) inline bool isPS( GeomType gt )
37  { return gt == VolPS || gt == LinePS; }
38  mGlobal(Seis) inline int dimSize( GeomType gt )
39  { return gt == Line ? 2 : (gt==VolPS ? 4 : 3); }
40  mGlobal(Seis) const char* nameOf(GeomType);
41  mGlobal(Seis) GeomType geomTypeOf(const char*);
42  mGlobal(Seis) inline GeomType geomTypeOf( bool is2d, bool isps )
43  { return is2d ? (isps ? LinePS : Line)
44  : (isps ? VolPS : Vol); }
45  mGlobal(Seis) uiString dataName(GeomType,bool both_pre_post=false);
47  mGlobal(Seis) bool getFromPar(const IOPar&,GeomType&);
48  mGlobal(Seis) bool is2DGeom(const IOPar&);
49  mGlobal(Seis) bool isPSGeom(const IOPar&);
51 
55  mGlobal(Seis) const char* nameOf(DataType);
56  mGlobal(Seis) DataType dataTypeOf(const char*);
58 
59  enum WaveType { P, Sh, Sv, UnknowWave };
60  mGlobal(Seis) const char* nameOf(WaveType);
61  mGlobal(Seis) WaveType waveTypeOf(const char*);
62 
63 } // namespace Seis
SelType selTypeOf(const char *)
bool is2DGeom(const IOPar &)
uiString dataName(GeomType, bool both_pre_post=false)
Seismics.
Definition: segydirectdef.h:20
Definition: seistype.h:25
Definition: seistype.h:52
#define mGlobal(module)
Definition: commondefs.h:160
bool is2D(GeomType gt)
Definition: seistype.h:32
const BufferStringSet & dataTypeNames()
WaveType
Definition: seistype.h:59
Definition: seistype.h:53
Definition: seistype.h:25
Definition: seistype.h:31
Definition: uistring.h:88
Set of BufferString objects.
Definition: bufstringset.h:25
Data type.
Definition: datainpspec.h:29
Definition: seistype.h:31
bool isAngle(DataType)
Definition: seistype.h:29
Definition: seistype.h:52
SelType
Definition: seistype.h:25
Definition: seistype.h:31
GeomType
Definition: seistype.h:31
bool isPS(GeomType gt)
Definition: seistype.h:36
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
Definition: seistype.h:52
Definition: seistype.h:29
Definition: seistype.h:59
Definition: seistype.h:52
Definition: seistype.h:59
bool is3D(GeomType gt)
Definition: seistype.h:34
WaveType waveTypeOf(const char *)
Definition: seistype.h:29
DataType dataTypeOf(const char *)
int dimSize(GeomType gt)
Definition: seistype.h:38
ReadMode
Definition: seistype.h:29
void putInPar(GeomType, IOPar &)
Definition: seistype.h:31
Definition: seistype.h:59
const char * nameOf(SelType)
Definition: seistype.h:53
GeomType geomTypeOf(const char *)
Definition: seistype.h:25
bool isPSGeom(const IOPar &)
IOObjContext * getIOObjContext(Seis::GeomType, bool forread)
bool getFromPar(const IOPar &, GeomType &)
Definition: seistype.h:53
Definition: seistype.h:59
Holds the context for selecting and/or creating IOObjs.
Definition: ioobjctxt.h:59
Definition: seistype.h:52

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