OpendTect-6_4  6.4
uispecdecompattrib.h
Go to the documentation of this file.
1 #ifndef uispecdecompattrib_h
2 #define uispecdecompattrib_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: January 2003
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiattributesmod.h"
16 #include "multiid.h"
17 #include "uiattrdesced.h"
18 #include "uiattribpanel.h"
19 #include "iopar.h"
20 
21 namespace Attrib { class Desc; };
22 
23 class uiGenInput;
24 class uiImagAttrSel;
25 class uiLabeledSpinBox;
26 class uiPushButton;
27 class uiSpecDecompPanel;
28 class uiTrcPositionDlg;
29 
34 public:
35 
37 
38  void getEvalParams(TypeSet<EvalParam>&) const;
39  int getOutputIdx(float) const;
40  float getOutputValue(int) const;
41 protected:
42 
49 
50  bool setParameters(const Attrib::Desc&);
51  bool setInput(const Attrib::Desc&);
52  bool setOutput(const Attrib::Desc&);
53 
54  bool getParameters(Attrib::Desc&);
55  bool getInput(Attrib::Desc&);
56  bool getOutput(Attrib::Desc&);
57 
58  void inputSel(CallBacker*);
59  void typeSel(CallBacker*);
60  void stepChg(CallBacker*);
61  void panelTFPush(CallBacker*);
62 
63  void checkOutValSnapped() const;
64  void getInputMID(MultiID&) const;
65  Attrib::DescID createSpecDecompDesc(Attrib::DescSet*) const;
66  void createHilbertDesc(Attrib::DescSet*,
67  Attrib::DescID&) const;
69  const char*,int,int,BufferString) const;
70  Attrib::Desc* createNewDescFromDP(Attrib::DescSet*,const char* atrnm,
71  const char* userefstr) const;
72  void fillInSDDescParams(Attrib::Desc*) const;
73  bool passStdCheck(const Attrib::Desc*,const char*,
74  int seloutidx,int inpidx,
75  Attrib::DescID inpid) const;
76  void viewPanalCB(CallBacker*);
77  void setPrevSel();
78  void getPrevSel();
79  static const char* sKeyBinID();
80  static const char* sKeyLineName();
81  static const char* sKeyTrcNr();
82 
83  float nyqfreq_;
84  int nrsamples_;
85  float ds_;
86 
91 
93 };
94 
95 
96 mClass(uiAttributes) uiSpecDecompPanel : public uiAttribPanel
98 public:
100  : uiAttribPanel( p ) {};
101 
102 protected:
103  virtual const char* getProcName();
104  virtual const char* getPackName();
105  virtual const char* getPanelName();
106 
107 };
108 
109 #endif
Attribute preview in a 2d viewer.
Definition: uiattribpanel.h:28
#define mExpClass(module)
Definition: commondefs.h:160
uiGenInput * waveletfld_
Definition: uispecdecompattrib.h:48
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
float ds_
Sample spacing of selected data.
Definition: uispecdecompattrib.h:85
is the base class for all buttons.
Definition: uibutton.h:83
Definition: uitrcpositiondlg.h:49
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
User interface element for getting attribute with both real and imaginary part.
Definition: uiattrsel.h:247
Attribute description editor.
Definition: uiattrdesced.h:83
Set of attribute descriptions.
Definition: attribdescset.h:35
uiSpecDecompPanel(uiParent *p)
Definition: uispecdecompattrib.h:99
AttribDesc ID: each Desc has a unique ID in a set; the boolean isstored allows us to know whether thi...
Definition: attribdescid.h:27
#define mDeclReqAttribUIFns
Definition: uiattrdesced.h:209
Definition: uispecdecompattrib.h:96
Definition: uiparent.h:26
Spectral Decomposition Attribute description editor.
Definition: uispecdecompattrib.h:32
Set of (small) copyable elements.
Definition: commontypes.h:30
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Definition: uispinbox.h:128
Description of an attribute in an Attrib::DescSet. Each attribute has a name (e.g. "Similarity"), a user reference (e.g. "My similarity"), and at least one output. In addition, it may have parameters and inputs. If it has multiple outputs, only one of the outputs are selected.
Definition: attribdesc.h:89
uiGenInput * typefld_
Definition: uispecdecompattrib.h:44
General Input Element.
Definition: uigeninput.h:58
int nrsamples_
Nr of samples in selected data.
Definition: uispecdecompattrib.h:84
IOPar prevpar_
Definition: uispecdecompattrib.h:90
uiTrcPositionDlg * positiondlg_
Definition: uispecdecompattrib.h:89
uiLabeledSpinBox * stepfld_
Definition: uispecdecompattrib.h:47
float nyqfreq_
Definition: uispecdecompattrib.h:83
uiSpecDecompPanel * panelview_
Time Frequency panel.
Definition: uispecdecompattrib.h:88
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiLabeledSpinBox * outpfld_
Definition: uispecdecompattrib.h:46
uiImagAttrSel * inpfld_
Definition: uispecdecompattrib.h:43
#define mClass(module)
Definition: commondefs.h:164
uiGenInput * gatefld_
Definition: uispecdecompattrib.h:45
uiPushButton * tfpanelbut_
Definition: uispecdecompattrib.h:87
Compound key consisting of ints.
Definition: multiid.h:25
Semblance Attribute.
Definition: attribdataholder.h:25

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