OpendTect-6_4  6.4
energyattrib.h
Go to the documentation of this file.
1 #ifndef energyattrib_h
2 #define energyattrib_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: 07-10-1999
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "attributesmod.h"
17 #include "attribprovider.h"
18 
19 
20 namespace Attrib
21 {
22 
45 {
46 public:
47  static void initClass();
48  Energy(Desc&);
49 
50  static const char* attribName() { return "Energy"; }
51  static const char* gateStr() { return "gate"; }
52  static const char* dogradStr() { return "dograd"; }
53 
54 protected:
55  ~Energy() {}
56  static Provider* createInstance(Desc&);
57  static void updateDefaults(Desc&);
58 
59  bool allowParallelComputation() const;
60  bool getInputOutput(int input,TypeSet<int>& res) const;
61  bool getInputData(const BinID&, int idx);
62  bool computeData(const DataHolder&,const BinID& relpos,
63  int t0,int nrsamples,int threadid) const;
64 
65  const Interval<float>* reqZMargin(int input,int output) const
66  { return &gate_; }
67  const Interval<int>* desZSampMargin(int input,int output) const
68  { return &dessampgate_; }
69 
72  bool dograd_;
73  int dataidx_;
75 };
76 
77 } // namespace Attrib
78 
79 
80 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Energy Attribute
Definition: energyattrib.h:44
static const char * gateStr()
Definition: energyattrib.h:51
FixedString Attributes()
Definition: keystrs.h:40
bool dograd_
Definition: energyattrib.h:72
int dataidx_
Definition: energyattrib.h:73
Interval< int > dessampgate_
Definition: energyattrib.h:71
const Interval< int > * desZSampMargin(int input, int output) const
Definition: energyattrib.h:67
Interval< float > gate_
Definition: energyattrib.h:70
const Interval< float > * reqZMargin(int input, int output) const
Definition: energyattrib.h:65
static const char * attribName()
Definition: energyattrib.h:50
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
Holds the attribute data.
Definition: attribdataholder.h:43
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Provides the actual output to ...
Definition: attribprovider.h:44
~Energy()
Definition: energyattrib.h:55
static const char * dogradStr()
Definition: energyattrib.h:52
const DataHolder * inputdata_
Definition: energyattrib.h:74
static void initClass()
Semblance Attribute.
Definition: attribdataholder.h:25

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