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

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