OpendTect-6_4  6.4
emfaultstickset.h
Go to the documentation of this file.
1 #ifndef emfaultstickset_h
2 #define emfaultstickset_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: November 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "earthmodelmod.h"
17 #include "emfault.h"
18 
19 namespace Geometry { class FaultStickSet; }
20 namespace Pos { class Filter; }
21 
22 namespace EM
23 {
24 class EMManager;
25 
31 {
32 public:
35 
36  int nrSticks(const SectionID&) const;
37  int nrKnots(const SectionID&,int sticknr) const;
38 
39  bool insertStick(const SectionID&,int sticknr,int firstcol,
40  const Coord3& pos,const Coord3& editnormal,
41  bool addtohistory);
42  bool insertStick(const SectionID&,int sticknr,int firstcol,
43  const Coord3& pos,const Coord3& editnormal,
44  const MultiID* pickedmid,
45  const char* pickednm,bool addtohistory);
46  bool insertStick(const SectionID&,int sticknr,int firstcol,
47  const Coord3& pos,const Coord3& editnormal,
48  Pos::GeomID pickedgeomid,bool addtohistory);
49  bool removeStick(const SectionID&,int sticknr,
50  bool addtohistory);
51  bool insertKnot(const SectionID&,const SubID&,
52  const Coord3& pos,bool addtohistory);
53  bool removeKnot(const SectionID&,const SubID&,
54  bool addtohistory);
55 
56  bool pickedOnPlane(const SectionID&,int sticknr) const;
57  bool pickedOn2DLine(const SectionID&,int sticknr) const;
58  bool pickedOnHorizon(const SectionID&,int sticknr) const;
59 
60  const MultiID* pickedMultiID(const SectionID&,int sticknr) const;
61  const char* pickedName(const SectionID&,int sticknr) const;
62  Pos::GeomID pickedGeomID(const SectionID&,int sticknr)const;
63 
65  sectionGeometry(const SectionID&);
67  sectionGeometry(const SectionID&) const;
68 
69  EMObjectIterator* createIterator(const SectionID&,
70  const TrcKeyZSampling* =0) const;
71 
72  void fillPar(IOPar&) const;
73  bool usePar(const IOPar&);
74 
75 protected:
76  Geometry::FaultStickSet* createSectionGeometry() const;
77 
78  int indexOf(const SectionID& sid,int stricnr) const;
79 
80  struct StickInfo
81  {
82  StickInfo();
83 
84  int sid;
85  int sticknr;
89  };
90 
92 
93 };
94 
95 
100 mExpClass(EarthModel) FaultStickSet: public Fault
102 public:
103  FaultStickSetGeometry& geometry();
104  const FaultStickSetGeometry& geometry() const;
105  void apply(const Pos::Filter&);
106  uiString getUserTypeStr() const;
107 
108 
109 protected:
110 
111  const IOObjContext& getIOObjContext() const;
112 
114 };
115 
116 } // namespace EM
117 
118 #endif
od_int16 SectionID
Definition: emposid.h:25
#define mExpClass(module)
Definition: commondefs.h:160
FixedString Filter()
Definition: keystrs.h:67
Fault Surface base class.
Definition: emfault.h:84
FaultStickSetGeometry geometry_
Definition: emfaultstickset.h:113
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
ObjectSet< StickInfo > stickinfo_
Definition: emfaultstickset.h:91
Definition: uistring.h:89
int sid
Definition: emfaultstickset.h:84
int sticknr
Definition: emfaultstickset.h:85
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
BufferString pickednm
Definition: emfaultstickset.h:88
od_int64 SubID
Definition: emposid.h:26
Decides whether a given position should be included.
Definition: posfilter.h:45
Set of pointers to objects.
Definition: commontypes.h:32
Iterator that iterates a number of positions (normally all) on an EMObject. The object is created by ...
Definition: emobject.h:122
#define mDefineEMObjFuncs(clss)
Definition: emobject.h:373
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Fault stick set.
Definition: emfaultstickset.h:100
FaultStickSet geometry.
Definition: emfaultstickset.h:30
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
Position.
Definition: commontypes.h:42
MultiID pickedmid
Definition: emfaultstickset.h:87
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
A cartesian coordinate in 3D space.
Definition: coord.h:72
Index_Type GeomID
Definition: commontypes.h:52
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
FaultGeometry base class.
Definition: emfault.h:32
Definition: emfaultstickset.h:80
Base class for surfaces like horizons and faults. A surface is made up of one or more segments or pat...
Definition: emsurface.h:33
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
Pos::GeomID pickedgeomid
Definition: emfaultstickset.h:86
Definition: faultstickset.h:27
Definition: arraytesselator.h:21
IOObjContext * getIOObjContext(Seis::GeomType, bool forread)
Compound key consisting of ints.
Definition: multiid.h:25
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62

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