OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiiomod.h"
15 #include "uigroup.h"
16 namespace Pos { class Provider; }
17 class TrcKeyZSampling;
18 class uiPosProvSel;
19 
20 
33 {
34 public:
35 
36  struct Setup
37  {
38  enum ChoiceType { All, OnlySeisTypes, OnlyRanges, RangewithPolygon,
39  VolumeTypes };
40  Setup( bool is_2d, bool with_z )
41  : seltxt_( is_2d ? "Trace subselection"
42  : ( with_z ? "Volume subselection"
43  : "Area subselection"))
44  , is2d_(is_2d)
45  , withz_(with_z)
46  , withstep_(true)
47  , choicetype_(OnlyRanges) {}
49  mDefSetupMemb(bool,is2d)
50  mDefSetupMemb(bool,withz)
51  mDefSetupMemb(bool,withstep)
53  mDefSetupMemb(ChoiceType,choicetype)
54  };
55 
57 
58  void usePar(const IOPar&);
59  void fillPar(IOPar&) const;
60 
61  Pos::Provider* curProvider();
62  const Pos::Provider* curProvider() const;
63 
64  const TrcKeyZSampling& envelope() const;
65  const TrcKeyZSampling& inputLimit() const;
66  void setInput(const TrcKeyZSampling&,bool chgtype=true);
67  void setInput(const TrcKeyZSampling& initcs,
68  const TrcKeyZSampling& ioparcs);
69  void setInputLimit(const TrcKeyZSampling&);
70 
71  bool isAll() const;
72  void setToAll();
73 
74 
75  Notifier<uiPosSubSel> selChange;
76  uiPosProvSel* provSel() { return ps_; }
77 
78 protected:
79 
81 
83 
84 };
85 
86 
Pos
Position.
Definition: commontypes.h:78
uiPosSubSel::ps_
uiPosProvSel * ps_
Definition: uipossubsel.h:80
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
usePar
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
Setup::mDefSetupMemb
mDefSetupMemb(int, method)
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uigroup.h
TrcKeyZSampling
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
uiGroup
Definition: uigroup.h:54
uiPosSubSel::Setup::Setup
Setup(bool is_2d, bool with_z)
Definition: uipossubsel.h:40
Notifier
Class to help setup a callback handling.
Definition: notify.h:126
uiPosProvSel
CompoundParSel to capture a user's Pos::Provider wishes.
Definition: uiposprovider.h:89
uiPosSubSel
Group to capture a user's position subselection wishes.
Definition: uipossubsel.h:33
fillPar
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:174
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
uiPosSubSel::selChg
void selChg(CallBacker *)
uiParent
Definition: uiparent.h:26
uiPosSubSel::Setup::RangewithPolygon
@ RangewithPolygon
Definition: uipossubsel.h:38
uiPosSubSel::Setup::mDefSetupMemb
mDefSetupMemb(BufferString, seltxt) mDefSetupMemb(bool
uiPosSubSel::Setup::ChoiceType
ChoiceType
Definition: uipossubsel.h:38
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
sKey::All
FixedString All()
Definition: keystrs.h:35
uiPosSubSel::Setup
Definition: uipossubsel.h:37

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