OpendTect  6.3
uipsviewer2dposdlg.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  Author: Bruno
7  Date: Jan 2011
8 ________________________________________________________________________
9 
10 -*/
11 
12 #include "dbkey.h"
13 #include "bufstringset.h"
14 #include "rowcol.h"
15 #include "datapack.h"
16 #include "uistring.h"
17 #include "uiprestackprocessingmod.h"
18 #include "uislicesel.h"
19 
20 class uiListBox;
21 class uiTable;
22 class uiPushButton;
23 class uiToolButton;
24 
25 namespace PreStackView
26 {
27 
28 
29 mStruct(uiPreStackProcessing) GatherInfo
30 {
31  GatherInfo()
32  : isstored_(true), isselected_( false )
33  , bid_(mUdf(int),mUdf(int)) {}
34  bool isstored_;
35  bool isselected_;
36  DBKey mid_;
37  DataPack::ID vddpid_;
38  DataPack::ID wvadpid_;
39  BufferString gathernm_;
40  BinID bid_;
41  inline bool operator==( const GatherInfo& info ) const
42  {
43  return isstored_==info.isstored_
44  && bid_==info.bid_ &&
45  (isstored_ ? mid_==info.mid_
46  : (gathernm_==info.gathernm_));
47  }
48 
49 };
50 
51 
52 
53 mExpClass(uiPreStackProcessing) uiGatherPosSliceSel : public uiSliceSel
55 public:
57  const BufferStringSet&,
58  bool issynthetic=false);
59 
60  const TrcKeyZSampling& cubeSampling();
61  void setTrcKeyZSampling(const TrcKeyZSampling&);
62  void setStep(int);
63  int step() const;
64 
65  void enableZDisplay(bool);
66  void getSelGatherInfos(TypeSet<GatherInfo>&);
67  void setSelGatherInfos(const TypeSet<GatherInfo>&);
68 
69 protected:
78 
79  void resetDispGatherInfos();
80  void reDoTable();
81 
82  void posChged(CallBacker*);
83  void applyPushed(CallBacker*);
84  void gatherChecked(CallBacker*);
85  void gatherPosChanged(CallBacker*);
86  void updatePosTable(CallBacker*);
87  void cellSelectedCB(CallBacker*);
88 };
89 
90 mExpClass(uiPreStackProcessing) uiViewer2DPosDlg : public uiDialog
92 public:
93  uiViewer2DPosDlg(uiParent*,bool is2d,
94  const TrcKeyZSampling&,
95  const BufferStringSet&,
96  bool issynthetic);
97 
98  void setTrcKeyZSampling(const TrcKeyZSampling&);
99  void getTrcKeyZSampling(TrcKeyZSampling&);
100 
101  void enableZDisplay(bool yn)
102  { sliceselfld_->enableZDisplay(yn); }
104  { sliceselfld_->getSelGatherInfos(infos); }
106  { sliceselfld_->setSelGatherInfos(gi); }
107 
109 
110 protected:
111 
113  bool is2d_;
114  bool acceptOK();
115 };
116 
117 
118 mExpClass(uiPreStackProcessing) uiViewer2DSelDataDlg : public uiDialog
120 public:
123 protected:
124 
129 
131 
132  void selButPush(CallBacker*);
133  bool acceptOK();
134 };
135 
136 }; //namespace
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
Definition: uislicesel.h:27
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
void enableZDisplay(bool yn)
Definition: uipsviewer2dposdlg.h:101
is the base class for all buttons.
Definition: uibutton.h:80
#define mStruct(module)
Definition: commondefs.h:162
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Gather display.
Definition: psviewer2dgatherpainter.h:25
Definition: uipsviewer2dposdlg.h:118
Definition: uipsviewer2dposdlg.h:90
Definition: uitable.h:29
BufferStringSet gathernms_
Definition: uipsviewer2dposdlg.h:73
bool is2d_
Definition: uipsviewer2dposdlg.h:113
Definition: uiparent.h:24
Set of BufferString objects.
Definition: bufstringset.h:25
Definition: uidialog.h:40
Definition: uipsviewer2dposdlg.h:53
Class to help setup a callback handling.
Definition: notify.h:121
uiListBox * selgatherfld_
Definition: uipsviewer2dposdlg.h:126
List Box.
Definition: uilistbox.h:73
bool issynthetic_
Definition: uipsviewer2dposdlg.h:74
Definition: uispinbox.h:123
TypeSet< int > dispgatheridxs_
Definition: uipsviewer2dposdlg.h:76
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:270
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:32
TypeSet< GatherInfo > gatherinfos_
Definition: uipsviewer2dposdlg.h:75
uiToolButton * toselect_
Definition: uipsviewer2dposdlg.h:127
void getSelGatherInfos(TypeSet< GatherInfo > &infos)
Definition: uipsviewer2dposdlg.h:103
void setSelGatherInfos(const TypeSet< GatherInfo > &gi)
Definition: uipsviewer2dposdlg.h:105
uiGatherPosSliceSel * sliceselfld_
Definition: uipsviewer2dposdlg.h:112
Type
Definition: uislicesel.h:31
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
uiLabeledSpinBox * stepfld_
Definition: uipsviewer2dposdlg.h:70
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:28
uiToolButton * fromselect_
Definition: uipsviewer2dposdlg.h:128
uiTable * posseltbl_
Definition: uipsviewer2dposdlg.h:72
Definition: uitoolbutton.h:20
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
Definition: groupedid.h:41
Notifier< uiViewer2DPosDlg > okpushed_
Definition: uipsviewer2dposdlg.h:108
BufferStringSet & selgathers_
Definition: uipsviewer2dposdlg.h:130
uiListBox * allgatherfld_
Definition: uipsviewer2dposdlg.h:125
TypeSet< RowCol > disptblposs_
Definition: uipsviewer2dposdlg.h:77
uiPushButton * updbut_
Definition: uipsviewer2dposdlg.h:71

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