OpendTect-6_4  6.4
eventattrib.h
Go to the documentation of this file.
1 #ifndef eventattrib_h
2 #define eventattrib_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Helene Payraudeau
8  Date: February 2005
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "attributesmod.h"
15 #include "attribprovider.h"
16 #include "valseriesevent.h"
17 
18 namespace Attrib
19 {
20 
38 {
39 public:
40  static void initClass();
41 
42  Event(Desc&);
43 
44  static const char* attribName() { return "Event"; }
45  static const char* eventTypeStr() { return "eventtype"; }
46  static const char* tonextStr() { return "tonext"; }
47  static const char* gateStr() { return "gate"; }
48  static const char* issingleeventStr()
49  { return "issingleevent"; }
50  static const char* outampStr() { return "outamp"; }
51 
52 
53 protected:
54  ~Event() {}
55  static Provider* createInstance(Desc&);
56  static void updateDesc(Desc&);
57 
58  bool getInputOutput(int input,
59  TypeSet<int>& res) const;
60  bool getInputData(const BinID&,int zintv);
61  bool computeData(const DataHolder&,
62  const BinID& relpos,
63  int z0,int nrsamples,
64  int threadid) const;
65 
67  { return true; }
68 
69  const Interval<float>* reqZMargin(int input,int output) const;
70  const Interval<float>* desZMargin(int input,int output) const;
71 
72 
73  static VSEvent::Type getEventType(int type);
74  ValueSeriesEvent<float,float> findNextEvent(
76  int dir,VSEvent::Type,int,int) const;
77 
78  void singleEvent(const DataHolder&,int,int) const;
79  void multipleEvents(const DataHolder&,int,int) const;
80 
82 
84  bool tonext_;
87  int dataidx_;
88  bool outamp_;
89 };
90 
91 } // namespace Attrib
92 
93 #endif
#define mExpClass(module)
Definition: commondefs.h:160
bool issingleevent_
Definition: eventattrib.h:83
Event attribute
Definition: eventattrib.h:37
bool allowParallelComputation() const
Definition: eventattrib.h:66
FixedString Attributes()
Definition: keystrs.h:40
const DataHolder * inputdata_
Definition: eventattrib.h:81
static const char * tonextStr()
Definition: eventattrib.h:46
~Event()
Definition: eventattrib.h:54
bool outamp_
Definition: eventattrib.h:88
static const char * gateStr()
Definition: eventattrib.h:47
Description of an attribute in an Attrib::DescSet. Each attribute has a name (e.g. "Similarity"), a user reference (e.g. "My similarity"), and at least one output. In addition, it may have parameters and inputs. If it has multiple outputs, only one of the outputs are selected.
Definition: attribdesc.h:89
Event in value series.
Definition: valseriesevent.h:40
static const char * issingleeventStr()
Definition: eventattrib.h:48
static const char * attribName()
Definition: eventattrib.h:44
Interval< float > gate_
Definition: eventattrib.h:86
bool tonext_
Definition: eventattrib.h:84
int dataidx_
Definition: eventattrib.h:87
VSEvent::Type eventtype_
Definition: eventattrib.h:85
Holds the attribute data.
Definition: attribdataholder.h:43
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
static const char * outampStr()
Definition: eventattrib.h:50
Provides the actual output to ...
Definition: attribprovider.h:44
static const char * eventTypeStr()
Definition: eventattrib.h:45
Type
Definition: valseriesevent.h:26
static void initClass()
Semblance Attribute.
Definition: attribdataholder.h:25

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