OpendTect-6_4  6.4
emhor2dseisiter.h
Go to the documentation of this file.
1 #ifndef emhor2dseisiter_h
2 #define emhor2dseisiter_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Oct 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "emattribmod.h"
16 #include "multiid.h"
17 class Seis2DDataSet;
18 namespace EM { class Horizon2D; class Horizon2DGeometry; }
19 
20 
21 namespace EM
22 {
23 
29 {
30 public:
31 
32  Hor2DSeisLineIterator(const Horizon2D&);
33  Hor2DSeisLineIterator(const MultiID&);
34  virtual ~Hor2DSeisLineIterator();
35 
36  bool next();
37  bool isValid() const;
38  void reset();
39  void getLineSet();
40  int nrLines() const { return nrlines_; }
41  int nrLinesDone() const { return lineidx_+1; }
42  const char* lineName() const;
43  int lineSetIndex(const char* attrnm=0) const;
44  const MultiID& lineSetKey() { return curlsid_; }
45 
46  const Horizon2D* horizon() const { return h2d_; }
47  const Horizon2DGeometry& geometry() const { return *geom_; }
48  Seis2DDataSet* dataSet() { return dataset_; }
49  const Seis2DDataSet* dataSet() const { return dataset_; }
50 
51 protected:
52 
53  const Horizon2D* h2d_;
55  int lineidx_;
56  const int nrlines_;
59 
60 private:
61 
62  void init(const Horizon2D*);
63 
64 };
65 
66 } // namespace EM
67 
68 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Horizon2D line iterator.
Definition: emhor2dseisiter.h:28
bool init()
const Seis2DDataSet * dataSet() const
Definition: emhor2dseisiter.h:49
2D Horizon. The Horizon is only present along 2d lines, set by addLine. Each position's subid is form...
Definition: emhorizon2d.h:108
const Horizon2D * horizon() const
Definition: emhor2dseisiter.h:46
Seis2DDataSet * dataset_
Definition: emhor2dseisiter.h:57
const MultiID & lineSetKey()
Definition: emhor2dseisiter.h:44
const Horizon2DGeometry & geometry() const
Definition: emhor2dseisiter.h:47
int nrLines() const
Definition: emhor2dseisiter.h:40
const int nrlines_
Definition: emhor2dseisiter.h:56
int lineidx_
Definition: emhor2dseisiter.h:55
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
const Horizon2D * h2d_
Definition: emhor2dseisiter.h:53
2D HorizonGeometry
Definition: emhorizon2d.h:35
const Horizon2DGeometry * geom_
Definition: emhor2dseisiter.h:54
Seis2DDataSet * dataSet()
Definition: emhor2dseisiter.h:48
int nrLinesDone() const
Definition: emhor2dseisiter.h:41
MultiID curlsid_
Definition: emhor2dseisiter.h:58
Set of 2D lines comparable with 3D seismic cube.
Definition: seis2ddata.h:37
Compound key consisting of ints.
Definition: multiid.h:25

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