![]() |
OpendTect
7.0
|
Single trace processing executor. More...
Public Member Functions | |
SeisSingleTraceProc (const IOObj &in, const IOObj &out, const char *nm="Trace processor", const IOPar *iniopar=nullptr, const uiString &msg=uiStrings::sProcessing(), int compnr=-1) | |
SeisSingleTraceProc (const IOObj &out, const char *nm, const uiString &msg) | |
SeisSingleTraceProc (const SeisStoreAccess::Setup &inpsu, const SeisStoreAccess::Setup &outsu, const char *nm="Trace processor", const uiString &msg=uiStrings::sProcessing()) | |
SeisSingleTraceProc (ObjectSet< IOObj >, const IOObj &, const char *nm="Trace processor", ObjectSet< IOPar > *iniopars=nullptr, const uiString &msg=uiStrings::sProcessing(), int compnr=-1) | |
virtual | ~SeisSingleTraceProc () |
bool | addReader (const IOObj &, const IOPar *iop) |
Must be done before any step. More... | |
uiString | errMsg () const |
void | fillNullTraces (bool yn=true) |
const SeisTrc & | getInputTrace () |
Only available during execution. More... | |
SeisTrc & | getTrace () |
Only available during execution. More... | |
Notifier< SeisSingleTraceProc > & | inputready_ () |
bool | isOK () const |
od_int64 | nrDone () const override |
int | nrSkipped () const |
int | nrWritten () const |
const SeisTrcReader * | reader (int idx=0) const |
Only available during execution. More... | |
const Scaler * | scaler () const |
void | setExtTrcToSI (bool yn) |
bool | setInput (const IOObj &, const IOObj &, const char *, const IOPar *, const uiString &) |
Must be done before any step. More... | |
void | setProcPars (const IOPar &, bool is2d) |
Sets all above proc pars from IOPar. More... | |
void | setResampler (SeisResampler *) |
void | setScaler (Scaler *) |
Scaler becomes mine. More... | |
void | setTotalNrIfUnknown (int nr) |
void | setTracesPerStep (int n) |
default is 10 More... | |
void | skipCurTrc () |
will also be checked after processing CB More... | |
void | skipNullTraces (bool yn=true) |
od_int64 | totalNr () const override |
uiString | uiMessage () const override |
will be message() again in 7.x More... | |
uiString | uiNrDoneText () const override |
will be nrDoneText() in 7.x More... | |
const SeisTrcWriter * | writer () const |
Only available during execution. More... | |
![]() | |
Executor (const char *nm) | |
virtual | ~Executor () |
int | doStep () override |
bool | execute () override |
bool | go (od_ostream &s, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0) |
bool | go (od_ostream *s=0, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0) |
![]() | |
SequentialTask (const char *nm=nullptr) | |
virtual | ~SequentialTask () |
bool | execute () override |
![]() | |
virtual | ~ReportingTask () |
void | getProgress (const ReportingTask &) |
![]() | |
virtual | ~Task () |
virtual void | controlWork (Control) |
virtual void | enableWorkControl (bool=true) |
Must be called before execute() More... | |
virtual uiRetVal | errorWithDetails () const |
virtual Control | getState () const |
bool | workControlEnabled () const |
![]() | |
NamedCallBacker (const char *nm=0) | |
NamedCallBacker (const NamedCallBacker &) | |
virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
bool | operator== (const NamedCallBacker &oth) const |
bool | operator== (const NamedObject &oth) const |
![]() | |
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 | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
virtual CallBacker * | trueCaller () |
![]() | |
NamedObject (const char *nm=nullptr) | |
NamedObject (const NamedObject &oth) | |
virtual | ~NamedObject () |
virtual BufferString | getName () const |
bool | getNameFromPar (const IOPar &) |
const name_type & | name () const override |
NamedObject & | operator= (const NamedObject &) |
bool | operator== (const NamedObject &oth) const |
virtual void | setName (const char *nm) |
![]() | |
virtual | ~ObjectWithName () |
bool | hasName (const char *nm) const |
bool | hasName (const name_type &nm) const |
void | putNameInPar (IOPar &) const |
Public Attributes | |
Notifier< SeisSingleTraceProc > | proctobedone_ |
Notifier< SeisSingleTraceProc > | traceselected_ |
![]() | |
Notifier< Executor > | poststep |
Only when MoreToDo will be returned. More... | |
Notifier< Executor > | prestep |
![]() | |
Notifier< ReportingTask > | progressUpdated |
Protected Member Functions | |
bool | addReader () |
int | getFillTrc () |
int | getNextTrc () |
bool | goImpl (od_ostream *, bool, bool, int) override |
bool | is2D () const |
bool | is3D () const |
bool | isPS () const |
bool | nextReader () |
int | nextStep () override |
void | prepareNullFilling () |
bool | prepareTrc () |
bool | setInput () |
virtual void | wrapUp () |
bool | writeTrc () |
![]() | |
ReportingTask (const char *nm=nullptr) | |
void | incrementProgress () |
ProgressMeter * | progressMeter () const |
void | reportProgressFinished () |
void | reportProgressStarted () |
void | resetProgress () |
void | setProgressMeter (ProgressMeter *) override |
Must be called before execute() More... | |
void | updateProgressMeter (bool forced=false, std::int64_t *totalnr=0) |
void | updateReportedName () |
![]() | |
Task (const char *nm=nullptr) | |
virtual bool | shouldContinue () |
![]() | |
void | sendDelNotif () const |
Protected Attributes | |
bool | allszsfound_ = true |
uiString | curmsg_ |
int | currdridx_ = -1 |
uiString | errmsg_ |
BufferString | execnm_ |
bool | extendtrctosi_ = false |
BinID | fillbid_ |
TrcKeySampling | fillhs_ |
bool | fillnull_ = false |
SeisTrc * | filltrc_ = nullptr |
uiString | initmsg_ |
SeisStoreAccess::Setup | inpsetup_ |
SeisTrc & | intrc_ |
int | nrskipped_ = 0 |
int | nrwr_ = 0 |
SeisStoreAccess::Setup | outsetup_ |
ObjectSet< SeisTrcReader > | rdrs_ |
SeisResampler * | resampler_ = nullptr |
Scaler * | scaler_ = nullptr |
bool | skipcurtrc_ |
bool | skipnull_ = false |
int | totnr_ = -1 |
int | trcsperstep_ = 10 |
SeisTrc * | worktrc_ |
SeisTrcWriter * | wrr_ = nullptr |
MultiID & | wrrkey_ |
![]() | |
Control | control_ |
Threads::ConditionVar * | workcontrolcondvar_ |
![]() | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
![]() | |
BufferString | name_ |
Friends | |
class | SeisCubeCopier |
Additional Inherited Members | |
![]() | |
enum | Control { Run , Pause , Stop } |
![]() | |
typedef OD::String | name_type |
![]() | |
static int | ErrorOccurred () |
static int | Finished () |
static int | MoreToDo () |
static int | WarningAvailable () |
![]() | |
static uiString | stdNrDoneText () |
static uiString | uiStdNrDoneText () |
![]() | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
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.
<>
SeisSingleTraceProc::SeisSingleTraceProc | ( | const IOObj & | in, |
const IOObj & | out, | ||
const char * | nm = "Trace processor" , |
||
const IOPar * | iniopar = nullptr , |
||
const uiString & | msg = uiStrings::sProcessing() , |
||
int | compnr = -1 |
||
) |
SeisSingleTraceProc::SeisSingleTraceProc | ( | const SeisStoreAccess::Setup & | inpsu, |
const SeisStoreAccess::Setup & | outsu, | ||
const char * | nm = "Trace processor" , |
||
const uiString & | msg = uiStrings::sProcessing() |
||
) |
|
virtual |
SeisSingleTraceProc::SeisSingleTraceProc | ( | ObjectSet< IOObj > | , |
const IOObj & | , | ||
const char * | nm = "Trace processor" , |
||
ObjectSet< IOPar > * | iniopars = nullptr , |
||
const uiString & | msg = uiStrings::sProcessing() , |
||
int | compnr = -1 |
||
) |
SeisSingleTraceProc::SeisSingleTraceProc | ( | const IOObj & | out, |
const char * | nm, | ||
const uiString & | msg | ||
) |
|
protected |
Must be done before any step.
|
inline |
|
inline |
|
protected |
|
inline |
Only available during execution.
|
protected |
|
inline |
Only available during execution.
|
overrideprotectedvirtual |
Reimplemented from Executor.
Notifier<SeisSingleTraceProc>& SeisSingleTraceProc::inputready_ | ( | ) |
|
protected |
|
protected |
|
inline |
|
protected |
|
protected |
|
overrideprotectedvirtual |
MoreToDo() | Not finished. Call me again. |
Finished() | Nothing more to do. |
ErrorOccurred() | Something went wrong. |
Implements SequentialTask.
|
overridevirtual |
Reimplemented from Task.
|
inline |
|
inline |
|
protected |
|
protected |
|
inline |
Only available during execution.
|
inline |
|
inline |
|
protected |
bool 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 * | ) |
|
inline |
|
inline |
default is 10
|
inline |
will also be checked after processing CB
|
inline |
|
overridevirtual |
Reimplemented from Task.
|
overridevirtual |
|
overridevirtual |
will be nrDoneText() in 7.x
Reimplemented from Task.
|
protectedvirtual |
|
inline |
Only available during execution.
|
protected |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Notifier<SeisSingleTraceProc> SeisSingleTraceProc::proctobedone_ |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Notifier<SeisSingleTraceProc> SeisSingleTraceProc::traceselected_ |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024