OpendTect-6_4  6.4
faulthorintersect.h
Go to the documentation of this file.
1 #ifndef faulthorintersect_h
2 #define faulthorintersect_h
3 
4 /*+
5 ________________________________________________________________________
6 (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7 Author: Yuancheng Liu
8 Date: March 2010
9 RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "geometrymod.h"
15 #include "gendefs.h"
16 #include "paralleltask.h"
17 #include "executor.h"
18 
19 class Coord3List;
20 class Coord3ListImpl;
21 
22 namespace Geometry
23 {
24 
25 class BinIDSurface;
26 class IndexedShape;
27 class ExplFaultStickSurface;
28 class FaultStickSet;
29 
30 
32 {
33 public:
34  FaultBinIDSurfaceIntersector(float horshift,
35  const BinIDSurface&,
36  const ExplFaultStickSurface&,
37  Coord3List&);
39 
40  void compute();
41 
42  //The shape is optional, if not set, we still
43  //compute intersections, stored in crdlist_
44  void setShape(const IndexedShape&);
45  const IndexedShape* getShape(bool takeover=true);
46 
47 protected:
48 
49  float zshift_;
54 
55 private:
56  void sortPointsToLine(TypeSet<Coord3>&,
58  const Coord3 findNearestPoint(const Coord3&,
60  bool findMin(TypeSet<Coord3>&,int&,bool);
61  int optimizeOrder(TypeSet<Coord3>&);
62 
63 };
64 
67 public:
69  float horshift,
70  BinIDSurface*,
73 
75 
76  virtual od_int64 totalNr() const { return totalnr_; }
77  virtual od_int64 nrDone() const { return nrdone_; }
79  { return tr( "Fault-Horizon "
80  "Intersector Calculator" ); }
82  { return tr( "Faults handled" ); }
83 
84  int nextStep();
85 
87  { return crdlistset_; }
88 
89 protected:
90 
91  float zshift_;
96 
97  int totalnr_;
98  int nrdone_;
99 };
100 
101 
102 };
103 
104 
105 #endif
#define mExpClass(module)
Definition: commondefs.h:160
ObjectSet< FaultStickSet > & fssset_
Definition: faulthorintersect.h:94
Definition: indexedshape.h:182
Interface for a list of Coord3 with automatically maintained IDs.
Definition: positionlist.h:72
int totalnr_
Definition: faulthorintersect.h:97
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Coord3List & crdlist_
Definition: faulthorintersect.h:50
#define od_int64
Definition: plftypes.h:36
Definition: faulthorintersect.h:31
const BinIDSurface & surf_
Definition: faulthorintersect.h:51
uiString uiMessage() const
will be message() again in 7.x
Definition: faulthorintersect.h:78
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: faulthorintersect.h:81
virtual od_int64 totalNr() const
Definition: faulthorintersect.h:76
const ExplFaultStickSurface & eshape_
Definition: faulthorintersect.h:53
Definition: uistring.h:89
A list of Coord3 where each coord has a unique id.
Definition: positionlist.h:126
Set of pointers to objects.
Definition: commontypes.h:32
Definition: faulthorintersect.h:65
float zshift_
Definition: faulthorintersect.h:91
A cartesian coordinate in 3D space.
Definition: coord.h:72
mODTextTranslationClass(BulkFaultBinIDSurfaceIntersector) public ~BulkFaultBinIDSurfaceIntersector()
Definition: faulthorintersect.h:74
od_int64 nriter_
Definition: faulthorintersect.h:95
float zshift_
Definition: faulthorintersect.h:49
const BinIDSurface * surf_
Definition: faulthorintersect.h:93
~FaultBinIDSurfaceIntersector()
Definition: faulthorintersect.h:38
Definition: binidsurface.h:27
Definition: explfaultsticksurface.h:37
const IndexedShape * output_
Definition: faulthorintersect.h:52
ObjectSet< Coord3ListImpl > & crdlistset_
Definition: faulthorintersect.h:92
const ObjectSet< Coord3ListImpl > getIntersectionPoints()
Definition: faulthorintersect.h:86
virtual od_int64 nrDone() const
Definition: faulthorintersect.h:77
Definition: arraytesselator.h:21
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
int nrdone_
Definition: faulthorintersect.h:98

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