OpendTect  6.6
uisegyread.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: Bert
8  Date: Sep 2008
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uisegycommon.h"
15 #include "uivarwizard.h"
16 #include "multiid.h"
17 #include "uistring.h"
18 
19 class IOObj;
20 class CtxtIOObj;
21 namespace SEGY { class Scanner; }
22 class uiSEGYDefDlg;
23 class uiSEGYImpDlg;
24 class uiSEGYScanDlg;
25 class uiSEGYExamine;
26 class uiSEGYReadRev1Question;
27 
28 
31 mExpClass(uiSEGYTools) uiSEGYRead : public uiVarWizard
33 public:
34 
35  enum Purpose { Import, SurvSetup, DirectDef };
36  enum RevType { Rev0, WeakRev1, Rev1 };
37  enum State { BasicOpts=10, SetupImport=11, SetupScan=12 };
38 
39  mExpClass(uiSEGYTools) Setup
40  {
41  public:
42  Setup( Purpose pp=Import )
43  : purpose_(pp)
44  , initialstate_(BasicOpts)
45  { getDefaultTypes(geoms_,pp==SurvSetup);}
46 
48  mDefSetupMemb(State, initialstate)
49  TypeSet<Seis::GeomType> geoms_;
50 
51  bool forScan() const { return purpose_ != Import; }
53  bool forsurvsetup=false);
54 
55  };
56 
57  uiSEGYRead(uiParent*,const Setup&,const IOPar* iop=0);
59 
60  void use(const IOObj*,bool force);
61  void usePar(const IOPar&);
62 
63  virtual void raiseCurrent();
64 
65  Seis::GeomType geomType() const { return geom_; }
66  int revision() const { return rev_; }
67  void fillPar(IOPar&) const;
69  { SEGY::Scanner* s = scanner_; scanner_ = 0; return s; }
70  MultiID outputID() const { return outid_; }
71 
73 
74 protected:
75 
76 
80  int revpolnr_;
83 
88  uiSEGYReadRev1Question* rev1qdlg_;
89 
90  virtual void doPart();
91  virtual void closeDown();
92  void getBasicOpts();
93  void basicOptsGot();
95  void setupImport();
96  void setupScan();
97 
101 
107 
108  void setGeomType(const IOObj&);
109  CtxtIOObj* getCtio(bool) const;
110 
111  uiSEGYDefDlg* newdefdlg_; // no longer used, will disappear after 6.0
112 };
113 
114 
uiSEGYRead::getBasicOpts
void getBasicOpts()
uiSEGYRead::writeReq
void writeReq(CallBacker *)
uiSEGYRead::setupImport
void setupImport()
uistring.h
uiSEGYRead::outputID
MultiID outputID() const
Definition: uisegyread.h:70
uiSEGYRead::revpolnr_
int revpolnr_
Definition: uisegyread.h:80
Seis
Summary for a Seismic object.
Definition: segydirectdef.h:22
CtxtIOObj
Holds an IOObjCtxt plus a pointer to an IOObj and/or an IOPar.
Definition: ctxtioobj.h:146
uiSEGYImpDlg
Dialog to import SEG-Y files after basic setup.
Definition: uisegyimpdlg.h:27
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiSEGYRead::scandlg_
uiSEGYScanDlg * scandlg_
Definition: uisegyread.h:86
mDefSetupMemb
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:154
uiSEGYRead::WeakRev1
@ WeakRev1
Definition: uisegyread.h:36
uisegycommon.h
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiSEGYRead::rev1qdlg_
uiSEGYReadRev1Question * rev1qdlg_
Definition: uisegyread.h:88
uiVarWizard
'Server' for flexible wizards.
Definition: uivarwizard.h:28
uiSEGYRead::revision
int revision() const
Definition: uisegyread.h:66
uiSEGYRead::fillPar
void fillPar(IOPar &) const
multiid.h
uiSEGYRead::rev1qDlgClose
void rev1qDlgClose(CallBacker *)
uiSEGYScanDlg
Dialog to import SEG-Y files after basic setup.
Definition: uisegyscandlg.h:25
uiSEGYRead::rev_
RevType rev_
Definition: uisegyread.h:79
uiSEGYRead::Setup::mDefSetupMemb
mDefSetupMemb(Purpose, purpose) mDefSetupMemb(State
uiSEGYRead::Setup::Setup
Setup(Purpose pp=Import)
Definition: uisegyread.h:42
uiSEGYRead::examdlg_
uiSEGYExamine * examdlg_
Definition: uisegyread.h:87
SEGY::Scanner
Scans SEG-Y file(s). For reports, you'd want to set rich info.
Definition: segyscanner.h:33
uiSEGYRead::examDlgClose
void examDlgClose(CallBacker *)
uiSEGYRead::geom_
Seis::GeomType geom_
Definition: uisegyread.h:78
uiSEGYRead::getCtio
static CtxtIOObj * getCtio(bool, Seis::GeomType)
uiSEGYRead::closeDown
virtual void closeDown()
uiSEGYRead
'Server' for SEG-Y Reading
Definition: uisegyread.h:32
uiSEGYRead::RevType
RevType
Definition: uisegyread.h:36
uiSEGYRead::use
void use(const IOObj *, bool force)
uiSEGYRead::scanDlgClose
void scanDlgClose(CallBacker *)
uiSEGYRead::usePar
void usePar(const IOPar &)
IOObj
Definition: ioobj.h:58
uiSEGYRead::SurvSetup
@ SurvSetup
Definition: uisegyread.h:35
uiSEGYRead::getScanner
SEGY::Scanner * getScanner()
Definition: uisegyread.h:68
uiSEGYRead::setupScan
void setupScan()
uiSEGYRead::newdefdlg_
uiSEGYDefDlg * newdefdlg_
Definition: uisegyread.h:111
uiSEGYRead::mODTextTranslationClass
mODTextTranslationClass(uiSEGYRead)
uiSEGYRead::setGeomType
void setGeomType(const IOObj &)
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
uivarwizard.h
uiSEGYRead::setup_
Setup setup_
Definition: uisegyread.h:77
uiSEGYRead::basicOptsGot
void basicOptsGot()
uiSEGYRead::State
State
Definition: uisegyread.h:37
uiSEGYRead::impDlgClose
void impDlgClose(CallBacker *)
uiSEGYRead::geomType
Seis::GeomType geomType() const
Definition: uisegyread.h:65
uiSEGYRead::Purpose
Purpose
Definition: uisegyread.h:35
uiSEGYRead::Setup
Definition: uisegyread.h:40
uiSEGYExamine
Definition: uisegyexamine.h:31
uiSEGYRead::outid_
MultiID outid_
Definition: uisegyread.h:82
uiSEGYRead::defDlgClose
void defDlgClose(CallBacker *)
SEGY
Keys that should be used with od_process_segyio.cc.
Definition: segybatchio.h:22
uiSEGYRead::~uiSEGYRead
~uiSEGYRead()
uiSEGYRead::uiSEGYRead
uiSEGYRead(uiParent *, const Setup &, const IOPar *iop=0)
uiSEGYRead::impdlg_
uiSEGYImpDlg * impdlg_
Definition: uisegyread.h:85
uiParent
Definition: uiparent.h:26
uiSEGYRead::Setup::getDefaultTypes
static void getDefaultTypes(TypeSet< Seis::GeomType > &, bool forsurvsetup=false)
uiSEGYRead::preScanReq
void preScanReq(CallBacker *)
uiSEGYRead::doPart
virtual void doPart()
default -1 meaning: close down
Seis::GeomType
GeomType
Definition: seistype.h:32
uiSEGYRead::defdlg_
uiSEGYDefDlg * defdlg_
Definition: uisegyread.h:84
uiSEGYRead::raiseCurrent
virtual void raiseCurrent()
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
uiSEGYRead::readReq
void readReq(CallBacker *)
uiSEGYRead::determineRevPol
void determineRevPol()
uiSEGYRead::scanner_
SEGY::Scanner * scanner_
Definition: uisegyread.h:81
uiSEGYRead::getCtio
CtxtIOObj * getCtio(bool) const
TypeSet
Sets of (small) copyable elements.
Definition: commontypes.h:29
uiSEGYDefDlg
Initial dialog for SEG-Y I/O.
Definition: uisegydefdlg.h:31

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