OpendTect  6.6
attribdataholderarray.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  Author: Nanne Hemstra
7  Date: January 2007
8  RCS: $Id$
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "attributeenginemod.h"
14 #include "arraynd.h"
15 
16 
17 namespace Attrib
18 {
19 
20 class DataHolder;
21 
25 mExpClass(AttributeEngine) DataHolderArray : public Array3D<float>
26 {
27 public:
29  /*Use for single inlines, crosslines or 2D lines
30  with multiple valueseries. type_=0 */
31 
33  int sidx,int dim0sz,int dim1sz);
34  /*Use for a block of data, eg the result of stepout.
35  dim0sz and dim1sz are usually nrinl and nrcrl.
36  Only 1 valueseries is used, the one at index sidx.
37  type_=1 */
38 
40 
41  void set(int i0,int i1,int i2,float val);
42  float get(int i0,int i1,int i2) const;
43  const Array3DInfo& info() const { return info_; }
44 
45  virtual void getAll(float*) const;
46  virtual void getAll(ValueSeries<float>& vs) const;
47 
48 protected:
49 
52  char type_;
54 };
55 
56 } // namespace Attrib
57 
ValueSeries< float >
Attrib::DataHolderArray
An array of attribute data holders.
Definition: attribdataholderarray.h:26
Attrib::DataHolderArray::getAll
virtual void getAll(ValueSeries< float > &vs) const
Attrib::DataHolderArray::seriesidx_
int seriesidx_
Definition: attribdataholderarray.h:53
Attrib::DataHolderArray::get
float get(int i0, int i1, int i2) const
ObjectSet
Set of pointers to objects.
Definition: commontypes.h:31
Attrib::DataHolderArray::dh_
ObjectSet< DataHolder > dh_
Definition: attribdataholderarray.h:51
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Attrib::DataHolderArray::set
void set(int i0, int i1, int i2, float val)
arraynd.h
Array3D< float >
Attrib::DataHolderArray::info_
Array3DInfoImpl info_
Definition: attribdataholderarray.h:50
Attrib::DataHolderArray::getAll
virtual void getAll(float *) const
Attrib::DataHolderArray::DataHolderArray
DataHolderArray(const ObjectSet< DataHolder > &)
Array3DInfo
Contains the information about the size of Array3D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:147
Array3DInfoImpl
Implementation of Array3DInfo.
Definition: arrayndinfo.h:239
Attrib::DataHolderArray::info
const Array3DInfo & info() const
Definition: attribdataholderarray.h:43
Attrib::DataHolderArray::~DataHolderArray
~DataHolderArray()
Attrib
Semblance Attribute.
Definition: attribdataholder.h:25
Attrib::DataHolderArray::DataHolderArray
DataHolderArray(const ObjectSet< DataHolder > &dh, int sidx, int dim0sz, int dim1sz)
Attrib::DataHolderArray::type_
char type_
Definition: attribdataholderarray.h:52

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