OpendTect-6_4  6.4
uiselectvelocityfunction.h
Go to the documentation of this file.
1 #ifndef uiselectvelocityfunction_h
2 #define uiselectvelocityfunction_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: November 2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uivelocitymod.h"
16 #include "factory.h"
17 #include "uidialog.h"
18 #include "uigroup.h"
19 #include "uistring.h"
20 
21 class uiListBox;
22 class uiColorInput;
23 class uiGenInput;
24 class uiPushButton;
25 
26 namespace Vel
27 {
28 class FunctionSource;
29 
30 
32 
33 mExpClass(uiVelocity) uiFunctionSel : public uiGroup
35 public:
36 
39  const TypeSet<Color>*);
40  ~uiFunctionSel();
41 
42  ObjectSet<FunctionSource>& getVelSources();
43  const TypeSet<Color>& getColor() const { return colors_; }
44 
46 
47 protected:
48  void updateList();
49  void selChangedCB(CallBacker*);
50  void addPushedCB(CallBacker*);
51  void removePushedCB(CallBacker*);
52  void propPushedCB(CallBacker*);
53  void colorChanged(CallBacker*);
54 
60 
63 };
64 
65 
67 mExpClass(uiVelocity) uiFunctionSettings : public uiGroup
69 public:
71  FunctionSource*, factory );
72  uiFunctionSettings(uiParent* p,const char* nm)
73  : uiGroup( p, nm ) {}
74 
75  virtual FunctionSource* getSource() = 0;
76  virtual bool acceptOK() = 0;
77 };
78 
79 
80 
81 
82 mExpClass(uiVelocity) uiAddFunction : public uiDialog
84 public:
86  FunctionSource* getSource();
87 public:
88  void typeSelChangeCB(CallBacker*);
89  bool acceptOK(CallBacker*);
90 
93 };
94 
95 
96 mExpClass(uiVelocity) uiEditFunction : public uiDialog
98 public:
100  FunctionSource* );
101  bool isOK() const { return dlggrp_; }
102 public:
103  bool acceptOK(CallBacker*);
104 
106 };
107 
108 }; //namespace
109 
110 
111 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
Velocity.
Definition: velocityfunction.h:32
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: velocityfunction.h:85
is the base class for all buttons.
Definition: uibutton.h:83
uiGenInput * typesel_
Definition: uiselectvelocityfunction.h:91
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiPushButton * propbutton_
Definition: uiselectvelocityfunction.h:58
Definition: uiparent.h:26
Base class for velocity function settings.
Definition: uiselectvelocityfunction.h:67
uiPushButton * removebutton_
Definition: uiselectvelocityfunction.h:57
ObjectSet< uiFunctionSettings > settingldgs_
Definition: uiselectvelocityfunction.h:92
Definition: uidialog.h:42
Definition: callback.h:254
List Box.
Definition: uilistbox.h:75
Set of pointers to objects.
Definition: commontypes.h:32
uiFunctionSettings(uiParent *p, const char *nm)
Definition: uiselectvelocityfunction.h:72
uiPushButton * addbutton_
Definition: uiselectvelocityfunction.h:56
const TypeSet< Color > & getColor() const
Definition: uiselectvelocityfunction.h:43
uiListBox * list_
Definition: uiselectvelocityfunction.h:55
Definition: uiselectvelocityfunction.h:96
General Input Element.
Definition: uigeninput.h:58
uiFunctionSettings * dlggrp_
Definition: uiselectvelocityfunction.h:105
Notifier< uiFunctionSel > listChange
Definition: uiselectvelocityfunction.h:45
ObjectSet< FunctionSource > velsources_
Definition: uiselectvelocityfunction.h:61
Definition: uiselectvelocityfunction.h:82
small element for color selection. Has no text label.
Definition: uicolor.h:44
uiColorInput * colorfld_
Definition: uiselectvelocityfunction.h:59
bool isOK() const
Definition: uiselectvelocityfunction.h:101
TypeSet< Color > colors_
Definition: uiselectvelocityfunction.h:62
uiGroup to select a velocity function type
Definition: uiselectvelocityfunction.h:33
#define mDefineFactory2ParamInClass(T, P0, P1, funcname)
Definition: factory.h:471

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