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

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