OpendTect-6_4  6.4
binidvalset.h
Go to the documentation of this file.
1 #ifndef binidvalset_h
2 #define binidvalset_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H.Bril
9  Date: July 2004
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "generalmod.h"
16 #include "posidxpairvalset.h"
17 #include "binid.h"
18 
19 
23 mExpClass(General) BinIDValueSet : public Pos::IdxPairValueSet
24 {
25 public:
26 
27  BinIDValueSet( int nrvals, bool allowdup )
28  : Pos::IdxPairValueSet(nrvals,allowdup) {}
30  : Pos::IdxPairValueSet(bvs) {}
31  BinIDValueSet& operator =( const BinIDValueSet& oth )
32  { Pos::IdxPairValueSet::operator=(oth); return *this; }
33 
34  inline void allowDuplicateBinIDs( bool yn )
35  { allowDuplicateIdxPairs(yn); }
36  inline bool hasDuplicateBinIDs() const
37  { return hasDuplicateIdxPairs(); }
38  inline bool nrDuplicateBinIDs() const
39  { return nrDuplicateIdxPairs(); }
40 
41  inline BinID getBinID( const SPos& spos ) const
42  { return mkBinID(getIdxPair(spos)); }
43  inline BinID firstBinID() const
44  { return mkBinID(firstIdxPair()); }
45 
46 protected:
47 
48  friend class DataPointSet;
49  friend class PosVecDataSet;
50 
51  inline static BinID mkBinID( const Pos::IdxPair& ip )
52  { return BinID( ip.first, ip.second ); }
53 
54 };
55 
56 
57 #endif
#define mExpClass(module)
Definition: commondefs.h:160
bool nrDuplicateBinIDs() const
Definition: binidvalset.h:38
Set of data points with group selection.
Definition: datapointset.h:48
BinIDValueSet(int nrvals, bool allowdup)
Definition: binidvalset.h:27
BinID getBinID(const SPos &spos) const
Definition: binidvalset.h:41
IdxPair with position indices; base class for BinID et al.
Definition: posidxpair.h:29
position in IdxPairValueSet; an iterator.
Definition: posidxpairvalset.h:96
BinIDValueSet(const BinIDValueSet &bvs)
Definition: binidvalset.h:29
Position.
Definition: commontypes.h:42
static BinID mkBinID(const Pos::IdxPair &ip)
Definition: binidvalset.h:51
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
IdxPairValueSet & operator=(const IdxPairValueSet &)
bool hasDuplicateBinIDs() const
Definition: binidvalset.h:36
BinID firstBinID() const
Definition: binidvalset.h:43
void allowDuplicateBinIDs(bool yn)
Definition: binidvalset.h:34
Data set consisting of data vectors.
Definition: posvecdataset.h:30

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