OpendTect-6_4  6.4
positionattrib.h
Go to the documentation of this file.
1 #ifndef positionattrib_h
2 #define positionattrib_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: November 2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "attributesmod.h"
16 #include "attribprovider.h"
17 #include "binid.h"
18 #include "arrayndimpl.h"
19 
20 namespace Attrib
21 {
22 
43 {
44 public:
45  static void initClass();
46  Position(Desc&);
47 
48  static const char* attribName() { return "Position"; }
49  static const char* stepoutStr() { return "stepout"; }
50  static const char* gateStr() { return "gate"; }
51  static const char* operStr() { return "oper"; }
52  static const char* steeringStr() { return "steering"; }
53  static const char* operTypeStr(int);
54  void initSteering() { stdPrepSteering(stepout_); }
55 
56  void prepPriorToBoundsCalc();
57  virtual bool isSingleTrace() const
58  { return !stepout_.inl() && !stepout_.crl(); }
59 
60 protected:
61  ~Position();
62  static Provider* createInstance(Desc&);
63  static void updateDesc(Desc&);
64 
66  { return true; }
67 
68  bool getInputOutput(int inp,TypeSet<int>& res) const;
69  bool getInputData(const BinID&,int zintv);
70  bool computeData(const DataHolder&,
71  const BinID& relpos,
72  int z0,int nrsamples,
73  int threadid) const;
74 
75  const BinID* reqStepout(int input,int output) const
76  { return &stepout_; }
77  const Interval<float>* reqZMargin(int input,int output) const;
78  const Interval<float>* desZMargin(int input,int output) const;
79 
82  int oper_;
83  bool dosteer_;
84 
87 
88  int inidx_;
89  int outidx_;
91 
95 };
96 
97 } // namespace Attrib
98 
99 
100 #endif
#define mExpClass(module)
Definition: commondefs.h:160
const BinID * reqStepout(int input, int output) const
Definition: positionattrib.h:75
const DataHolder * steerdata_
Definition: positionattrib.h:94
bool dosteer_
Definition: positionattrib.h:83
Implementation of Array2D.
Definition: arrayndimpl.h:102
FixedString Attributes()
Definition: keystrs.h:40
Interval< float > desgate_
Definition: positionattrib.h:86
static const char * gateStr()
Definition: positionattrib.h:50
static const char * steeringStr()
Definition: positionattrib.h:52
Set of pointers to objects.
Definition: commontypes.h:32
static const char * operStr()
Definition: positionattrib.h:51
static const char * attribName()
Definition: positionattrib.h:48
int inidx_
Definition: positionattrib.h:88
FixedString Position()
Definition: keystrs.h:102
void initSteering()
Definition: positionattrib.h:54
ObjectSet< const DataHolder > inputdata_
Definition: positionattrib.h:92
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
Array2DImpl< const DataHolder * > * outdata_
Definition: positionattrib.h:93
bool allowParallelComputation() const
Definition: positionattrib.h:65
Interval< float > gate_
Definition: positionattrib.h:81
BinID stepout_
Definition: positionattrib.h:80
virtual bool isSingleTrace() const
Definition: positionattrib.h:57
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 * stepoutStr()
Definition: positionattrib.h:49
Provides the actual output to ...
Definition: attribprovider.h:44
TypeSet< BinID > positions_
Definition: positionattrib.h:85
Position Attribute.
Definition: positionattrib.h:42
int outidx_
Definition: positionattrib.h:89
int oper_
Definition: positionattrib.h:82
static void initClass()
Semblance Attribute.
Definition: attribdataholder.h:25
TypeSet< int > steerindexes_
Definition: positionattrib.h:90

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