OpendTect  6.3
welldata.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: Bert Bril
8  Date: Aug 2003
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "wellcommon.h"
14 #include "sharedobject.h"
15 #include "dbkey.h"
16 
17 
18 namespace Well
19 {
20 
21 class DisplayProperties;
22 
23 
37 {
38 public:
39 
40  Data(const char* nm=0);
41  ~Data();
44 
45  const Info& info() const { return info_; }
46  Info& info() { return info_; }
47 
48  const Track& track() const { return track_; }
49  Track& track() { return track_; }
50 
51  const LogSet& logs() const { return logs_; }
52  LogSet& logs() { return logs_; }
53 
54  const MarkerSet& markers() const { return markers_; }
55  MarkerSet& markers() { return markers_; }
56 
57  const D2TModel& d2TModel() const { return gtMdl(false); }
58  D2TModel& d2TModel() { return gtMdl(false); }
59  const D2TModel& checkShotModel() const { return gtMdl(true); }
60  D2TModel& checkShotModel() { return gtMdl(true); }
61 
62  DisplayProperties& displayProperties( bool for2d=false )
63  { return for2d ? disp2d_ : disp3d_; }
64  const DisplayProperties& displayProperties( bool for2d=false ) const
65  { return for2d ? disp2d_ : disp3d_; }
66 
67  void setEmpty();
68 
69  void levelToBeRemoved(CallBacker*);
70 
71  bool haveTrack() const;
72  bool haveLogs() const;
73  bool haveMarkers() const;
74  bool haveD2TModel() const;
75  bool haveCheckShotModel() const;
76  bool displayPropertiesRead() const;
77 
78  // Following return null when mdl is empty:
79  D2TModel* d2TModelPtr() { return gtMdlPtr(false); }
80  D2TModel* checkShotModelPtr() { return gtMdlPtr(true); }
81  const D2TModel* d2TModelPtr() const { return gtMdlPtr(false); }
82  const D2TModel* checkShotModelPtr() const
83  { return gtMdlPtr(true); }
84 
85  // name comes from Info
86  virtual BufferString getName() const;
87  virtual void setName(const char*);
88  virtual const OD::String& name() const;
89 
90  virtual void touch() const;
91  virtual DirtyCountType dirtyCount() const;
92 
93  DBKey dbKey() const;
94  mDeprecated DBKey multiID() const { return dbKey(); }
95 
96 protected:
97 
106 
107  D2TModel& gtMdl(bool) const;
108  D2TModel* gtMdlPtr(bool) const;
109 
110 };
111 
112 
113 } // namespace Well
Display properties of a well.
Definition: welldisp.h:223
#define mExpClass(module)
Definition: commondefs.h:157
Set of Markers.
Definition: wellmarker.h:83
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
const D2TModel * checkShotModelPtr() const
Definition: welldata.h:82
LogSet & logs()
Definition: welldata.h:52
int64_t DirtyCountType
Definition: monitorable.h:84
const MarkerSet & markers() const
Definition: welldata.h:54
Depth to time model.
Definition: welld2tmodel.h:25
Definition: sharedobject.h:18
const D2TModel * d2TModelPtr() const
Definition: welldata.h:81
Information about a certain well.
Definition: wellinfo.h:26
Set of Well::Log's.
Definition: welllogset.h:24
#define mDeclMonitorableAssignment(clss)
like mDeclAbstractMonitorableAssignment but for non-abstract subclasses. Implements the clone() metho...
Definition: monitor.h:111
Track & track()
Definition: welldata.h:49
MarkerSet & markers_
Definition: welldata.h:103
D2TModel & d2TModel()
Definition: welldata.h:58
const Track & track() const
Definition: welldata.h:48
Info & info()
Definition: welldata.h:46
const LogSet & logs() const
Definition: welldata.h:51
D2TModel & csmodel_
Definition: welldata.h:102
#define mDeclInstanceCreatedNotifierAccess(clss)
Definition: notify.h:235
const DisplayProperties & displayProperties(bool for2d=false) const
Definition: welldata.h:64
LogSet & logs_
Definition: welldata.h:100
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:29
Definition: wellcommon.h:16
D2TModel * d2TModelPtr()
Definition: welldata.h:79
const D2TModel & checkShotModel() const
Definition: welldata.h:59
Well track.
Definition: welltrack.h:22
Info & info_
Definition: welldata.h:98
D2TModel & d2tmodel_
Definition: welldata.h:101
Track & track_
Definition: welldata.h:99
D2TModel * checkShotModelPtr()
Definition: welldata.h:80
MarkerSet & markers()
Definition: welldata.h:55
Definition: repos.h:23
DisplayProperties & disp2d_
Definition: welldata.h:104
mDeprecated DBKey multiID() const
Definition: welldata.h:94
DisplayProperties & disp3d_
Definition: welldata.h:105
#define mDeprecated
Definition: plfdefs.h:213
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
DisplayProperties & displayProperties(bool for2d=false)
Definition: welldata.h:62
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
The holder of all data concerning a certain well.
Definition: welldata.h:36
D2TModel & checkShotModel()
Definition: welldata.h:60
const Info & info() const
Definition: welldata.h:45
const D2TModel & d2TModel() const
Definition: welldata.h:57

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