OpendTect-6_4  6.4
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SeisDataPackWriter Class Reference
Inheritance diagram for SeisDataPackWriter:
[legend]

Public Member Functions

 SeisDataPackWriter (const MultiID &, const RegularSeisDataPack &, const TypeSet< int > &components=TypeSet< int >())
 
 ~SeisDataPackWriter ()
 
void setSelection (const TrcKeySampling &, const Interval< int > &)
 
const RegularSeisDataPackdataPack () const
 
void setNextDataPack (const RegularSeisDataPack &)
 
void setComponentScaler (const Scaler &, int compidx)
 
od_int64 nrDone () const
 
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...
 
int nextStep ()
 
TrcKeySampling hSampling () const
 
Interval< int > zSampling () 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...
 

Private Member Functions

 mODTextTranslationClass (SeisDataPackWriter)
 
void setCubeIdxRange ()
 
bool setTrc ()
 
void adjustSteeringScaler (int compidx)
 
void getPosInfo ()
 
void obtainDP ()
 
void releaseDP ()
 

Private Attributes

TypeSet< int > compidxs_
 
MultiID mid_
 
const RegularSeisDataPackdp_
 
int nrdone_
 
int totalnr_
 
TrcKeySamplingIterator iterator_
 
const PosInfo::CubeDataposinfo_
 
SeisTrcWriterwriter_
 
SeisTrctrc_
 
TrcKeySampling tks_
 
Interval< int > zrg_
 
StepInterval< int > cubezrgidx_
 
ObjectSet< Scalercompscalers_
 
bool is2d_
 

Friends

class VolProc::ChainOutput
 

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 ()
 
- Public Attributes inherited from Executor
Notifier< Executorprestep
 
Notifier< Executorpoststep
 Only when MoreToDo will be returned. More...
 
- 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 inherited from SequentialTask
ProgressMeterprogressmeter_
 
int lastupdate_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Detailed Description

Constructor & Destructor Documentation

SeisDataPackWriter::SeisDataPackWriter ( const MultiID ,
const RegularSeisDataPack ,
const TypeSet< int > &  components = TypeSet< int >() 
)
SeisDataPackWriter::~SeisDataPackWriter ( )

Member Function Documentation

void SeisDataPackWriter::adjustSteeringScaler ( int  compidx)
private
const RegularSeisDataPack* SeisDataPackWriter::dataPack ( ) const
inline
void SeisDataPackWriter::getPosInfo ( )
private
TrcKeySampling SeisDataPackWriter::hSampling ( ) const
inline
SeisDataPackWriter::mODTextTranslationClass ( SeisDataPackWriter  )
private
int SeisDataPackWriter::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 SeisDataPackWriter::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.

void SeisDataPackWriter::obtainDP ( )
private
void SeisDataPackWriter::releaseDP ( )
private
void SeisDataPackWriter::setComponentScaler ( const Scaler ,
int  compidx 
)
void SeisDataPackWriter::setCubeIdxRange ( )
private
void SeisDataPackWriter::setNextDataPack ( const RegularSeisDataPack )
void SeisDataPackWriter::setSelection ( const TrcKeySampling ,
const Interval< int > &   
)
bool SeisDataPackWriter::setTrc ( )
private
od_int64 SeisDataPackWriter::totalNr ( ) const
virtual

Reimplemented from Task.

uiString SeisDataPackWriter::uiMessage ( ) const
virtual

will be message() again in 7.x

Note
totalNr is only used for displaying progress.

Reimplemented from Task.

uiString SeisDataPackWriter::uiNrDoneText ( ) const
inlinevirtual

will be nrDoneText() in 7.x

Reimplemented from Task.

Interval<int> SeisDataPackWriter::zSampling ( ) const
inline

Friends And Related Function Documentation

friend class VolProc::ChainOutput
friend

Member Data Documentation

TypeSet<int> SeisDataPackWriter::compidxs_
private
ObjectSet<Scaler> SeisDataPackWriter::compscalers_
private
StepInterval<int> SeisDataPackWriter::cubezrgidx_
private
const RegularSeisDataPack* SeisDataPackWriter::dp_
private
bool SeisDataPackWriter::is2d_
private
TrcKeySamplingIterator SeisDataPackWriter::iterator_
private
MultiID SeisDataPackWriter::mid_
private
int SeisDataPackWriter::nrdone_
private
const PosInfo::CubeData* SeisDataPackWriter::posinfo_
private
TrcKeySampling SeisDataPackWriter::tks_
private
int SeisDataPackWriter::totalnr_
private
SeisTrc* SeisDataPackWriter::trc_
private
SeisTrcWriter* SeisDataPackWriter::writer_
private
Interval<int> SeisDataPackWriter::zrg_
private

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