OpendTect  6.3
uipossubsel.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: Bert
8  Date: Feb 2008
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uiiocommon.h"
14 #include "uigroup.h"
15 namespace Pos { class Provider; }
16 class TrcKeyZSampling;
17 class uiPosProvSel;
18 
19 
33 public:
34 
35  struct Setup
36  {
37  enum ChoiceType { All, OnlySeisTypes, OnlyRanges, RangewithPolygon,
38  VolumeTypes };
39  Setup( bool is_2d, bool with_z )
40  : seltxt_( is_2d ? tr("Trace subselection")
41  : ( with_z ? tr("Volume subselection")
42  : tr("Area subselection")))
43  , is2d_(is_2d)
44  , withz_(with_z)
45  , withstep_(true)
46  , choicetype_(OnlyRanges) {}
47  mDefSetupMemb(uiString,seltxt)
48  mDefSetupMemb(bool,is2d)
49  mDefSetupMemb(bool,withz)
50  mDefSetupMemb(bool,withstep)
52  mDefSetupMemb(ChoiceType,choicetype)
53  };
54 
55  uiPosSubSel(uiParent*,const Setup&);
56 
57  void usePar(const IOPar&);
58  void fillPar(IOPar&) const;
59 
60  Pos::Provider* curProvider();
61  const Pos::Provider* curProvider() const;
62 
63  const TrcKeyZSampling& envelope() const;
64  const TrcKeyZSampling& inputLimit() const;
65  void setInput(const TrcKeyZSampling&,bool chgtype=true);
66  void setInput(const TrcKeyZSampling& initcs,
67  const TrcKeyZSampling& ioparcs);
68  void setInputLimit(const TrcKeyZSampling&);
69 
70  bool isAll() const;
71  void setToAll();
72 
73 
75  uiPosProvSel* provSel() { return ps_; }
76 
77 protected:
78 
80 
81  void selChg(CallBacker*);
82 
83 };
Definition: uigroup.h:53
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
FixedString Setup()
Definition: keystrs.h:113
Provides a series of positions; can also be used for subselection.
Definition: posprovider.h:31
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Group to capture a user's position subselection wishes.
Definition: uipossubsel.h:31
uiPosProvSel * ps_
Definition: uipossubsel.h:79
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
Definition: uistring.h:88
Definition: uiparent.h:24
FixedString Provider()
Definition: keystrs.h:103
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
uiPosProvSel * provSel()
Definition: uipossubsel.h:75
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:32
FixedString All()
Definition: keystrs.h:34
Position.
Definition: commontypes.h:38
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:129
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
CompoundParSel to capture a user&#39;s Pos::Provider wishes.
Definition: uiposprovider.h:83
Notifier< uiPosSubSel > selChange
Definition: uipossubsel.h:74

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