OpendTect  6.6
uiwellmarkerdlg.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: Nanne Hemstra
8  Date: May 2007
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiwellmod.h"
15 #include "uidialog.h"
16 #include "wellmarker.h"
17 
18 class uiStratLevelSel;
19 class uiCheckBox;
20 class uiTable;
21 namespace Well {
22  class D2TModel;
23  class Data;
24  class Marker;
25  class Track;
26  class MarkerSet;
27  class Reader;
28 }
29 
32 mExpClass(uiWell) uiMarkerDlg : public uiDialog
34 public:
36  const Well::D2TModel*);
37  mDeprecated("Do not use legacy constructor")
38  uiMarkerDlg(uiParent*,const Well::Track&);
40 
41  void setMarkerSet(const Well::MarkerSet&,
42  bool addtoexisting=false);
43  bool getMarkerSet(Well::MarkerSet&) const;
44  static void exportMarkerSet(uiParent* p,
45  const Well::MarkerSet& mset,
46  const Well::Track& trck,
47  const Well::D2TModel* d2t,
48  uiCheckBox* cb=nullptr );
49 
50  mDeprecated("Use function taking Depth to Time model")
51  static void exportMarkerSet(uiParent* p,
52  const Well::MarkerSet& mset,
53  const Well::Track& trck,
54  uiCheckBox* cb=nullptr );
55 protected:
56 
57  uiTable* table_;
58  uiCheckBox* unitfld_;
59  const Well::Track& track_;
60  const Well::D2TModel* d2tmodel_();
61  Well::MarkerSet* oldmrkrs_;
62 
63  //TODO will go with the Strat level Sel
64 
65  void getColLabels(uiStringSet&) const;
66  void getColLabels(BufferStringSet&) const;
67  int getNrRows() const;
68  int rowNrFor(uiStratLevelSel*) const;
69  void mouseClick(CallBacker*);
70  void doStrat(CallBacker*);
71  void rdFile(CallBacker*);
72  bool acceptOK(CallBacker*);
73  void stratLvlChg(CallBacker*);
74  void unitChangedCB(CallBacker*);
75  void updateFromLevel(int,uiStratLevelSel*);
76  bool getFromScreen();
77  void markerChangedCB(CallBacker*);
78  void markerAddedCB(CallBacker*);
79  void setAsRegMarkersCB(CallBacker*);
80  float zFactor() const;
81  void exportCB(CallBacker*);
82  bool getKey(MultiID&) const;
83  void updateDisplayCB(CallBacker*);
84  bool rejectOK(CallBacker*);
85  bool updateMarkerDepths(int rowidx,bool md2tvdss);
86  float getOldMarkerVal(Well::Marker*) const;
87 
88  //This marker is now yours
89  Well::Marker* getMarker(int rowidx,bool fromname) const;
90 
91  void assignRandomColorsCB(CallBacker*);
92  void assignRandomColors(Well::MarkerSet&);
93 
94 };
95 
96 
101 public:
103 
104 protected:
105 
107  const Well::Data* wd_;
108 
110 
111 };
112 
113 
Conv::to
T to(const F &fr)
Definition: convert.h:34
Well::Data
The holder of all data concerning a certain well.
Definition: welldata.h:121
uiStringSet
Definition: uistringset.h:23
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiCheckBox
Definition: uibutton.h:167
uiMarkerViewDlg::exportCB
void exportCB(CallBacker *)
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
Repos::Data
@ Data
Definition: repos.h:24
uiMarkerDlg
Dialog for marker specifications.
Definition: uiwellmarkerdlg.h:33
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
uiStratLevelSel
Selector for stratigraphic levels.
Definition: uistratlvlsel.h:24
uiMarkerViewDlg::table_
uiTable * table_
Definition: uiwellmarkerdlg.h:100
Well::Track
Well track.
Definition: welltrack.h:29
Well
Definition: directionalsurvey.h:20
mDeprecated
#define mDeprecated(msg)
Definition: plfdefs.h:215
uiMarkerViewDlg
Dialog for Viewing the markers for a well.
Definition: uiwellmarkerdlg.h:100
uiMarkerViewDlg::wd_
const Well::Data * wd_
Definition: uiwellmarkerdlg.h:107
uidialog.h
sKey::Depth
FixedString Depth()
Definition: keystrs.h:60
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
sKey::Marker
FixedString Marker()
Definition: keystrs.h:98
uiTable
Definition: uitable.h:31
uiMarkerDlg::uiMarkerDlg
uiMarkerDlg(uiParent *, const Well::Track &, const Well::D2TModel *)
uiMarkerDlg::mDeprecated
mDeprecated("Do not use legacy constructor") uiMarkerDlg(uiParent *
uiParent
Definition: uiparent.h:26
wellmarker.h
uiDialog
Definition: uidialog.h:42
Well::D2TModel
Depth to time model.
Definition: welld2tmodel.h:34
Time
Definition: timefun.h:21
uiMarkerDlg::mODTextTranslationClass
mODTextTranslationClass(uiMarkerDlg)

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