OpendTect-6_4  6.4
stratseisevent.h
Go to the documentation of this file.
1 #ifndef stratseisevent_h
2 #define stratseisevent_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Feb 2011
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "wellattribmod.h"
16 #include "valseriesevent.h"
17 #include "ranges.h"
18 class SeisTrc;
19 
20 
21 namespace Strat
22 {
23 class Level;
24 
27 mExpClass(WellAttrib) SeisEvent
28 {
29 public:
30  SeisEvent(const Level* lvl=0,
32  : level_(lvl)
33  , evtype_(evtyp)
34  , offs_(0)
35  , extrwin_(0,0)
36  , extrstep_(mUdf(float))
37  , downtolevel_(0) {}
38 
39  float snappedTime(const SeisTrc&) const;
40  bool snapPick(SeisTrc&) const;
41 
42  void setLevel( const Strat::Level* lvl ) { level_ = lvl; }
43  void setEvType( const VSEvent::Type evtyp )
44  { evtype_ = evtyp; }
45  void setOffset( float off ) { offs_ = off; }
46  void setExtrWin( const Interval<float>& win )
47  { extrwin_ = win; }
48  void setExtrStep(float step ) { extrstep_ = step; }
49  void setDownToLevel( const Strat::Level* downtolevel )
50  { downtolevel_ = downtolevel; }
51 
52  const Strat::Level* level() const { return level_; }
53  const VSEvent::Type& evType() const { return evtype_; }
54  float offset() const { return offs_; }
55  const Interval<float>& extrWin() const { return extrwin_; }
56  float extrStep() const { return extrstep_; }
57  const Strat::Level* downToLevel() const { return downtolevel_; }
58 
59 protected:
60 
63  float offs_;
65  float extrstep_;
67 
68 };
69 
70 } // namespace
71 
72 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Event tied to a stratigraphic level.
Definition: stratseisevent.h:27
FixedString Level()
Definition: keystrs.h:78
Interval< float > extrwin_
Definition: stratseisevent.h:64
float extrstep_
Definition: stratseisevent.h:65
const Strat::Level * level_
Definition: stratseisevent.h:61
void setOffset(float off)
Definition: stratseisevent.h:45
const Interval< float > & extrWin() const
Definition: stratseisevent.h:55
const Strat::Level * level() const
Definition: stratseisevent.h:52
Definition: valseriesevent.h:26
const VSEvent::Type & evType() const
Definition: stratseisevent.h:53
void setExtrWin(const Interval< float > &win)
Definition: stratseisevent.h:46
float offs_
Definition: stratseisevent.h:63
Stratigraphic level.
Definition: stratlevel.h:42
void setExtrStep(float step)
Definition: stratseisevent.h:48
void setDownToLevel(const Strat::Level *downtolevel)
Definition: stratseisevent.h:49
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
SeisEvent(const Level *lvl=0, VSEvent::Type evtyp=VSEvent::None)
Definition: stratseisevent.h:30
Stratigraphy.
Definition: stratlevel.h:26
Seismic trace.
Definition: seistrc.h:34
const Strat::Level * downToLevel() const
Definition: stratseisevent.h:57
VSEvent::Type evtype_
Definition: stratseisevent.h:62
void setLevel(const Strat::Level *lvl)
Definition: stratseisevent.h:42
void setEvType(const VSEvent::Type evtyp)
Definition: stratseisevent.h:43
float extrStep() const
Definition: stratseisevent.h:56
const Strat::Level * downtolevel_
Definition: stratseisevent.h:66
Type
Definition: valseriesevent.h:26
float offset() const
Definition: stratseisevent.h:54

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