 |
OpendTect
6.6
|
Go to the documentation of this file.
35 inline int size()
const {
return dah_.size(); }
36 inline float dah(
int idx)
const {
return dah_[idx]; }
37 virtual float value(
int idx)
const = 0;
41 { dah_.removeSingle(idx); removeAux(idx); }
43 { dah_.erase(); eraseAux(); }
44 inline bool isEmpty()
const {
return size() == 0; }
50 float dahStep(
bool min_else_average)
const;
57 float*
dahArr() {
return dah_.arr(); }
58 const float*
dahArr()
const {
return dah_.arr(); }
74 #define mWellDahObjInsertAtDah(dh,v,vals,ascvalonly)\
76 if ( mIsUdf(v) ) return false;\
77 const bool ascendingvalonly = (ascvalonly); \
78 if ( dah_.isEmpty() || dh >= dah_[dah_.size()-1] )\
80 if ( !dah_.isEmpty() && ascendingvalonly && v <= vals[dah_.size()-1] )\
82 dah_ += dh; vals += val;\
87 if ( ascendingvalonly && v >= vals[0] )\
89 dah_.insert( 0, dh ); vals.insert( 0, v );\
92 const int insertidx = indexOf( dh );\
93 if ( insertidx<0 ) return false;\
94 if ( ascendingvalonly && (v <= vals[insertidx] || v >= vals[insertidx+1]) )\
96 dah_.insert( insertidx+1, dh ); vals.insert( insertidx+1, v );\
const float * dahArr() const
Definition: welldahobj.h:58
#define mExpClass(module)
Definition: commondefs.h:177
int indexOf(float dah) const
Interval< float > dahRange() const
returns Udf for empty dah_
float dah(int idx) const
Definition: welldahobj.h:36
Definition: directionalsurvey.h:20
Interval< float > dahrange_
Definition: welldahobj.h:67
float * dahArr()
Definition: welldahobj.h:57
Class to help setup a callback handling.
Definition: notify.h:126
virtual void setEmpty()
Definition: welldahobj.h:42
TypeSet< float > dah_
Definition: welldahobj.h:66
bool isEmpty() const
Definition: welldahobj.h:44
void removeFromDahFrom(int fromidx, float extradah)
virtual void eraseAux()=0
virtual float value(int idx) const =0
virtual void removeAux(int)=0
int size() const
Definition: welldahobj.h:35
Interval< float > & dahRange()
void addToDahFrom(int fromidx, float extradah)
virtual bool insertAtDah(float dah, float val)=0
static Notifier< DahObj > & instanceCreated()
virtual void remove(int idx)
Definition: welldahobj.h:40
float dahStep(bool min_else_average) const
void deInterpolate()
Remove unnecessary points.
Depth/Distance along hole object.
Definition: welldahobj.h:28
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021