OpendTect  6.3
uispecdecompattrib.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: January 2003
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uiattributesmod.h"
14 #include "dbkey.h"
15 #include "uiattrdesced.h"
16 #include "uiattribpanel.h"
17 #include "iopar.h"
18 
19 namespace Attrib { class Desc; };
20 
21 class uiGenInput;
22 class uiImagAttrSel;
23 class uiLabeledSpinBox;
24 class uiPushButton;
25 class uiSpecDecompPanel;
26 class uiTrcPositionDlg;
27 
32 public:
33 
35 
36  void getEvalParams(TypeSet<EvalParam>&) const;
37  int getOutputIdx(float) const;
38  float getOutputValue(int) const;
39 protected:
40 
47 
48  bool setParameters(const Attrib::Desc&);
49  bool setInput(const Attrib::Desc&);
50  bool setOutput(const Attrib::Desc&);
51 
52  bool getParameters(Attrib::Desc&);
53  bool getInput(Attrib::Desc&);
54  bool getOutput(Attrib::Desc&);
55 
56  void inputSel(CallBacker*);
57  void typeSel(CallBacker*);
58  void stepChg(CallBacker*);
59  void panelTFPush(CallBacker*);
60 
61  void checkOutValSnapped() const;
62  void getInputMID(DBKey&) const;
63  Attrib::DescID createSpecDecompDesc(Attrib::DescSet*) const;
64  void createHilbertDesc(Attrib::DescSet*,
65  Attrib::DescID&) const;
67  const char*,int,int,BufferString) const;
68  Attrib::Desc* createNewDescFromDP(Attrib::DescSet*,const char* atrnm,
69  const char* userefstr) const;
70  void fillInSDDescParams(Attrib::Desc*) const;
71  bool passStdCheck(const Attrib::Desc*,const char*,
72  int seloutidx,int inpidx,
73  Attrib::DescID inpid) const;
74  void viewPanalCB(CallBacker*);
75  void setPrevSel();
76  void getPrevSel();
77  static const char* sKeyBinID();
78  static const char* sKeyLineName();
79  static const char* sKeyTrcNr();
80 
81  float nyqfreq_;
82  int nrsamples_;
83  float ds_;
84 
89 
91 };
92 
93 
94 mClass(uiAttributes) uiSpecDecompPanel : public uiAttribPanel
96 public:
98  : uiAttribPanel( p ) {};
99 
100 protected:
101  virtual const char* getProcName();
102  virtual const char* getPackName();
103  virtual const char* getPanelName();
104 
105 };
Attribute preview in a 2d viewer.
Definition: uiattribpanel.h:26
#define mExpClass(module)
Definition: commondefs.h:157
uiGenInput * waveletfld_
Definition: uispecdecompattrib.h:46
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
float ds_
Sample spacing of selected data.
Definition: uispecdecompattrib.h:83
is the base class for all buttons.
Definition: uibutton.h:80
Definition: uitrcpositiondlg.h:46
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
User interface element for getting attribute with both real and imaginary part.
Definition: uiattrsel.h:249
Attribute description editor.
Definition: uiattrdesced.h:80
Set of attribute descriptions.
Definition: attribdescset.h:29
uiSpecDecompPanel(uiParent *p)
Definition: uispecdecompattrib.h:97
AttribDesc ID: each Desc has a unique ID in a set; the boolean isstored allows us to know whether thi...
Definition: attribdescid.h:25
#define mDeclReqAttribUIFns
Definition: uiattrdesced.h:205
Definition: uispecdecompattrib.h:94
Definition: uiparent.h:24
Spectral Decomposition Attribute description editor.
Definition: uispecdecompattrib.h:30
FixedString Desc()
Definition: keystrs.h:60
Set of (small) copyable elements.
Definition: commontypes.h:26
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
Definition: uispinbox.h:123
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:87
uiGenInput * typefld_
Definition: uispecdecompattrib.h:42
General Input Element.
Definition: uigeninput.h:56
int nrsamples_
Nr of samples in selected data.
Definition: uispecdecompattrib.h:82
IOPar prevpar_
Definition: uispecdecompattrib.h:88
uiTrcPositionDlg * positiondlg_
Definition: uispecdecompattrib.h:87
uiLabeledSpinBox * stepfld_
Definition: uispecdecompattrib.h:45
float nyqfreq_
Definition: uispecdecompattrib.h:81
uiSpecDecompPanel * panelview_
Time Frequency panel.
Definition: uispecdecompattrib.h:86
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
uiLabeledSpinBox * outpfld_
Definition: uispecdecompattrib.h:44
uiImagAttrSel * inpfld_
Definition: uispecdecompattrib.h:41
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
#define mClass(module)
Definition: commondefs.h:161
uiGenInput * gatefld_
Definition: uispecdecompattrib.h:43
uiPushButton * tfpanelbut_
Definition: uispecdecompattrib.h:85
Semblance Attribute.
Definition: attribdataholder.h:21

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