OpendTect  6.3
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
Well::DahObj Class Referenceabstract

object with a geometry defined by depth along hole. More...

Inheritance diagram for Well::DahObj:
[legend]

Public Types

typedef float ZType
 
typedef TypeSet< ZTypeZSetType
 
typedef Interval< ZTypeZIntvType
 
typedef ZSetType::size_type size_type
 
typedef size_type IdxType
 
typedef IntegerID< IdxTypePointID
 
typedef float ValueType
 
typedef TypeSet< ValueTypeValueSetType
 
typedef Interval< ValueTypeValueIntvType
 
- Public Types inherited from Monitorable
typedef int ChangeType
 
typedef int64_t IDType
 
typedef int64_t DirtyCountType
 
typedef CNotifier< Monitorable, ChangeDataChangeDataNotifier
 

Public Member Functions

 DahObj (const char *nm=0)
 
virtual ~DahObj ()
 
 mDeclInstanceCreatedNotifierAccess (DahObj)
 
 mDeclAbstractMonitorableAssignment (DahObj)
 
size_type size () const
 
bool isEmpty () const
 
ZType dah (PointID) const
 
ZType firstDah () const
 
ZType lastDah () const
 
ValueType value (PointID) const
 
ValueType valueAt (ZType, bool no_undefs=false) const
 
ValueType firstValue (bool no_undefs=false) const
 
ValueType lastValue (bool no_undefs=false) const
 
ZIntvType dahRange () const
 
ZType dahStep (bool min_else_average) const
 
void getDahValues (ZSetType &) const
 
virtual void getData (ZSetType &, ValueSetType &) const =0
 
virtual bool valsAreCodes () const
 
PointID firstID () const
 
PointID lastID () const
 
PointID nextID (PointID) const
 
PointID prevID (PointID) const
 
PointID nearestID (ZType) const
 
void setEmpty ()
 
void setDah (PointID, ZType)
 
bool setValue (PointID, ValueType)
 
PointID setValueAt (ZType, ValueType)
 
void remove (PointID)
 
void deInterpolate ()
 Remove unnecessary points. More...
 
void shiftDahFrom (PointID, ZType)
 
PointID pointIDFor (IdxType) const
 
IdxType indexOf (PointID) const
 
IdxType indexOf (ZType) const
 
ZType dahByIdx (IdxType) const
 
ValueType valueByIdx (IdxType) const
 
void removeByIdx (IdxType)
 
- Public Member Functions inherited from NamedMonitorable
 NamedMonitorable (const char *nm=0)
 
 NamedMonitorable (const NamedObject &)
 
virtual ~NamedMonitorable ()
 
 NamedMonitorable (const NamedMonitorable &)
 
NamedMonitorableoperator= (const NamedMonitorable &)
 
bool operator== (const NamedMonitorable &) const
 
bool operator!= (const NamedMonitorable &oth) const
 
virtual NamedMonitorableclone () const
 
ChangeType compareWith (const Monitorable &) const
 
virtual NamedMonitorablegetClone () const
 
virtual BufferString getName () const
 
virtual void setName (const char *)
 
- Public Member Functions inherited from Monitorable
 Monitorable (const Monitorable &)
 
virtual ~Monitorable ()
 
Monitorableoperator= (const Monitorable &)
 
bool operator== (const Monitorable &) const
 
virtual ChangeDataNotifierobjectChanged () const
 
virtual Notifier< Monitorable > & objectToBeDeleted () const
 
virtual void touch () const
 
virtual DirtyCountType dirtyCount () const
 
void sendChangeNotification (const ChangeData &) const
 
void sendEntireObjectChangeNotification () const
 
void transferNotifsTo (const Monitorable &, const CallBacker *onlyfor=0) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
bool getNameFromPar (const IOPar &)
 
void putNameInPar (IOPar &) const
 

Static Public Member Functions

static ChangeType cParsChange ()
 
static ChangeType cPointAdd ()
 
static ChangeType cDahChange ()
 
static ChangeType cValueChange ()
 
static ChangeType cPointRemove ()
 
static ZType dahEps ()
 
- Static Public Member Functions inherited from NamedMonitorable
static Notifier< NamedMonitorable > & instanceCreated ()
 
static ChangeType cNameChange ()
 
- Static Public Member Functions inherited from Monitorable
static Notifier< Monitorable > & instanceCreated ()
 defines static instanceCreated() More...
 
static ChangeType cEntireObjectChange ()
 
static ChangeType cNoChange ()
 
static IDType cUnspecChgID ()
 
static IDType cEntireObjectChgID ()
 
static ChangeType changeNotificationTypeOf (CallBacker *)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Protected Member Functions

virtual bool doSet (IdxType, ValueType)=0
 
virtual PointID doInsAtDah (ZType, ValueType)=0
 
virtual ValueType gtVal (IdxType) const =0
 
virtual void removeAux (IdxType)=0
 
virtual void eraseAux ()=0
 
void doRemove (IdxType)
 
void doSetEmpty ()
 
PointID doIns (ZType dh, ValueType val, ValueSetType &, bool ascendingvalsonly)
 
bool doSetData (const ZSetType &, const ValueSetType &, ValueSetType &)
 
size_type gtSize () const
 
IdxType gtIsEmpty () const
 
PointID gtNeighbourID (PointID, bool) const
 
PointID gtNewPointID () const
 
IdxType gtIndexOf (ZType) const
 
IdxType gtIdx (PointID) const
 
ZType gtDah (IdxType) const
 
ValueType gtValueAt (ZType, bool noudfs) const
 
- Protected Member Functions inherited from NamedMonitorable
void copyAll (const NamedMonitorable &)
 
- Protected Member Functions inherited from Monitorable
 Monitorable ()
 
void copyAll (const Monitorable &)
 
void sendChgNotif (AccessLocker &, const ChangeData &) const
 calls objectChanged with released lock More...
 
void sendChgNotif (AccessLocker &, ChangeType, IDType) const
 calls objectChanged with released lock More...
 
void sendDelNotif () const
 
void stopChangeNotifications () const
 
void resumeChangeNotifications () const
 
template<class T >
getMemberSimple (const T &) const
 the get function used by mImplSimpleMonitoredGet More...
 
template<class TMember , class TSetTo >
void setMemberSimple (TMember &, TSetTo, ChangeType, IDType)
 the set function used by mImplSimpleMonitoredSet More...
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

static bool areEqualDahs (ZType, ZType)
 

Protected Attributes

ZSetType dahs_
 
TypeSet< PointIDptids_
 
Threads::Atomic< IdxTypecurptidnr_
 
- Protected Attributes inherited from Monitorable
Threads::Lock accesslock_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Friends

class DahObjIter
 

Additional Inherited Members

- Protected Types inherited from Monitorable
typedef Threads::Atomic< DirtyCountTypeDirtyCounter
 

Detailed Description

object with a geometry defined by depth along hole.

Well tracks define a new coordinate system that determines the position of any point in the well by a single coordinate: the depth-along-hole (aka MD).

Every DahObject has at least one value that determines the object's raison d'etre. Also, every 'defined' point along the track has its own ID which will never change during this session: the PointID.

Member Typedef Documentation

typedef float Well::DahObj::ValueType
typedef float Well::DahObj::ZType

Constructor & Destructor Documentation

Well::DahObj::DahObj ( const char *  nm = 0)
virtual Well::DahObj::~DahObj ( )
virtual

Member Function Documentation

static bool Well::DahObj::areEqualDahs ( ZType  ,
ZType   
)
staticprotected
static ChangeType Well::DahObj::cDahChange ( )
inlinestatic
static ChangeType Well::DahObj::cParsChange ( )
inlinestatic
static ChangeType Well::DahObj::cPointAdd ( )
inlinestatic
static ChangeType Well::DahObj::cPointRemove ( )
inlinestatic
static ChangeType Well::DahObj::cValueChange ( )
inlinestatic
ZType Well::DahObj::dah ( PointID  ) const
ZType Well::DahObj::dahByIdx ( IdxType  ) const
static ZType Well::DahObj::dahEps ( )
inlinestatic
ZIntvType Well::DahObj::dahRange ( ) const
ZType Well::DahObj::dahStep ( bool  min_else_average) const
void Well::DahObj::deInterpolate ( )

Remove unnecessary points.

PointID Well::DahObj::doIns ( ZType  dh,
ValueType  val,
ValueSetType ,
bool  ascendingvalsonly 
)
protected
virtual PointID Well::DahObj::doInsAtDah ( ZType  ,
ValueType   
)
protectedpure virtual

Implemented in Well::Log, Well::D2TModel, and Well::Track.

void Well::DahObj::doRemove ( IdxType  )
protected
virtual bool Well::DahObj::doSet ( IdxType  ,
ValueType   
)
protectedpure virtual

Implemented in Well::Log, Well::D2TModel, and Well::Track.

bool Well::DahObj::doSetData ( const ZSetType ,
const ValueSetType ,
ValueSetType  
)
protected
void Well::DahObj::doSetEmpty ( )
protected
virtual void Well::DahObj::eraseAux ( )
protectedpure virtual

Implemented in Well::Log, Well::D2TModel, and Well::Track.

ZType Well::DahObj::firstDah ( ) const
PointID Well::DahObj::firstID ( ) const
ValueType Well::DahObj::firstValue ( bool  no_undefs = false) const
void Well::DahObj::getDahValues ( ZSetType ) const
virtual void Well::DahObj::getData ( ZSetType ,
ValueSetType  
) const
pure virtual

Implemented in Well::Track, Well::Log, and Well::D2TModel.

ZType Well::DahObj::gtDah ( IdxType  ) const
protected
IdxType Well::DahObj::gtIdx ( PointID  ) const
protected
IdxType Well::DahObj::gtIndexOf ( ZType  ) const
protected
IdxType Well::DahObj::gtIsEmpty ( ) const
inlineprotected
PointID Well::DahObj::gtNeighbourID ( PointID  ,
bool   
) const
protected
PointID Well::DahObj::gtNewPointID ( ) const
protected
size_type Well::DahObj::gtSize ( ) const
inlineprotected
virtual ValueType Well::DahObj::gtVal ( IdxType  ) const
protectedpure virtual

Implemented in Well::Log, Well::D2TModel, and Well::Track.

ValueType Well::DahObj::gtValueAt ( ZType  ,
bool  noudfs 
) const
protected
IdxType Well::DahObj::indexOf ( PointID  ) const
IdxType Well::DahObj::indexOf ( ZType  ) const
bool Well::DahObj::isEmpty ( ) const
inline
ZType Well::DahObj::lastDah ( ) const
PointID Well::DahObj::lastID ( ) const
ValueType Well::DahObj::lastValue ( bool  no_undefs = false) const
Well::DahObj::mDeclAbstractMonitorableAssignment ( DahObj  )
Well::DahObj::mDeclInstanceCreatedNotifierAccess ( DahObj  )
PointID Well::DahObj::nearestID ( ZType  ) const
PointID Well::DahObj::nextID ( PointID  ) const
PointID Well::DahObj::pointIDFor ( IdxType  ) const
PointID Well::DahObj::prevID ( PointID  ) const
void Well::DahObj::remove ( PointID  )
virtual void Well::DahObj::removeAux ( IdxType  )
protectedpure virtual

Implemented in Well::Log, and Well::Track.

void Well::DahObj::removeByIdx ( IdxType  )
void Well::DahObj::setDah ( PointID  ,
ZType   
)
void Well::DahObj::setEmpty ( )
bool Well::DahObj::setValue ( PointID  ,
ValueType   
)
PointID Well::DahObj::setValueAt ( ZType  ,
ValueType   
)
void Well::DahObj::shiftDahFrom ( PointID  ,
ZType   
)
size_type Well::DahObj::size ( ) const
virtual bool Well::DahObj::valsAreCodes ( ) const
inlinevirtual
ValueType Well::DahObj::value ( PointID  ) const
ValueType Well::DahObj::valueAt ( ZType  ,
bool  no_undefs = false 
) const
ValueType Well::DahObj::valueByIdx ( IdxType  ) const

Friends And Related Function Documentation

friend class DahObjIter
friend

Member Data Documentation

Threads::Atomic<IdxType> Well::DahObj::curptidnr_
mutableprotected
ZSetType Well::DahObj::dahs_
protected
TypeSet<PointID> Well::DahObj::ptids_
protected

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