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

Single trace processing executor. More...

Inheritance diagram for SeisSingleTraceProc:
[legend]

Public Member Functions

 SeisSingleTraceProc (const IOObj &in, const IOObj &out, const char *nm="Trace processor", const IOPar *iniopar=0, const uiString &msg=uiStrings::sProcessing(), int compnr=-1)
 
 SeisSingleTraceProc (ObjectSet< IOObj >, const IOObj &, const char *nm="Trace processor", ObjectSet< IOPar > *iniopars=0, const uiString &msg=uiStrings::sProcessing(), int compnr=-1)
 
 SeisSingleTraceProc (const IOObj &out, const char *nm, const uiString &msg)
 
virtual ~SeisSingleTraceProc ()
 
bool addReader (const IOObj &, const IOPar *iop=0)
 Must be done before any step. More...
 
void setInput (const IOObj &, const IOObj &, const char *, const IOPar *, const uiString &)
 Must be done before any step. More...
 
void skipCurTrc ()
 will also be checked after processing CB More...
 
const SeisTrcReaderreader (int idx=0) const
 
const SeisTrcWriterwriter () const
 
SeisTrcgetTrace ()
 
const SeisTrcgetInputTrace ()
 
void setTracesPerStep (int n)
 default is 10 More...
 
uiString uiMessage () const
 will be message() again in 7.x More...
 
uiString uiNrDoneText () const
 will be nrDoneText() in 7.x More...
 
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. More...
 
void setResampler (SeisResampler *)
 
void skipNullTraces (bool yn=true)
 
void fillNullTraces (bool yn=true)
 
void setExtTrcToSI (bool yn)
 
void setProcPars (const IOPar &, bool is2d)
 Sets all above proc pars from IOPar. More...
 
const Scalerscaler () const
 
- Public Member Functions inherited from Executor
 Executor (const char *nm)
 
virtual ~Executor ()
 
virtual int doStep ()
 
bool go (od_ostream *s=0, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
 
bool go (od_ostream &s, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
 
virtual bool execute ()
 
- Public Member Functions inherited from SequentialTask
 SequentialTask (const char *nm=0)
 
virtual ~SequentialTask ()
 
void setProgressMeter (ProgressMeter *)
 Must be called before execute() More...
 
ProgressMeterprogressMeter ()
 
const ProgressMeterprogressMeter () const
 
bool execute ()
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual void enableWorkControl (bool=true)
 Must be called before execute() More...
 
bool workControlEnabled () const
 
virtual void controlWork (Control)
 
virtual Control getState () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Public Attributes

Notifier< SeisSingleTraceProctraceselected_
 
Notifier< SeisSingleTraceProcproctobedone_
 
- Public Attributes inherited from Executor
Notifier< Executorprestep
 
Notifier< Executorpoststep
 Only when MoreToDo will be returned. More...
 

Protected Member Functions

bool nextReader ()
 
virtual void wrapUp ()
 
int getNextTrc ()
 
int getFillTrc ()
 
bool prepareTrc ()
 
bool writeTrc ()
 
void prepareNullFilling ()
 
- Protected Member Functions inherited from Executor
virtual bool goImpl (od_ostream *, bool, bool, int)
 
- Protected Member Functions inherited from Task
 Task (const char *nm=0)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

ObjectSet< SeisTrcReaderrdrs_
 
SeisTrcWriterwrr_
 
SeisTrcintrc_
 
SeisTrcworktrc_
 
SeisResamplerresampler_
 
uiString curmsg_
 
bool allszsfound_
 
bool skipcurtrc_
 
int nrwr_
 
int nrskipped_
 
int totnr_
 
MultiIDwrrkey_
 
int trcsperstep_
 
int currdridx_
 
Scalerscaler_
 
bool skipnull_
 
bool is3d_
 
bool fillnull_
 
BinID fillbid_
 
TrcKeySampling fillhs_
 
SeisTrcfilltrc_
 
bool extendtrctosi_
 
int compnr_
 
- Protected Attributes inherited from SequentialTask
ProgressMeterprogressmeter_
 
int lastupdate_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Private Member Functions

 mODTextTranslationClass (SeisSingleTraceProc)
 

Additional Inherited Members

- Public Types inherited from Task
enum  Control { Run, Pause, Stop }
 
- Static Public Member Functions inherited from SequentialTask
static int ErrorOccurred ()
 
static int Finished ()
 
static int MoreToDo ()
 
static int WarningAvailable ()
 
- Static Public Member Functions inherited from Task
static uiString stdNrDoneText ()
 
static uiString uiStdNrDoneText ()
 

Detailed Description

Single trace processing executor.

When a trace info is read, the selection notifier is triggered. You can then use skipCurTrc(). When the trace is read, the processing notifier is triggered. You can set your 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 uiString msg = uiStrings::sProcessing(),
int  compnr = -1 
)
SeisSingleTraceProc::SeisSingleTraceProc ( ObjectSet< IOObj ,
const IOObj ,
const char *  nm = "Trace processor",
ObjectSet< IOPar > *  iniopars = 0,
const uiString msg = uiStrings::sProcessing(),
int  compnr = -1 
)
SeisSingleTraceProc::SeisSingleTraceProc ( const IOObj out,
const char *  nm,
const uiString msg 
)
virtual SeisSingleTraceProc::~SeisSingleTraceProc ( )
virtual

Member Function Documentation

bool SeisSingleTraceProc::addReader ( const IOObj ,
const IOPar iop = 0 
)

Must be done before any step.

void SeisSingleTraceProc::fillNullTraces ( bool  yn = true)
inline
int SeisSingleTraceProc::getFillTrc ( )
protected
const SeisTrc& SeisSingleTraceProc::getInputTrace ( )
inline
int SeisSingleTraceProc::getNextTrc ( )
protected
SeisTrc& SeisSingleTraceProc::getTrace ( )
inline
SeisSingleTraceProc::mODTextTranslationClass ( SeisSingleTraceProc  )
private
bool SeisSingleTraceProc::nextReader ( )
protected
virtual int SeisSingleTraceProc::nextStep ( )
virtual
Return values
MoreToDo()Not finished. Call me again.
Finished()Nothing more to do.
ErrorOccurred()Something went wrong.
Note
if function returns a value greater than cMoreToDo(), it should be interpreted as cMoreToDo().

Implements SequentialTask.

virtual od_int64 SeisSingleTraceProc::nrDone ( ) const
virtual
Note
nrDone is only used for displaying progress and will be compared to totalNr to show user how large part of the task that is finished.

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
const Scaler* SeisSingleTraceProc::scaler ( ) const
inline
void SeisSingleTraceProc::setExtTrcToSI ( bool  yn)
inline
void SeisSingleTraceProc::setInput ( const IOObj ,
const IOObj ,
const char *  ,
const IOPar ,
const uiString  
)

Must be done before any step.

void SeisSingleTraceProc::setProcPars ( const IOPar ,
bool  is2d 
)

Sets all above proc pars from IOPar.

void SeisSingleTraceProc::setResampler ( SeisResampler )
void SeisSingleTraceProc::setScaler ( Scaler )

Scaler becomes mine.

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.

uiString SeisSingleTraceProc::uiMessage ( ) const
virtual

will be message() again in 7.x

Note
totalNr is only used for displaying progress.

Reimplemented from Task.

uiString SeisSingleTraceProc::uiNrDoneText ( ) const
virtual

will be nrDoneText() in 7.x

Reimplemented from Task.

virtual void SeisSingleTraceProc::wrapUp ( )
protectedvirtual
const SeisTrcWriter& SeisSingleTraceProc::writer ( ) const
inline
bool SeisSingleTraceProc::writeTrc ( )
protected

Member Data Documentation

bool SeisSingleTraceProc::allszsfound_
protected
int SeisSingleTraceProc::compnr_
protected
uiString SeisSingleTraceProc::curmsg_
protected
int SeisSingleTraceProc::currdridx_
protected
bool SeisSingleTraceProc::extendtrctosi_
protected
BinID SeisSingleTraceProc::fillbid_
protected
TrcKeySampling SeisSingleTraceProc::fillhs_
protected
bool SeisSingleTraceProc::fillnull_
protected
SeisTrc* SeisSingleTraceProc::filltrc_
protected
SeisTrc& SeisSingleTraceProc::intrc_
protected
bool SeisSingleTraceProc::is3d_
protected
int SeisSingleTraceProc::nrskipped_
protected
int SeisSingleTraceProc::nrwr_
protected
Notifier<SeisSingleTraceProc> SeisSingleTraceProc::proctobedone_
ObjectSet<SeisTrcReader> SeisSingleTraceProc::rdrs_
protected
SeisResampler* SeisSingleTraceProc::resampler_
protected
Scaler* SeisSingleTraceProc::scaler_
protected
bool SeisSingleTraceProc::skipcurtrc_
protected
bool SeisSingleTraceProc::skipnull_
protected
int SeisSingleTraceProc::totnr_
protected
Notifier<SeisSingleTraceProc> SeisSingleTraceProc::traceselected_
int SeisSingleTraceProc::trcsperstep_
protected
SeisTrc* SeisSingleTraceProc::worktrc_
protected
SeisTrcWriter& SeisSingleTraceProc::wrr_
protected
MultiID& SeisSingleTraceProc::wrrkey_
protected

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