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

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