OpendTect-6_4  6.4
uipsviewer2dposdlg.h
Go to the documentation of this file.
1 #ifndef uipsviewer2dposdlg_h
2 #define uipsviewer2dposdlg_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bruno
8  Date: Jan 2011
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "multiid.h"
15 #include "bufstringset.h"
16 #include "rowcol.h"
17 #include "uistring.h"
18 #include "uiprestackprocessingmod.h"
19 #include "uislicesel.h"
20 
21 class uiListBox;
22 class uiTable;
23 class uiPushButton;
24 class uiToolButton;
25 
26 namespace PreStackView
27 {
28 
29 
30 mStruct(uiPreStackProcessing) GatherInfo
31 {
32  GatherInfo()
33  : isstored_(true), isselected_( false ), vddpid_(-1)
34  , wvadpid_(-1), bid_(mUdf(int),mUdf(int)) {}
35  bool isstored_;
36  bool isselected_;
37  MultiID mid_;
38  int vddpid_;
39  int wvadpid_;
40  BufferString gathernm_;
41  BinID bid_;
42 bool operator==( const GatherInfo& info ) const
43 {
44  return isstored_==info.isstored_ && 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(CallBacker*);
115 };
116 
117 
118 mExpClass(uiPreStackProcessing) uiViewer2DSelDataDlg : public uiDialog
120 public:
123 protected:
124 
129 
131 
132  void selButPush(CallBacker*);
133  bool acceptOK(CallBacker*);
134 };
135 
136 }; //namespace
137 
138 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uislicesel.h:29
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
void enableZDisplay(bool yn)
Definition: uipsviewer2dposdlg.h:101
is the base class for all buttons.
Definition: uibutton.h:83
#define mStruct(module)
Definition: commondefs.h:165
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Gather display.
Definition: psviewer2dgatherpainter.h:27
Definition: uipsviewer2dposdlg.h:118
Definition: uipsviewer2dposdlg.h:90
Definition: uitable.h:30
BufferStringSet gathernms_
Definition: uipsviewer2dposdlg.h:73
bool is2d_
Definition: uipsviewer2dposdlg.h:113
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
Definition: uidialog.h:42
Definition: uipsviewer2dposdlg.h:53
Definition: callback.h:254
uiListBox * selgatherfld_
Definition: uipsviewer2dposdlg.h:126
List Box.
Definition: uilistbox.h:75
bool issynthetic_
Definition: uipsviewer2dposdlg.h:74
Definition: uispinbox.h:128
TypeSet< int > dispgatheridxs_
Definition: uipsviewer2dposdlg.h:76
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
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:33
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiLabeledSpinBox * stepfld_
Definition: uipsviewer2dposdlg.h:70
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
uiToolButton * fromselect_
Definition: uipsviewer2dposdlg.h:128
uiTable * posseltbl_
Definition: uipsviewer2dposdlg.h:72
Definition: uitoolbutton.h:22
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
Compound key consisting of ints.
Definition: multiid.h:25

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