OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
SeisTrcBuf Class Reference

set of seismic traces. More...

Public Member Functions

 SeisTrcBuf (bool ownr)
 
 SeisTrcBuf (const SeisTrcBuf &b)
 
virtual ~SeisTrcBuf ()
 
void setIsOwner (bool yn)
 
bool isOwner () const
 
void copyInto (SeisTrcBuf &) const
 
void stealTracesFrom (SeisTrcBuf &)
 
virtual SeisTrcBufclone () const
 
void deepErase ()
 
void erase ()
 
int size () const
 
bool isEmpty () const
 
bool validIdx (od_int64 idx) const
 
void insert (SeisTrc *, int atidx=0)
 
SeisTrcreplace (int idx, SeisTrc *t)
 
void add (SeisTrc *t)
 
void add (SeisTrcBuf &)
 shallow copy if not owner More...
 
int find (const BinID &, bool is2d=false) const
 
int find (const SeisTrc *, bool is2d=false) const
 
SeisTrcget (int idx)
 
const SeisTrcget (int idx) const
 
void remove (SeisTrc *t)
 
SeisTrcremove (int idx)
 
SeisTrcfirst ()
 
const SeisTrcfirst () const
 
SeisTrclast ()
 
const SeisTrclast () const
 
void revert ()
 
void fill (SeisPacketInfo &) const
 
bool isSorted (bool ascending, SeisTrcInfo::Fld) const
 
void sort (bool ascending, SeisTrcInfo::Fld)
 
void sortForWrite (bool is2d)
 
void enforceNrTrcs (int nrrequired, SeisTrcInfo::Fld, bool stack_before_remove=false)
 Makes sure nrtrcs per position is constant. More...
 
float * getHdrVals (SeisTrcInfo::Fld, double &offs)
 
bool dump (const char *filenm, bool is2d, bool isps, int icomp=0) const
 Simple file Ascii format. More...
 

Protected Member Functions

int probableIdx (const BinID &, bool is2d) const
 

Protected Attributes

ObjectSet< SeisTrctrcs_
 
bool owner_
 

Private Member Functions

 mODTextTranslationClass (SeisTrcBuf)
 

Detailed Description

set of seismic traces.

By default, the traces are not managed, but can be destroyed with deepErase(). buffer in which the traces are somehow related.

Constructor & Destructor Documentation

SeisTrcBuf::SeisTrcBuf ( bool  ownr)
inline
SeisTrcBuf::SeisTrcBuf ( const SeisTrcBuf b)
inline
virtual SeisTrcBuf::~SeisTrcBuf ( )
inlinevirtual

Member Function Documentation

void SeisTrcBuf::add ( SeisTrc t)
inline
void SeisTrcBuf::add ( SeisTrcBuf )

shallow copy if not owner

virtual SeisTrcBuf* SeisTrcBuf::clone ( ) const
inlinevirtual
void SeisTrcBuf::copyInto ( SeisTrcBuf ) const
void SeisTrcBuf::deepErase ( )
bool SeisTrcBuf::dump ( const char *  filenm,
bool  is2d,
bool  isps,
int  icomp = 0 
) const

Simple file Ascii format.

void SeisTrcBuf::enforceNrTrcs ( int  nrrequired,
SeisTrcInfo::Fld  ,
bool  stack_before_remove = false 
)

Makes sure nrtrcs per position is constant.

void SeisTrcBuf::erase ( )
inline
void SeisTrcBuf::fill ( SeisPacketInfo ) const
int SeisTrcBuf::find ( const BinID ,
bool  is2d = false 
) const
int SeisTrcBuf::find ( const SeisTrc ,
bool  is2d = false 
) const
SeisTrc* SeisTrcBuf::first ( )
inline
const SeisTrc* SeisTrcBuf::first ( ) const
inline
SeisTrc* SeisTrcBuf::get ( int  idx)
inline
const SeisTrc* SeisTrcBuf::get ( int  idx) const
inline
float* SeisTrcBuf::getHdrVals ( SeisTrcInfo::Fld  ,
double &  offs 
)

The 'offs' ensures the values fit in floats returned new float [] becomes yours

void SeisTrcBuf::insert ( SeisTrc ,
int  atidx = 0 
)
bool SeisTrcBuf::isEmpty ( ) const
inline
bool SeisTrcBuf::isOwner ( ) const
inline
bool SeisTrcBuf::isSorted ( bool  ascending,
SeisTrcInfo::Fld   
) const
SeisTrc* SeisTrcBuf::last ( )
inline
const SeisTrc* SeisTrcBuf::last ( ) const
inline
SeisTrcBuf::mODTextTranslationClass ( SeisTrcBuf  )
private
int SeisTrcBuf::probableIdx ( const BinID ,
bool  is2d 
) const
protected
void SeisTrcBuf::remove ( SeisTrc t)
inline
SeisTrc* SeisTrcBuf::remove ( int  idx)
inline
SeisTrc* SeisTrcBuf::replace ( int  idx,
SeisTrc t 
)
inline
void SeisTrcBuf::revert ( )
void SeisTrcBuf::setIsOwner ( bool  yn)
inline
int SeisTrcBuf::size ( ) const
inline
void SeisTrcBuf::sort ( bool  ascending,
SeisTrcInfo::Fld   
)
void SeisTrcBuf::sortForWrite ( bool  is2d)
void SeisTrcBuf::stealTracesFrom ( SeisTrcBuf )
bool SeisTrcBuf::validIdx ( od_int64  idx) const
inline

Member Data Documentation

bool SeisTrcBuf::owner_
protected
ObjectSet<SeisTrc> SeisTrcBuf::trcs_
protected

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