OpendTect  6.6
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Seis::SequentialReader Class Reference
Inheritance diagram for Seis::SequentialReader:
[legend]

Public Member Functions

 SequentialReader (const IOObj &, const TrcKeyZSampling *=0, const TypeSet< int > *components=0)
 
 ~SequentialReader ()
 
RegularSeisDataPackgetDataPack ()
 
bool init ()
 
od_int64 nrDone () const
 
void setComponents (const TypeSet< int > &compnrs)
 
void setComponentScaler (const Scaler &, int compidx)
 
void setDataChar (DataCharacteristics::UserType)
 
bool setDataPack (RegularSeisDataPack &, od_ostream *strm=0)
 
mDeprecatedDef bool setOutputComponents (const TypeSet< int > &)
 
void setScaler (Scaler *)
 
od_int64 totalNr () const
 
uiString uiMessage () const
 will be message() again in 7.x More...
 
uiString uiNrDoneText () const
 will be nrDoneText() in 7.x More...
 
- Public Member Functions inherited from Executor
 Executor (const char *nm)
 
virtual ~Executor ()
 
virtual int doStep ()
 
virtual bool execute ()
 
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)
 
- Public Member Functions inherited from SequentialTask
 SequentialTask (const char *nm=nullptr)
 
virtual ~SequentialTask ()
 
bool execute ()
 
ProgressMeterprogressMeter ()
 
const ProgressMeterprogressMeter () const
 
void setProgressMeter (ProgressMeter *)
 Must be called before execute() More...
 
- Public Member Functions inherited from Task
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
 
- Public Member Functions inherited from NamedCallBacker
 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
 
- Public Member Functions inherited from CallBacker
 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
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
virtual const name_typename () const
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Protected Member Functions

virtual bool goImpl (od_ostream *, bool, bool, int)
 
virtual int nextStep ()
 
bool setOutputComponents ()
 
- Protected Member Functions inherited from Task
 Task (const char *nm=nullptr)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Private Member Functions

void adjustDPDescToScalers (const BinDataDesc &trcdesc)
 
bool getTrcsPosForRead (int &desirednrpos, TypeSet< TrcKey > &) const
 
void submitUdfWriterTasks ()
 

Private Attributes

TypeSet< int > components_
 
ObjectSet< Scalercompscalers_
 
DataCharacteristics dc_
 
RegularSeisDataPackdp_
 
StepInterval< float > dpzsamp_
 
bool initialized_
 
IOObjioobj_
 
bool is2d_
 
uiString msg_
 
bool needresampling_
 
od_int64 nrdone_
 
TypeSet< int > outcomponents_
 
int queueid_
 
SeisTrcReaderrdr_
 
TypeSet< float > refnrs_
 
bool samedatachar_
 
Interval< int > samprg_
 
Scalerscaler_
 
ObjectSummaryseissummary_
 
TrcKeyZSampling tkzs_
 
od_int64 totalnr_
 
PosInfo::CubeDataIteratortrcsiterator3d_
 
PosInfo::CubeDatatrcssampling_
 

Additional Inherited Members

- Public Types inherited from Task
enum  Control { Run , Pause , Stop }
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- 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 ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Public Attributes inherited from Executor
Notifier< Executorpoststep
 Only when MoreToDo will be returned. More...
 
Notifier< Executorprestep
 
- Protected Attributes inherited from SequentialTask
int lastupdate_
 
ProgressMeterprogressmeter_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

Reads a 3D Seismic volume in parallel into a RegularSeisDataPack

Usage example: SequentialReader rdr( myiioobj ); // I want to read all rdr.setDataChar( DataCharacteristics:: ); // read in another format rdr.setScaler( myscaler ); // scale data to fit in required format if ( rdr.init() ) // something is not right rdr.execute();

<>

Constructor & Destructor Documentation

◆ SequentialReader()

Seis::SequentialReader::SequentialReader ( const IOObj ,
const TrcKeyZSampling = 0,
const TypeSet< int > *  components = 0 
)

For 2D data, pass line GeomID as lineNr in TrcKeySampling

◆ ~SequentialReader()

Seis::SequentialReader::~SequentialReader ( )

Member Function Documentation

◆ adjustDPDescToScalers()

void Seis::SequentialReader::adjustDPDescToScalers ( const BinDataDesc trcdesc)
private

◆ getDataPack()

RegularSeisDataPack* Seis::SequentialReader::getDataPack ( )

◆ getTrcsPosForRead()

bool Seis::SequentialReader::getTrcsPosForRead ( int &  desirednrpos,
TypeSet< TrcKey > &   
) const
private

◆ goImpl()

virtual bool Seis::SequentialReader::goImpl ( od_ostream ,
bool  ,
bool  ,
int   
)
protectedvirtual

Reimplemented from Executor.

◆ init()

bool Seis::SequentialReader::init ( )

◆ nextStep()

virtual int Seis::SequentialReader::nextStep ( )
protectedvirtual
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.

◆ nrDone()

od_int64 Seis::SequentialReader::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.

◆ setComponents()

void Seis::SequentialReader::setComponents ( const TypeSet< int > &  compnrs)
inline

◆ setComponentScaler()

void Seis::SequentialReader::setComponentScaler ( const Scaler ,
int  compidx 
)

Will force the datapack to float

◆ setDataChar()

void Seis::SequentialReader::setDataChar ( DataCharacteristics::UserType  )

◆ setDataPack()

bool Seis::SequentialReader::setDataPack ( RegularSeisDataPack ,
od_ostream strm = 0 
)

No need for init if setDataPack is called Will allocate memory if not done already Scaler and sampling get forwarded to the reader DataChar is not forwarded

◆ setOutputComponents() [1/2]

bool Seis::SequentialReader::setOutputComponents ( )
protected

◆ setOutputComponents() [2/2]

mDeprecatedDef bool Seis::SequentialReader::setOutputComponents ( const TypeSet< int > &  )

Will be removed after 6.2

◆ setScaler()

void Seis::SequentialReader::setScaler ( Scaler )

◆ submitUdfWriterTasks()

void Seis::SequentialReader::submitUdfWriterTasks ( )
private

◆ totalNr()

od_int64 Seis::SequentialReader::totalNr ( ) const
inlinevirtual

Reimplemented from Task.

◆ uiMessage()

uiString Seis::SequentialReader::uiMessage ( ) const
inlinevirtual

will be message() again in 7.x

Reimplemented from Task.

◆ uiNrDoneText()

uiString Seis::SequentialReader::uiNrDoneText ( ) const
virtual

will be nrDoneText() in 7.x

Reimplemented from Task.

Member Data Documentation

◆ components_

TypeSet<int> Seis::SequentialReader::components_
private

◆ compscalers_

ObjectSet<Scaler> Seis::SequentialReader::compscalers_
private

◆ dc_

DataCharacteristics Seis::SequentialReader::dc_
private

◆ dp_

RegularSeisDataPack* Seis::SequentialReader::dp_
private

◆ dpzsamp_

StepInterval<float> Seis::SequentialReader::dpzsamp_
private

◆ initialized_

bool Seis::SequentialReader::initialized_
private

◆ ioobj_

IOObj* Seis::SequentialReader::ioobj_
private

◆ is2d_

bool Seis::SequentialReader::is2d_
private

◆ msg_

uiString Seis::SequentialReader::msg_
private

◆ needresampling_

bool Seis::SequentialReader::needresampling_
private

◆ nrdone_

od_int64 Seis::SequentialReader::nrdone_
private

◆ outcomponents_

TypeSet<int> Seis::SequentialReader::outcomponents_
private

◆ queueid_

int Seis::SequentialReader::queueid_
private

◆ rdr_

SeisTrcReader& Seis::SequentialReader::rdr_
private

◆ refnrs_

TypeSet<float> Seis::SequentialReader::refnrs_
private

◆ samedatachar_

bool Seis::SequentialReader::samedatachar_
private

◆ samprg_

Interval<int> Seis::SequentialReader::samprg_
private

◆ scaler_

Scaler* Seis::SequentialReader::scaler_
private

◆ seissummary_

ObjectSummary* Seis::SequentialReader::seissummary_
private

◆ tkzs_

TrcKeyZSampling Seis::SequentialReader::tkzs_
private

◆ totalnr_

od_int64 Seis::SequentialReader::totalnr_
private

◆ trcsiterator3d_

PosInfo::CubeDataIterator* Seis::SequentialReader::trcsiterator3d_
private

◆ trcssampling_

PosInfo::CubeData* Seis::SequentialReader::trcssampling_
private

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