OpendTect-6_4  6.4
uipossubsel.h
Go to the documentation of this file.
1 #ifndef uipossubsel_h
2 #define uipossubsel_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Feb 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiiomod.h"
16 #include "uigroup.h"
17 namespace Pos { class Provider; }
18 class TrcKeyZSampling;
19 class uiPosProvSel;
20 
21 
34 {
35 public:
36 
37  struct Setup
38  {
39  enum ChoiceType { All, OnlySeisTypes, OnlyRanges, RangewithPolygon,
40  VolumeTypes };
41  Setup( bool is_2d, bool with_z )
42  : seltxt_( is_2d ? "Trace subselection"
43  : ( with_z ? "Volume subselection"
44  : "Area subselection"))
45  , is2d_(is_2d)
46  , withz_(with_z)
47  , withstep_(true)
48  , choicetype_(OnlyRanges) {}
50  mDefSetupMemb(bool,is2d)
51  mDefSetupMemb(bool,withz)
52  mDefSetupMemb(bool,withstep)
54  mDefSetupMemb(ChoiceType,choicetype)
55  };
56 
57  uiPosSubSel(uiParent*,const Setup&);
58 
59  void usePar(const IOPar&);
60  void fillPar(IOPar&) const;
61 
62  Pos::Provider* curProvider();
63  const Pos::Provider* curProvider() const;
64 
65  const TrcKeyZSampling& envelope() const;
66  const TrcKeyZSampling& inputLimit() const;
67  void setInput(const TrcKeyZSampling&,bool chgtype=true);
68  void setInput(const TrcKeyZSampling& initcs,
69  const TrcKeyZSampling& ioparcs);
70  void setInputLimit(const TrcKeyZSampling&);
71 
72  bool isAll() const;
73  void setToAll();
74 
75 
77  uiPosProvSel* provSel() { return ps_; }
78 
79 protected:
80 
82 
83  void selChg(CallBacker*);
84 
85 };
86 
87 
88 #endif
Definition: uigroup.h:54
#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: uipossubsel.h:37
Provides a series of positions; can also be used for subselection.
Definition: posprovider.h:33
Group to capture a user's position subselection wishes.
Definition: uipossubsel.h:33
uiPosProvSel * ps_
Definition: uipossubsel.h:81
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
Definition: uiparent.h:26
ChoiceType
Definition: uipossubsel.h:39
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
uiPosProvSel * provSel()
Definition: uipossubsel.h:77
Setup(bool is_2d, bool with_z)
Definition: uipossubsel.h:41
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
FixedString All()
Definition: keystrs.h:36
Position.
Definition: commontypes.h:42
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
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
CompoundParSel to capture a user&#39;s Pos::Provider wishes.
Definition: uiposprovider.h:85
Notifier< uiPosSubSel > selChange
Definition: uipossubsel.h:76
Definition: uipossubsel.h:39

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