OpendTect  6.3
seiseventsnapper.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: Nanne Hemstra
8  Date: September 2006
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "seiscommon.h"
14 #include "executor.h"
15 #include "samplingdata.h"
16 #include "valseriesevent.h"
17 
18 class BinIDValueSet;
19 class IOObj;
20 class SeisTrc;
21 namespace Seis { class MSCProvider; }
22 
24 {
25 public:
26  SeisEventSnapper( const Interval<float>& gate);
27 
29  { eventtype_ = tp; }
30  VSEvent::Type getEvent() const { return eventtype_; }
31 
32  void setSearchGate( const Interval<float>& gate )
33  { searchgate_ = gate; }
34  const Interval<float>& getSearchGate() const { return searchgate_; }
35 
36  virtual od_int64 totalNr() const { return totalnr_; }
37  virtual od_int64 nrDone() const { return nrdone_; }
38 
39 protected:
40 
41  float findNearestEvent(const SeisTrc&,
42  float tarz) const;
43 
46 
47  int totalnr_;
48  int nrdone_;
49 
50 };
51 
52 
54 {
55 public:
57  const Interval<float>& gate);
59 
60  uiString message() const;
61  uiString nrDoneText() const;
62 
63 protected:
64 
65  virtual int nextStep();
66 
69 
70 };
#define mExpClass(module)
Definition: commondefs.h:157
int nrdone_
Definition: seiseventsnapper.h:48
Seismics.
Definition: segydirectdef.h:20
const Interval< float > & getSearchGate() const
Definition: seiseventsnapper.h:34
void setSearchGate(const Interval< float > &gate)
Definition: seiseventsnapper.h:32
Definition: ioobj.h:57
VSEvent::Type getEvent() const
Definition: seiseventsnapper.h:30
Reads seismic data into buffers providing a Moving Virtual Subcube of seismic data.
Definition: seismscprov.h:55
#define od_int64
Definition: plftypes.h:34
Seis::MSCProvider * mscprov_
Definition: seiseventsnapper.h:68
Definition: uistring.h:88
Definition: seiseventsnapper.h:53
void message(const char *)
default: to stderr
Interval< float > searchgate_
Definition: seiseventsnapper.h:44
VSEvent::Type eventtype_
Definition: seiseventsnapper.h:45
void setEvent(VSEvent::Type tp)
Definition: seiseventsnapper.h:28
Seismic trace.
Definition: seistrc.h:31
BinIDValueSet & positions_
Definition: seiseventsnapper.h:67
virtual od_int64 totalNr() const
Definition: seiseventsnapper.h:36
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:21
Type
Definition: valseriesevent.h:24
Definition: seiseventsnapper.h:23
virtual od_int64 nrDone() const
Definition: seiseventsnapper.h:37
int totalnr_
Definition: seiseventsnapper.h:47
Specification to enable chunkwise execution of a process.
Definition: executor.h:38

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