OpendTect-6_4  6.4
emfaultset3d.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: Raman Singh
8  Date: Sep 2018
9 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "emfault3d.h"
15 
16 namespace EM
17 {
18 
19 typedef int FaultID;
20 
21 
26 mExpClass(EarthModel) FaultSet3D : public EMObject
28 public:
29 
30  uiString getUserTypeStr() const;
31 
32  int nrFaults() const;
33  FaultID getFaultID(int idx) const;
34 
35  FaultID addFault(RefMan<Fault3D>);
36  bool addFault(RefMan<Fault3D>,FaultID);
37  bool removeFault(FaultID);
38 
39 
40  RefMan<Fault3D> getFault3D(FaultID);
41  ConstRefMan<Fault3D> getFault3D(FaultID) const;
42 
43  int nrSections() const { return 1; }
44  SectionID sectionID(int) const { return 0; }
45 
46  Executor* loader();
47  virtual Executor* saver();
48 
49 protected:
50 
51  const IOObjContext& getIOObjContext() const;
52  int indexOf(FaultID) const;
53 
54  friend class ObjectManager;
55 
58  int curidnr_;
59 };
60 
61 } // namespace EM
od_int16 SectionID
Definition: emposid.h:25
#define mExpClass(module)
Definition: commondefs.h:160
int FaultID
Definition: emfaultset3d.h:19
SectionID sectionID(int) const
Definition: emfaultset3d.h:44
Definition: uistring.h:89
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
Set of pointers to objects.
Definition: commontypes.h:32
#define mDefineEMObjFuncs(clss)
Definition: emobject.h:373
int curidnr_
Definition: emfaultset3d.h:58
ObjectSet< Fault3D > faults_
Definition: emfaultset3d.h:56
void removeFault(EM::Fault &)
TypeSet< FaultID > ids_
Definition: emfaultset3d.h:57
3D FaultSet
Definition: emfaultset3d.h:26
Base class for all EarthModel objects.
Definition: emobject.h:158
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
void addFault(EM::Fault &)
int nrSections() const
Definition: emfaultset3d.h:43
Definition: ptrman.h:190
IOObjContext * getIOObjContext(Seis::GeomType, bool forread)
Definition: ptrman.h:168
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
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