OpendTect-6_4  6.4
emfsstofault3d.h
Go to the documentation of this file.
1 #ifndef emfsstofault3d_h
2 #define emfsstofault3d_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: J.C. Glas
9  Date: March 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "earthmodelmod.h"
17 #include "emposid.h"
18 #include "coord.h"
19 #include "sets.h"
20 
21 
22 namespace Geometry { class FaultStickSet; }
23 
24 namespace EM
25 {
26 
27 class FaultStickSet;
28 class Fault3D;
29 
35 {
36 public:
37 
38  mExpClass(EarthModel) Setup
39  {
40  public:
41  Setup();
42 
43  enum DirSpec { Auto, Horizontal, Vertical };
44 
45  mDefSetupMemb(DirSpec,pickplanedir) // Default Auto
46  mDefSetupMemb(bool,sortsticks) // Default true
47  mDefSetupMemb(double,zscale) // Default SI().zScale()
48 
49  mDefSetupMemb(bool,useinlcrlslopesep) // Default false
50  mDefSetupMemb(double,stickslopethres) // Default mUdf(double)
51  mDefSetupMemb(DirSpec,stickseldir) // Default Auto
52 
53  mDefSetupMemb(bool,addtohistory) // Default false
54  };
55 
56  FSStoFault3DConverter(const Setup&,
57  const FaultStickSet&,
58  Fault3D&);
59  bool convert(bool forimport);
60 
61 protected:
62 
63  mExpClass(EarthModel) FaultStick
64  {
65  public:
66  FaultStick(int sticknr);
67 
68  int sticknr_;
72 
73  Coord3 findPlaneNormal() const;
74  double slope(double zscale) const;
75  bool pickedOnInl() const;
76  bool pickedOnCrl() const;
77  bool pickedOnTimeSlice() const;
78  bool pickedOnHorizon() const;
79  };
80 
85 
87 
88  bool readSection(const SectionID&);
89  bool readSectionForImport(const SectionID&);
90  bool preferHorPicked() const;
91  void selectSticks( bool selhorpicked );
92  void geometricSort(double zscale,bool forimport);
93  void untwistSticks(double zscale);
94  void resolveUdfNormals();
95  bool writeSection(const SectionID&) const;
96 };
97 
98 } // namespace EM
99 
100 #endif
od_int16 SectionID
Definition: emposid.h:25
#define mExpClass(module)
Definition: commondefs.h:160
FixedString Setup()
Definition: keystrs.h:116
const Geometry::FaultStickSet * curfssg_
Definition: emfsstofault3d.h:86
int sticknr_
Definition: emfsstofault3d.h:68
ObjectSet< FaultStick > sticks_
Definition: emfsstofault3d.h:84
Setup setup_
Definition: emfsstofault3d.h:83
Definition: oduicommon.h:25
DirSpec
Definition: emfsstofault3d.h:43
Set of pointers to objects.
Definition: commontypes.h:32
Fault stick set.
Definition: emfaultstickset.h:100
Definition: emfsstofault3d.h:63
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
Definition: oduicommon.h:26
A cartesian coordinate in 3D space.
Definition: coord.h:72
T convert(Type inptyp, T val, Type outtyp)
Definition: angles.h:76
Definition: emfsstofault3d.h:38
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
3D Fault
Definition: emfault3d.h:78
bool pickedonplane_
Definition: emfsstofault3d.h:71
Coord3 normal_
Definition: emfsstofault3d.h:70
FaultStickSet to Fault3D converter.
Definition: emfsstofault3d.h:34
Definition: faultstickset.h:27
TypeSet< Coord3 > crds_
Definition: emfsstofault3d.h:69
const FaultStickSet & fss_
Definition: emfsstofault3d.h:81
Definition: arraytesselator.h:21
Fault3D & fault3d_
Definition: emfsstofault3d.h:82

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