OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | 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 add (SeisTrc *t)
 
void add (SeisTrcBuf &)
 shallow copy if not owner More...
 
virtual SeisTrcBufclone () const
 
void copyInto (SeisTrcBuf &) const
 
void deepErase ()
 
bool dump (const char *filenm, bool is2d, bool isps, int icomp=0) const
 Simple file Ascii format. More...
 
void enforceNrTrcs (int nrrequired, SeisTrcInfo::Fld, bool stack_before_remove=false)
 Makes sure nrtrcs per position is constant. More...
 
void erase ()
 
void fill (SeisPacketInfo &) const
 
int find (const BinID &, bool is2d=false) const
 
int find (const SeisTrc *, bool is2d=false) const
 
SeisTrcfirst ()
 
const SeisTrcfirst () const
 
SeisTrcget (int idx)
 
const SeisTrcget (int idx) const
 
float * getHdrVals (SeisTrcInfo::Fld, double &offs)
 
void getShifted (const Interval< float > &, const TypeSet< float > &twtvals, bool upward, float udfval, SeisTrcBuf &) const
 
Interval< float > getZRange4Shifts (const TypeSet< float > &twtvals, bool upward) const
 
void insert (SeisTrc *, int atidx=0)
 
bool isEmpty () const
 
bool isOwner () const
 
bool isSorted (bool ascending, SeisTrcInfo::Fld) const
 
SeisTrclast ()
 
const SeisTrclast () const
 
SeisTrcremove (int idx)
 
void remove (SeisTrc *t)
 
SeisTrcreplace (int idx, SeisTrc *t)
 
void revert ()
 
void setIsOwner (bool yn)
 
int size () const
 
void sort (bool ascending, SeisTrcInfo::Fld)
 
void sortForWrite (bool is2d)
 
void stealTracesFrom (SeisTrcBuf &)
 
bool validIdx (od_int64 idx) const
 
Interval< float > zRange () const
 

Protected Member Functions

int probableIdx (const BinID &, bool is2d) const
 

Protected Attributes

bool owner_
 
ObjectSet< SeisTrctrcs_
 

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() [1/2]

SeisTrcBuf::SeisTrcBuf ( bool  ownr)

◆ SeisTrcBuf() [2/2]

SeisTrcBuf::SeisTrcBuf ( const SeisTrcBuf b)

◆ ~SeisTrcBuf()

virtual SeisTrcBuf::~SeisTrcBuf ( )
virtual

Member Function Documentation

◆ add() [1/2]

void SeisTrcBuf::add ( SeisTrc t)
inline

◆ add() [2/2]

void SeisTrcBuf::add ( SeisTrcBuf )

shallow copy if not owner

◆ clone()

virtual SeisTrcBuf* SeisTrcBuf::clone ( ) const
inlinevirtual

◆ copyInto()

void SeisTrcBuf::copyInto ( SeisTrcBuf ) const

◆ deepErase()

void SeisTrcBuf::deepErase ( )

◆ dump()

bool SeisTrcBuf::dump ( const char *  filenm,
bool  is2d,
bool  isps,
int  icomp = 0 
) const

Simple file Ascii format.

◆ enforceNrTrcs()

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

Makes sure nrtrcs per position is constant.

◆ erase()

void SeisTrcBuf::erase ( )
inline

◆ fill()

void SeisTrcBuf::fill ( SeisPacketInfo ) const

◆ find() [1/2]

int SeisTrcBuf::find ( const BinID ,
bool  is2d = false 
) const

◆ find() [2/2]

int SeisTrcBuf::find ( const SeisTrc ,
bool  is2d = false 
) const

◆ first() [1/2]

SeisTrc* SeisTrcBuf::first ( )
inline

◆ first() [2/2]

const SeisTrc* SeisTrcBuf::first ( ) const
inline

◆ get() [1/2]

SeisTrc* SeisTrcBuf::get ( int  idx)
inline

◆ get() [2/2]

const SeisTrc* SeisTrcBuf::get ( int  idx) const
inline

◆ getHdrVals()

float* SeisTrcBuf::getHdrVals ( SeisTrcInfo::Fld  ,
double &  offs 
)

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

◆ getShifted()

void SeisTrcBuf::getShifted ( const Interval< float > &  ,
const TypeSet< float > &  twtvals,
bool  upward,
float  udfval,
SeisTrcBuf  
) const

◆ getZRange4Shifts()

Interval<float> SeisTrcBuf::getZRange4Shifts ( const TypeSet< float > &  twtvals,
bool  upward 
) const

◆ insert()

void SeisTrcBuf::insert ( SeisTrc ,
int  atidx = 0 
)

◆ isEmpty()

bool SeisTrcBuf::isEmpty ( ) const
inline

◆ isOwner()

bool SeisTrcBuf::isOwner ( ) const
inline

◆ isSorted()

bool SeisTrcBuf::isSorted ( bool  ascending,
SeisTrcInfo::Fld   
) const

◆ last() [1/2]

SeisTrc* SeisTrcBuf::last ( )
inline

◆ last() [2/2]

const SeisTrc* SeisTrcBuf::last ( ) const
inline

◆ probableIdx()

int SeisTrcBuf::probableIdx ( const BinID ,
bool  is2d 
) const
protected

◆ remove() [1/2]

SeisTrc* SeisTrcBuf::remove ( int  idx)
inline

◆ remove() [2/2]

void SeisTrcBuf::remove ( SeisTrc t)
inline

◆ replace()

SeisTrc* SeisTrcBuf::replace ( int  idx,
SeisTrc t 
)
inline

◆ revert()

void SeisTrcBuf::revert ( )

◆ setIsOwner()

void SeisTrcBuf::setIsOwner ( bool  yn)
inline

◆ size()

int SeisTrcBuf::size ( ) const
inline

◆ sort()

void SeisTrcBuf::sort ( bool  ascending,
SeisTrcInfo::Fld   
)

◆ sortForWrite()

void SeisTrcBuf::sortForWrite ( bool  is2d)

◆ stealTracesFrom()

void SeisTrcBuf::stealTracesFrom ( SeisTrcBuf )

◆ validIdx()

bool SeisTrcBuf::validIdx ( od_int64  idx) const
inline

◆ zRange()

Interval<float> SeisTrcBuf::zRange ( ) const

Member Data Documentation

◆ owner_

bool SeisTrcBuf::owner_
protected

◆ trcs_

ObjectSet<SeisTrc> SeisTrcBuf::trcs_
protected

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