OpendTect-6_4  6.4
mathattrib.h
Go to the documentation of this file.
1 #ifndef mathattrib_h
2 #define mathattrib_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: May 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "attributesmod.h"
16 #include "attribprovider.h"
17 
18 namespace Math { class Formula; class SpecVarSet; }
19 
20 namespace Attrib
21 {
22 
28 {
29 public:
30  static void initClass();
31  Mathematics(Desc&);
32 
33  static const char* attribName() { return "Math"; }
34  static const char* expressionStr() { return "expression"; }
35  static const char* cstStr() { return "constant"; }
36  static const char* recstartvalsStr() {return "recstartvals";}
37 
38  static const Math::SpecVarSet& getSpecVars();
39 
40 protected:
42  static Provider* createInstance(Desc&);
43  static void updateDesc(Desc&);
44 
45  bool getInputOutput(int in,TypeSet<int>& res) const;
46  bool getInputData(const BinID&, int);
47  bool computeData(const DataHolder&,const BinID& pos,
48  int t0,int nrsamples,
49  int threadid) const;
50 
51  bool allowParallelComputation() const;
52 
53  const Interval<float>* desZMargin(int input,int) const;
54  const Interval<int>* reqZSampMargin(int input,int) const;
55 
56 private:
59 
63 
64 };
65 
66 }; // namespace Attrib
67 
68 #endif
Interval< float > desintv_
Definition: mathattrib.h:61
#define mExpClass(module)
Definition: commondefs.h:160
static const char * cstStr()
Definition: mathattrib.h:35
Math Attribute
Definition: mathattrib.h:27
ObjectSet< const DataHolder > inputdata_
Definition: mathattrib.h:57
Interval< int > reqintv_
Definition: mathattrib.h:62
static const char * recstartvalsStr()
Definition: mathattrib.h:36
FixedString Attributes()
Definition: keystrs.h:40
static const char * attribName()
Definition: mathattrib.h:33
Set of special variables for Math Formulae/Expressions.
Definition: mathspecvars.h:47
Set of pointers to objects.
Definition: commontypes.h:32
Math formula: (expression, inputs, units, calculation, storage).
Definition: mathformula.h:65
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
::Math::Formula * formula_
Definition: mathattrib.h:60
Definition: math2.h:29
Provides the actual output to ...
Definition: attribprovider.h:44
TypeSet< int > inputidxs_
Definition: mathattrib.h:58
~Mathematics()
Definition: mathattrib.h:41
static const char * expressionStr()
Definition: mathattrib.h:34
static void initClass()
Semblance Attribute.
Definition: attribdataholder.h:25

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