OpendTect-6_4  6.4
horizonsorter.h
Go to the documentation of this file.
1 #ifndef horizonsorter_h
2 #define horizonsorter_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: N. Hemstra
9  Date: April 2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "earthmodelmod.h"
16 #include "executor.h"
17 
18 #include "trckeyzsampling.h"
19 #include "multiid.h"
20 #include "binid.h"
21 #include "posinfo2dsurv.h"
22 
23 
24 namespace EM { class Horizon; }
25 template <class T> class Array3D;
27 
32 mExpClass(EarthModel) HorizonSorter : public Executor
34 public:
35 
37  bool is2d=false);
38  ~HorizonSorter();
39 
40  void setTaskRunner(TaskRunner&);
41 
42  void getSortedList(TypeSet<MultiID>&);
43  const TrcKeySampling& getBoundingBox() const { return tks_; }
44  int getNrCrossings(const MultiID&,
45  const MultiID&) const;
46 
47  uiString uiMessage() const;
48  od_int64 totalNr() const;
49  od_int64 nrDone() const;
50  uiString uiNrDoneText() const;
51 
52 protected:
53 
54  int nextStep();
55  void calcBoundingBox();
56  void init();
57  void sort();
58 
59  int totalnr_;
60  int nrdone_;
61 
62  bool is2d_;
65 
74 
76 };
77 
78 
79 #endif
#define mExpClass(module)
Definition: commondefs.h:160
BinID binid_
Definition: horizonsorter.h:67
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define od_int64
Definition: plftypes.h:36
bool init()
TaskRunner * taskrun_
Definition: horizonsorter.h:73
const TrcKeySampling & getBoundingBox() const
Definition: horizonsorter.h:43
uiString message_
Definition: horizonsorter.h:75
Finds next BinID in TrcKeySampling; initializes to first position.
Definition: trckeysampling.h:189
TypeSet< MultiID > sortedids_
Definition: horizonsorter.h:72
Definition: uistring.h:89
TypeSet< StepInterval< int > > trcrgs_
Definition: horizonsorter.h:64
TypeSet< Pos::GeomID > geomids_
Definition: horizonsorter.h:63
Class that can execute a task.
Definition: task.h:169
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
FixedString Horizon()
Definition: keystrs.h:72
Array3D< int > * result_
Definition: horizonsorter.h:70
int nrdone_
Definition: horizonsorter.h:60
TrcKeySampling tks_
Definition: horizonsorter.h:68
void sort(ObjectSet< T > &os)
Sort ObjectSet. Must have operator > defined for elements.
Definition: objectset.h:220
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
TypeSet< MultiID > unsortedids_
Definition: horizonsorter.h:71
bool is2d_
Definition: horizonsorter.h:62
ObjectSet< EM::Horizon > horizons_
Definition: horizonsorter.h:69
int totalnr_
Definition: horizonsorter.h:59
TrcKeySampling tks_
Definition: trckeysampling.h:208
TrcKeySamplingIterator * iterator_
Definition: horizonsorter.h:66
Array3D ( Subclass of ArrayND ) is a three dimensional array.
Definition: arraynd.h:153
Executor to sort horizons.
Definition: horizonsorter.h:32
Compound key consisting of ints.
Definition: multiid.h:25
Specification to enable chunkwise execution of a process.
Definition: executor.h:39

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