OpendTect  6.6
segyhdrkeydata.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: Sep 2015
9  RCS: $Id: $
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uisegycommon.h"
15 #include "typeset.h"
16 #include "sortedlist.h"
17 
18 
19 namespace SEGY
20 {
21 
23 
24 
28 {
29 public:
30 
32  void save2Settings() const;
33 
42 
43  void usePar(const IOPar&);
44  void fillPar(IOPar&) const;
45 
46  static const HdrEntryConstraints& get();
48 
49 };
50 
51 
52 
56 {
57 public:
58 
59  void addRecord();
60 
61  void add(int heidx,int val);
62  void reject(int heidx); // removes from all records
63 
64  void rejectConstants(int,int);
65  void rejectNoProgress(int,int);
66 
67  void merge(const HdrEntryDataSet&);
68 
69  TypeSet<int> idxs_; // in TrcHeader::hdrDef()
71 
72  virtual void erase();
73 
74 };
75 
76 
80 {
81 public:
82 
84 
94 
95  int size() const { return inl_.size(); }
96  void setEmpty();
97  void add(const TrcHeader&,bool isswapped,
98  bool isnewline);
99  void finish(bool isps);
100 
101  void merge(const HdrEntryKeyData&);
102  // will not finish() - do this after last merge
103 
104  void setBest(TrcHeaderDef&) const;
105 
106 protected:
107 
108  void init();
110  int prefhdidx,int defidx) const;
112  const TypeSet<int>&,int) const;
113 
114 };
115 
116 } // namespace SEGY
117 
118 
sortedlist.h
SEGY::HdrEntryDataSet::rejectConstants
void rejectConstants(int, int)
SEGY::HdrEntryConstraints::save2Settings
void save2Settings() const
SEGY::HdrEntryKeyData::init
void init()
SEGY::HdrEntryConstraints::get4Edit
static HdrEntryConstraints & get4Edit()
SEGY::HdrEntryKeyData::setCurOrPref
void setCurOrPref(HdrEntry &, const HdrEntryDataSet &, int prefhdidx, int defidx) const
SEGY::HdrEntryKeyData
header key info collected by scanning SEG-Y file
Definition: segyhdrkeydata.h:80
SEGY::HdrEntryDataSet::add
void add(int heidx, int val)
SEGY::HdrEntryConstraints::usePar
void usePar(const IOPar &)
SEGY::HdrEntryKeyData::azimuth_
HdrEntryDataSet azimuth_
Definition: segyhdrkeydata.h:90
SEGY::HdrEntryKeyData::setCurOrPref
void setCurOrPref(HdrEntry &, const HdrEntryDataSet &, const TypeSet< int > &, int) const
SEGY::HdrEntryConstraints::offsrg_
Interval< float > offsrg_
Definition: segyhdrkeydata.h:40
SEGY::HdrEntryConstraints::azimuthrg_
Interval< float > azimuthrg_
Definition: segyhdrkeydata.h:41
SEGY::HdrEntryConstraints::get
static const HdrEntryConstraints & get()
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
typeset.h
uisegycommon.h
SEGY::HdrEntryKeyData::offs_
HdrEntryDataSet offs_
Definition: segyhdrkeydata.h:89
SEGY::HdrEntryKeyData::HdrEntryKeyData
HdrEntryKeyData()
SEGY::HdrEntryConstraints::trcnrrg_
Interval< int > trcnrrg_
Definition: segyhdrkeydata.h:36
SEGY::HdrEntryConstraints::HdrEntryConstraints
HdrEntryConstraints()
gets from settigns
SEGY::HdrEntryDataSet::rejectNoProgress
void rejectNoProgress(int, int)
SEGY::HdrEntryDataSet::idxs_
TypeSet< int > idxs_
Definition: segyhdrkeydata.h:69
SEGY::TrcHeaderDef
stores HdrEntry info of the needed fields from the trace header.
Definition: segythdef.h:30
SEGY::HdrEntryDataSet::erase
virtual void erase()
SEGY::HdrEntryConstraints::crlrg_
Interval< int > crlrg_
Definition: segyhdrkeydata.h:35
SEGY::HdrEntryKeyData::add
void add(const TrcHeader &, bool isswapped, bool isnewline)
SEGY::TrcHeader
Definition: segyhdr.h:149
SEGY::HdrEntryKeyData::setBest
void setBest(TrcHeaderDef &) const
SortedList< int >
SEGY::HdrEntryDataSet::reject
void reject(int heidx)
SEGY::HdrEntry
describes one tape or trace header field,
Definition: segyhdrdef.h:35
SEGY::HdrEntryDataSet::addRecord
void addRecord()
SEGY::HdrEntryDataSet
Set of possibe headers for a certain key.
Definition: segyhdrkeydata.h:56
SEGY::HdrEntryKeyData::x_
HdrEntryDataSet x_
Definition: segyhdrkeydata.h:91
SEGY::HdrEntryDataSet::rejectedidxs_
SortedList< int > rejectedidxs_
Definition: segyhdrkeydata.h:70
SEGY::HdrEntryKeyData::setEmpty
void setEmpty()
SEGY::HdrEntryKeyData::trcnr_
HdrEntryDataSet trcnr_
Definition: segyhdrkeydata.h:87
SEGY::HdrEntryKeyData::crl_
HdrEntryDataSet crl_
Definition: segyhdrkeydata.h:86
SEGY::HdrEntryKeyData::refnr_
HdrEntryDataSet refnr_
Definition: segyhdrkeydata.h:88
SEGY::HdrEntryDataSet::merge
void merge(const HdrEntryDataSet &)
SEGY::HdrEntryKeyData::inl_
HdrEntryDataSet inl_
Definition: segyhdrkeydata.h:85
SEGY::HdrEntryKeyData::newfileat_
TypeSet< int > newfileat_
Definition: segyhdrkeydata.h:93
SEGY
Keys that should be used with od_process_segyio.cc.
Definition: segybatchio.h:22
SEGY::HdrEntryConstraints::refnrrg_
Interval< int > refnrrg_
Definition: segyhdrkeydata.h:37
SEGY::HdrEntryRecord
TypeSet< int > HdrEntryRecord
Definition: segyhdrkeydata.h:22
SEGY::HdrEntryKeyData::finish
void finish(bool isps)
SEGY::HdrEntryConstraints::fillPar
void fillPar(IOPar &) const
SEGY::HdrEntryKeyData::size
int size() const
Definition: segyhdrkeydata.h:95
SEGY::HdrEntryConstraints::yrg_
Interval< double > yrg_
Definition: segyhdrkeydata.h:39
SEGY::HdrEntryKeyData::merge
void merge(const HdrEntryKeyData &)
SEGY::HdrEntryConstraints
Set of constraints on various needed header values.
Definition: segyhdrkeydata.h:28
Interval< int >
SEGY::HdrEntryConstraints::xrg_
Interval< double > xrg_
Definition: segyhdrkeydata.h:38
SEGY::HdrEntryKeyData::y_
HdrEntryDataSet y_
Definition: segyhdrkeydata.h:92
SEGY::HdrEntryConstraints::inlrg_
Interval< int > inlrg_
Definition: segyhdrkeydata.h:34
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
TypeSet< int >

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