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

merges two 2D lines into a new one (same Line Set) More...

Inheritance diagram for Seis2DLineMerger:
[legend]

Public Types

enum  Opt { MatchTrcNr, MatchCoords, SimpleAppend }
 
- Public Types inherited from Task
enum  Control { Run, Pause, Stop }
 

Public Member Functions

 Seis2DLineMerger (const BufferStringSet &datanms, const Pos::GeomID &)
 
 ~Seis2DLineMerger ()
 
uiString uiMessage () const
 will be message() again in 7.x More...
 
uiString uiNrDoneText () const
 will be nrDoneText() in 7.x More...
 
od_int64 totalNr () const
 
od_int64 nrDone () const
 
int nextStep ()
 
- 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

Opt opt_
 
BufferString lnm1_
 
BufferString lnm2_
 
BufferString outlnm_
 
bool renumber_
 
bool stckdupl_
 
SamplingData< int > numbering_
 
double snapdist_
 
- Public Attributes inherited from Executor
Notifier< Executorprestep
 
Notifier< Executorpoststep
 Only when MoreToDo will be returned. More...
 

Protected Member Functions

int doWork ()
 
int doIO ()
 
bool getLineID (const char *, int &) const
 
bool nextAttr ()
 
bool nextFetcher ()
 
void mergeBufs ()
 
void makeBufsCompat ()
 
void mergeOnCoords ()
 
void doMerge (const TypeSet< int > &, bool)
 
- 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

Seis2DDataSetds_
 
PosInfo::Line2DDatal2dd1_
 
PosInfo::Line2DDatal2dd2_
 
PosInfo::Line2DDataoutl2dd_
 
SeisTrcBuftbuf1_
 
SeisTrcBuftbuf2_
 
SeisTrcBufoutbuf_
 
Executorfetcher_
 
Seis2DLinePutterputter_
 
BufferStringSetattrnms_
 
int curattridx_
 
int currentlyreading_
 
Pos::GeomID lid1_
 
Pos::GeomID lid2_
 
bool have1_
 
bool have2_
 
const Pos::GeomIDoutgeomid_
 
uiString msg_
 
uiString nrdonemsg_
 
od_int64 nrdone_
 
od_int64 totnr_
 
- 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 (Seis2DLineMerger)
 

Additional Inherited Members

- 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

merges two 2D lines into a new one (same Line Set)

Member Enumeration Documentation

Enumerator
MatchTrcNr 
MatchCoords 
SimpleAppend 

Constructor & Destructor Documentation

Seis2DLineMerger::Seis2DLineMerger ( const BufferStringSet datanms,
const Pos::GeomID  
)
Seis2DLineMerger::~Seis2DLineMerger ( )

Member Function Documentation

int Seis2DLineMerger::doIO ( )
protected
void Seis2DLineMerger::doMerge ( const TypeSet< int > &  ,
bool   
)
protected
int Seis2DLineMerger::doWork ( )
protected
bool Seis2DLineMerger::getLineID ( const char *  ,
int &   
) const
protected
void Seis2DLineMerger::makeBufsCompat ( )
protected
void Seis2DLineMerger::mergeBufs ( )
protected
void Seis2DLineMerger::mergeOnCoords ( )
protected
Seis2DLineMerger::mODTextTranslationClass ( Seis2DLineMerger  )
private
bool Seis2DLineMerger::nextAttr ( )
protected
bool Seis2DLineMerger::nextFetcher ( )
protected
int Seis2DLineMerger::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.

od_int64 Seis2DLineMerger::nrDone ( ) const
inlinevirtual
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.

od_int64 Seis2DLineMerger::totalNr ( ) const
inlinevirtual

Reimplemented from Task.

uiString Seis2DLineMerger::uiMessage ( ) const
inlinevirtual

will be message() again in 7.x

Note
totalNr is only used for displaying progress.

Reimplemented from Task.

uiString Seis2DLineMerger::uiNrDoneText ( ) const
inlinevirtual

will be nrDoneText() in 7.x

Reimplemented from Task.

Member Data Documentation

BufferStringSet& Seis2DLineMerger::attrnms_
protected
int Seis2DLineMerger::curattridx_
protected
int Seis2DLineMerger::currentlyreading_
protected
Seis2DDataSet* Seis2DLineMerger::ds_
protected
Executor* Seis2DLineMerger::fetcher_
protected
bool Seis2DLineMerger::have1_
protected
bool Seis2DLineMerger::have2_
protected
PosInfo::Line2DData& Seis2DLineMerger::l2dd1_
protected
PosInfo::Line2DData& Seis2DLineMerger::l2dd2_
protected
Pos::GeomID Seis2DLineMerger::lid1_
protected
Pos::GeomID Seis2DLineMerger::lid2_
protected
BufferString Seis2DLineMerger::lnm1_
BufferString Seis2DLineMerger::lnm2_
uiString Seis2DLineMerger::msg_
protected
od_int64 Seis2DLineMerger::nrdone_
protected
uiString Seis2DLineMerger::nrdonemsg_
protected
SamplingData<int> Seis2DLineMerger::numbering_
Opt Seis2DLineMerger::opt_
SeisTrcBuf& Seis2DLineMerger::outbuf_
protected
const Pos::GeomID& Seis2DLineMerger::outgeomid_
protected
PosInfo::Line2DData& Seis2DLineMerger::outl2dd_
protected
BufferString Seis2DLineMerger::outlnm_
Seis2DLinePutter* Seis2DLineMerger::putter_
protected
bool Seis2DLineMerger::renumber_
double Seis2DLineMerger::snapdist_
bool Seis2DLineMerger::stckdupl_
SeisTrcBuf& Seis2DLineMerger::tbuf1_
protected
SeisTrcBuf& Seis2DLineMerger::tbuf2_
protected
od_int64 Seis2DLineMerger::totnr_
protected

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