Public Member Functions | Protected Member Functions | Protected Attributes

SeisSingleTraceProc Class Reference

Single trace processing executor. More...

Inheritance diagram for SeisSingleTraceProc:
Executor SequentialTask Task NamedObject CallBacker

List of all members.

Public Member Functions

 SeisSingleTraceProc (const IOObj *in, const IOObj *out, const char *nm="Trace processor", const IOPar *iniopar=0, const char *msg="Processing")
 SeisSingleTraceProc (ObjectSet< IOObj >, const IOObj *, const char *nm="Trace processor", ObjectSet< IOPar > *iniopars=0, const char *msg="Processing")
virtual ~SeisSingleTraceProc ()
void setSelectionCB (const CallBack &cb)
void setProcessingCB (const CallBack &cb)
void skipCurTrc ()
 will also be checked after processing CB
const SeisTrcReaderreader (int idx=0) const
const SeisTrcWriterwriter () const
SeisTrcgetTrace ()
void setTracesPerStep (int n)
 default is 10
virtual const char * message () const
virtual const char * nrDoneText () const
virtual od_int64 nrDone () const
virtual od_int64 totalNr () const
virtual int nextStep ()
int nrSkipped () const
int nrWritten () const
void setTotalNrIfUnknown (int nr)
void setScaler (Scaler *)
 Scaler becomes mine.
void setResampler (SeisResampler *)
void skipNullTraces (bool yn=true)
void fillNullTraces (bool yn=true)
void setInput (const IOObj *, const IOObj *, const char *, const IOPar *, const char *)
void setExtTrcToSI (bool yn)

Protected Member Functions

bool mkWriter (const IOObj *)
void nextObj ()
bool init (ObjectSet< IOObj > &, ObjectSet< IOPar > &)
virtual void wrapUp ()
int getNextTrc ()
int getFillTrc ()
bool prepareTrc ()
bool writeTrc ()
void prepareNullFilling ()

Protected Attributes

ObjectSet< SeisTrcReaderrdrset_
SeisTrcWriterwrr_
SeisTrcintrc_
SeisTrcworktrc_
SeisResamplerresampler_
CallBack selcb_
CallBack proccb_
BufferString msg_
BufferString curmsg_
bool skipcurtrc_
int nrwr_
int nrskipped_
int totnr_
MultiIDwrrkey_
int trcsperstep_
int currentobj_
int nrobjs_
Scalerscaler_
bool skipnull_
bool is3d_
bool fillnull_
BinID fillbid_
HorSampling fillhs_
SeisTrcfilltrc_
bool extendtrctosi_

Detailed Description

Single trace processing executor.

When a trace info is read, the selection callback is triggered. You can then use skipCurTrc(). When the trace is read, the processing callback is triggered. You can set you own trace as output trace, otherwise the input trace will be taken.


Constructor & Destructor Documentation

SeisSingleTraceProc::SeisSingleTraceProc ( const IOObj in,
const IOObj out,
const char *  nm = "Trace processor",
const IOPar iniopar = 0,
const char *  msg = "Processing" 
)
SeisSingleTraceProc::SeisSingleTraceProc ( ObjectSet< IOObj ,
const IOObj ,
const char *  nm = "Trace processor",
ObjectSet< IOPar > *  iniopars = 0,
const char *  msg = "Processing" 
)
virtual SeisSingleTraceProc::~SeisSingleTraceProc (  )  [virtual]

Member Function Documentation

void SeisSingleTraceProc::fillNullTraces ( bool  yn = true  )  [inline]
int SeisSingleTraceProc::getFillTrc (  )  [protected]
int SeisSingleTraceProc::getNextTrc (  )  [protected]
SeisTrc& SeisSingleTraceProc::getTrace (  )  [inline]
bool SeisSingleTraceProc::init ( ObjectSet< IOObj > &  ,
ObjectSet< IOPar > &   
) [protected]
virtual const char* SeisSingleTraceProc::message (  )  const [virtual]

Reimplemented from Task.

bool SeisSingleTraceProc::mkWriter ( const IOObj  )  [protected]
void SeisSingleTraceProc::nextObj (  )  [protected]
virtual int SeisSingleTraceProc::nextStep (  )  [virtual]

Implements SequentialTask.

virtual od_int64 SeisSingleTraceProc::nrDone (  )  const [virtual]

Reimplemented from Task.

virtual const char* SeisSingleTraceProc::nrDoneText (  )  const [virtual]

Reimplemented from Task.

int SeisSingleTraceProc::nrSkipped (  )  const [inline]
int SeisSingleTraceProc::nrWritten (  )  const [inline]
void SeisSingleTraceProc::prepareNullFilling (  )  [protected]
bool SeisSingleTraceProc::prepareTrc (  )  [protected]
const SeisTrcReader* SeisSingleTraceProc::reader ( int  idx = 0  )  const [inline]
void SeisSingleTraceProc::setExtTrcToSI ( bool  yn  )  [inline]
void SeisSingleTraceProc::setInput ( const IOObj ,
const IOObj ,
const char *  ,
const IOPar ,
const char *   
)
void SeisSingleTraceProc::setProcessingCB ( const CallBack cb  )  [inline]
void SeisSingleTraceProc::setResampler ( SeisResampler  ) 
void SeisSingleTraceProc::setScaler ( Scaler  ) 

Scaler becomes mine.

void SeisSingleTraceProc::setSelectionCB ( const CallBack cb  )  [inline]
void SeisSingleTraceProc::setTotalNrIfUnknown ( int  nr  )  [inline]
void SeisSingleTraceProc::setTracesPerStep ( int  n  )  [inline]

default is 10

void SeisSingleTraceProc::skipCurTrc (  )  [inline]

will also be checked after processing CB

void SeisSingleTraceProc::skipNullTraces ( bool  yn = true  )  [inline]
virtual od_int64 SeisSingleTraceProc::totalNr (  )  const [virtual]

Reimplemented from Task.

virtual void SeisSingleTraceProc::wrapUp (  )  [protected, virtual]
const SeisTrcWriter* SeisSingleTraceProc::writer (  )  const [inline]
bool SeisSingleTraceProc::writeTrc (  )  [protected]

Member Data Documentation

bool SeisSingleTraceProc::is3d_ [protected]
int SeisSingleTraceProc::nrwr_ [protected]
int SeisSingleTraceProc::totnr_ [protected]