OpendTect  6.6
uisegyimptype.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: Aug 2015
9  RCS: $Id:$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uisegycommon.h"
15 #include "typeset.h"
16 #include "uigroup.h"
17 
18 class uiComboBox;
19 
20 
21 namespace SEGY
22 {
23 
24 mExpClass(uiSEGYTools) ImpType
26 public:
27 
28  ImpType(bool isvsp=false);
30 
32  { return (Seis::GeomType)(isVSP() ? types_[0]
33  : types_[tidx_]); }
34  bool isVSP() const
35  { return types_[tidx_] > Seis::LinePS; }
36  bool is2D() const { return Seis::is2D(geomType()); }
37  bool isPS() const { return Seis::isPS(geomType()); }
38 
40  void setIsVSP()
41  { tidx_ = types_.size()-1; }
42 
43  int tidx_;
45 
46  uiString dispText() const;
47  void fillPar(IOPar&) const;
48 
49 private:
50 
51  void init();
52 
53 };
54 
55 } // namespace SEGY
56 
57 
58 mExpClass(uiSEGYTools) uiSEGYImpType : public uiGroup
60 public:
61 
62  uiSEGYImpType(uiParent*,bool withvsp,
63  const uiString* lbltxt=0);
64 
65  const SEGY::ImpType& impType() const;
66  void setTypIdx(int);
67 
68  void usePar(const IOPar&);
69 
71 
72 protected:
73 
76 
77  void typChg( CallBacker* ) { typeChanged.trigger(); }
78 
79 };
80 
81 
82 
SEGY::ImpType::tidx_
int tidx_
Definition: uisegyimptype.h:43
Seis::isPS
bool isPS(GeomType gt)
Definition: seistype.h:37
Notifier::trigger
void trigger()
Definition: notify.h:132
SEGY::ImpType::init
void init()
uiComboBox
Combo box.
Definition: uicombobox.h:32
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Seis::LinePS
@ LinePS
Definition: seistype.h:32
uiSEGYImpType::impType
mODTextTranslationClass(uiSEGYImpType) public const SEGY::ImpType & impType() const
uiSEGYImpType::typChg
void typChg(CallBacker *)
Definition: uisegyimptype.h:77
typeset.h
uisegycommon.h
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiSEGYImpType::typeChanged
Notifier< uiSEGYImpType > typeChanged
Definition: uisegyimptype.h:70
SEGY::ImpType::dispText
uiString dispText() const
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
uigroup.h
uiSEGYImpType::setTypIdx
void setTypIdx(int)
SEGY::ImpType
Definition: uisegyimptype.h:25
SEGY::ImpType::fillPar
void fillPar(IOPar &) const
uiGroup
Definition: uigroup.h:54
uiSEGYImpType::fld_
uiComboBox * fld_
Definition: uisegyimptype.h:74
uiSEGYImpType
Definition: uisegyimptype.h:59
Notifier< uiSEGYImpType >
SEGY::ImpType::geomType
Seis::GeomType geomType() const
Definition: uisegyimptype.h:31
SEGY::ImpType::is2D
bool is2D() const
Definition: uisegyimptype.h:36
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
SEGY::ImpType::isVSP
bool isVSP() const
Definition: uisegyimptype.h:34
uiSEGYImpType::usePar
void usePar(const IOPar &)
SEGY::ImpType::types_
TypeSet< int > types_
Definition: uisegyimptype.h:44
SEGY::ImpType::ImpType
mODTextTranslationClass(ImpType) public ImpType(Seis::GeomType)
SEGY
Keys that should be used with od_process_segyio.cc.
Definition: segybatchio.h:22
uiParent
Definition: uiparent.h:26
SEGY::ImpType::setGeomType
void setGeomType(Seis::GeomType)
SEGY::ImpType::setIsVSP
void setIsVSP()
Definition: uisegyimptype.h:40
Seis::GeomType
GeomType
Definition: seistype.h:32
uiSEGYImpType::typ_
SEGY::ImpType typ_
Definition: uisegyimptype.h:75
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
Seis::is2D
bool is2D(GeomType gt)
Definition: seistype.h:33
TypeSet< int >
SEGY::ImpType::isPS
bool isPS() const
Definition: uisegyimptype.h:37

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