OpendTect-6_4  6.4
emfaultauxdata.h
Go to the documentation of this file.
1 #ifndef emfaultauxdata_h
2 #define emfaultauxdata_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Yuancheng Liu
9  Date: 08-01-2012
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "earthmodelmod.h"
17 
18 #include "bufstringset.h"
19 #include "odmemory.h"
20 
21 template <class T> class Array2D;
22 
23 
24 namespace EM
25 {
26 
27 class Fault3D;
28 
34 { mODTextTranslationClass(FaultAuxData);
35 public:
36  FaultAuxData(const Fault3D&);
37  FaultAuxData(const MultiID&);
38  ~FaultAuxData();
39 
40  bool init();
41  int setData(const char* sdname,const Array2D<float>* data,
43  void setData(int sdidx,const Array2D<float>*,
45  const Array2D<float>* loadIfNotLoaded(const char* sdname);
46  const Array2D<float>* loadIfNotLoaded(int sdidx);
47  int dataIndex(const char* sdname) const;
48 
49  void setSelected(const TypeSet<int>& sl);
50  const TypeSet<int>& selectedIndices() const { return selected_; }
51  const BufferStringSet& selectedNames() const { return selattribnames_; }
52 
53  bool storeData(int sdidx,bool binary);
54 
55  void setDataName(int sdidx,const char* newname);
56  void setDataName(const char* oldname,const char* newname);
57  void removeData(const char* sdname);
58  void removeData(int sdidx);
59  void removeAllData();
60  void renameFault(const char* fltnewname);
61 
62  void getAuxDataList(BufferStringSet&) const;
63  uiString errMsg() const { return errmsg_; }
64 
65 protected:
66 
67  const char* sKeyFaultAuxData() { return "Fault Aux Data"; }
68  const char* sKeyExtension() { return "auxinfo"; }
69 
70  bool loadData(int sdidx);
71  enum Action { Remove=0, SetName=1 };
72  void updateDataFiles(Action,int idx,const char* newnme=0);
73  void readSDInfoFile(ObjectSet<IOPar>&);
74  BufferString createFltDataName(const char* base,int sdidx);
75 
79 
80  struct DataInfo
81  {
82  DataInfo();
83  ~DataInfo();
84  bool operator==(const DataInfo&);
85 
90  };
91 
95 };
96 
97 
98 } // namespace EM
99 
100 
101 #endif
#define mExpClass(module)
Definition: commondefs.h:160
const Array2D< float > * data
Definition: emfaultauxdata.h:88
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
OD::PtrPolicy policy
Definition: emfaultauxdata.h:89
bool init()
BufferStringSet selattribnames_
Definition: emfaultauxdata.h:94
Definition: uistring.h:89
Set of BufferString objects.
Definition: bufstringset.h:28
Action
Definition: emfaultauxdata.h:71
TypeSet< int > selected_
Definition: emfaultauxdata.h:93
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:131
const TypeSet< int > & selectedIndices() const
Definition: emfaultauxdata.h:50
Definition: emfaultauxdata.h:80
Fault surface data.
Definition: emfaultauxdata.h:33
const char * sKeyFaultAuxData()
Definition: emfaultauxdata.h:67
BufferString filename
Definition: emfaultauxdata.h:87
BufferString username
Definition: emfaultauxdata.h:86
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString errmsg_
Definition: horizontracker.h:119
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
PtrPolicy
Definition: odmemory.h:22
Definition: oduicommon.h:75
3D Fault
Definition: emfault3d.h:78
const BufferStringSet & selectedNames() const
Definition: emfaultauxdata.h:51
uiString errmsg_
Definition: emfaultauxdata.h:78
ObjectSet< DataInfo > dataset_
Definition: emfaultauxdata.h:92
uiString errMsg() const
Definition: emfaultauxdata.h:63
Compound key consisting of ints.
Definition: multiid.h:25
const MultiID & faultmid_
Definition: emfaultauxdata.h:76
BufferString fltfullnm_
Definition: emfaultauxdata.h:77
const char * sKeyExtension()
Definition: emfaultauxdata.h:68

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