OpendTect-6_4  6.4
seistype.h
Go to the documentation of this file.
1 #ifndef seistype_h
2 #define seistype_h
3 
4 /*
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: 29-5-99
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 */
14 
15 #include "seismod.h"
16 #include "gendefs.h"
17 #include "uistring.h"
18 
19 class IOObjContext;
20 
23 namespace Seis
24 {
25 
26  enum SelType { Range, Table, Polygon };
27  mGlobal(Seis) const char* nameOf(SelType);
28  mGlobal(Seis) SelType selTypeOf(const char*);
29  mGlobal(Seis) const char** selTypeNames();
30 
31  enum ReadMode { PreScan, Scan, Prod };
32 
33  enum GeomType { Vol, VolPS, Line, LinePS };
34  mGlobal(Seis) inline bool is2D( GeomType gt )
35  { return gt > VolPS; }
36  mGlobal(Seis) inline bool is3D( GeomType gt )
37  { return gt < Line; }
38  mGlobal(Seis) inline bool isPS( GeomType gt )
39  { return gt == VolPS || gt == LinePS; }
40  mGlobal(Seis) inline int dimSize( GeomType gt )
41  { return gt == Line ? 2 : (gt == VolPS ? 4 : 3); }
42  mGlobal(Seis) const char* nameOf(GeomType);
43  mGlobal(Seis) GeomType geomTypeOf(const char*);
44  mGlobal(Seis) inline GeomType geomTypeOf( bool is2d, bool isps )
45  { return is2d ? (isps?LinePS:Line) : (isps?VolPS:Vol); }
46  mGlobal(Seis) uiString dataName(GeomType,bool both_pre_post=false);
47  mGlobal(Seis) const char** geomTypeNames();
49  mGlobal(Seis) bool getFromPar(const IOPar&,GeomType&);
50  mGlobal(Seis) bool is2DGeom(const IOPar&);
51  mGlobal(Seis) bool isPSGeom(const IOPar&);
53 
57  mGlobal(Seis) const char* nameOf(DataType);
58  mGlobal(Seis) DataType dataTypeOf(const char*);
59  mGlobal(Seis) const char** dataTypeNames();
60 
61  enum WaveType { P, Sh, Sv, UnknowWave };
62  mGlobal(Seis) const char* nameOf(WaveType);
63  mGlobal(Seis) WaveType waveTypeOf(const char*);
64  mGlobal(Seis) const char** waveTypeNames();
65 
66 } // namespace Seis
67 
68 
69 #endif
SelType selTypeOf(const char *)
bool is2DGeom(const IOPar &)
uiString dataName(GeomType, bool both_pre_post=false)
Summary for a Seismic object.
Definition: segydirectdef.h:23
Definition: seistype.h:26
Definition: seistype.h:54
const char ** geomTypeNames()
#define mGlobal(module)
Definition: commondefs.h:163
bool is2D(GeomType gt)
Definition: seistype.h:34
WaveType
Definition: seistype.h:61
Definition: seistype.h:55
Definition: seistype.h:26
Definition: seistype.h:33
const char ** dataTypeNames()
Definition: uistring.h:89
Data type.
Definition: datainpspec.h:31
Definition: seistype.h:33
bool isAngle(DataType)
const char ** selTypeNames()
Definition: seistype.h:31
Definition: seistype.h:54
SelType
Definition: seistype.h:26
Definition: seistype.h:33
GeomType
Definition: seistype.h:33
bool isPS(GeomType gt)
Definition: seistype.h:38
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Definition: seistype.h:54
Definition: seistype.h:31
Definition: seistype.h:61
Definition: seistype.h:54
Definition: seistype.h:61
bool is3D(GeomType gt)
Definition: seistype.h:36
WaveType waveTypeOf(const char *)
Definition: seistype.h:31
DataType dataTypeOf(const char *)
int dimSize(GeomType gt)
Definition: seistype.h:40
ReadMode
Definition: seistype.h:31
void putInPar(GeomType, IOPar &)
Definition: seistype.h:33
Definition: seistype.h:61
const char * nameOf(SelType)
Definition: seistype.h:55
GeomType geomTypeOf(const char *)
Definition: seistype.h:26
const char ** waveTypeNames()
bool isPSGeom(const IOPar &)
IOObjContext * getIOObjContext(Seis::GeomType, bool forread)
bool getFromPar(const IOPar &, GeomType &)
Definition: seistype.h:55
Definition: seistype.h:61
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62
Definition: seistype.h:54

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