OpendTect-6_4  6.4
uizaxistransform.h
Go to the documentation of this file.
1 #ifndef uizaxistransform_h
2 #define uizaxistransform_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert/Nanne
9  Date: Aug 2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "factory.h"
17 #include "fixedstring.h"
18 #include "uidlggroup.h"
19 
20 class ZAxisTransform;
21 class uiGenInput;
23 
28 public:
30  const char*,const char*,factory);
32 
33  virtual void enableTargetSampling();
34  virtual bool getTargetSampling(StepInterval<float>&) const;
35 
36  virtual ZAxisTransform* getSelection() = 0;
37  virtual FixedString toDomain() const = 0;
38  virtual FixedString fromDomain() const = 0;
39  virtual bool canBeField() const = 0;
47  void setIs2D(bool);
48  bool is2D() const;
49 
50 protected:
51  static bool isField(const uiParent*);
53  void rangeChangedCB(CallBacker*);
54  void finalizeDoneCB(CallBacker*);
55 
58 };
59 
60 
64 public:
65  uiZAxisTransformSel(uiParent*, bool withnone,
66  const char* fromdomain=0,
67  const char* todomain=0,
68  bool withsampling=false,
69  bool asfield=false,
70  bool is2d=false);
71 
72  bool isField() const;
76  void setLabel(const uiString&);
77 
78  bool isOK() const { return nrTransforms(); }
79  int nrTransforms() const;
80 
83  /*<!Always available. */
84 
85  bool acceptOK();
95  bool fillPar(IOPar&);
98 protected:
99  void selCB(CallBacker*);
100 
101  bool isfield_;
105 };
106 
107 
108 #endif
ObjectSet< uiZAxisTransform > transflds_
Definition: uizaxistransform.h:104
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
int nrTransforms() const
FixedString selectedToDomain() const
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiGenInput * rangefld_
Definition: uizaxistransform.h:56
OD::String that holds an existing text string.
Definition: fixedstring.h:29
Interface class for Notifier. See comments there.
Definition: callback.h:161
bool isOK() const
Definition: uizaxistransform.h:78
uiZAxisTransformSel(uiParent *, bool withnone, const char *fromdomain=0, const char *todomain=0, bool withsampling=false, bool asfield=false, bool is2d=false)
BufferString fromdomain_
Definition: uizaxistransform.h:102
bool rangechanged_
Definition: uizaxistransform.h:57
Definition: uistring.h:89
Definition: uiparent.h:26
Definition: uidlggroup.h:26
bool getTargetSampling(StepInterval< float > &) const
#define mDefineFactory3ParamInClass(T, P0, P1, P2, funcname)
Definition: factory.h:496
bool isfield_
Definition: uizaxistransform.h:101
void selCB(CallBacker *)
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Definition: uizaxistransform.h:26
void setLabel(const uiString &)
General Input Element.
Definition: uigeninput.h:58
ZAxisTransform * getSelection()
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
bool isField() const
bool is2D(const PicksType &picks)
Definition: pickset.h:142
Definition: uizaxistransform.h:62
uiGenInput * selfld_
Definition: uizaxistransform.h:103
Base class for z-axis transforms.
Definition: zaxistransform.h:37
NotifierAccess * selectionDone()

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