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

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