OpendTect-6_4  6.4
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GenericTransformND Class Referenceabstract

Lets any 1D orthogonal transform (GenericTransformND::GenericTransform1D) be extended to ND. Most transform fftw can be implemented as a subclass of GenericTransformND. More...

Inheritance diagram for GenericTransformND:
[legend]

Classes

class  Transform1D
 

Public Member Functions

 GenericTransformND ()
 
bool setInputInfo (const ArrayNDInfo &)
 
const ArrayNDInfogetInputInfo () const
 
void setInput (const float *)
 
void setInput (const float_complex *)
 
void setOutput (float *)
 
void setOutput (float_complex *)
 
void setSampling (int)
 
void setScope (int nr, int batchsampling)
 
void setScope (int nr, const int *batchstarts)
 
bool setDir (bool forward)
 
bool getDir () const
 
bool run (bool parallel)
 
 ~GenericTransformND ()
 
- 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
 
virtual int doStep ()
 
bool execute ()
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual int64_t nrDone () const
 
virtual int64_t totalNr () const
 
virtual uiString uiMessage () const
 will be message() again in 7.x More...
 
virtual uiString uiNrDoneText () const
 will be nrDoneText() in 7.x More...
 
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...
 

Protected Member Functions

virtual bool setup ()
 
int nextStep ()
 
virtual Transform1DcreateTransform () const =0
 
- 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< Transform1Dtransforms_
 
ObjectSet< int > transforms1dstarts_
 
TypeSet< int > nr1dtransforms_
 
bool forward_
 
int sampling_
 
int batchsampling_
 
const int * batchstarts_
 
int nr_
 
ArrayNDInfoinfo_
 
int curdim_
 
bool parallel_
 
const float_complexcinput_
 
const float * rinput_
 
float_complexcoutput_
 
float * routput_
 
- 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_
 

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

Lets any 1D orthogonal transform (GenericTransformND::GenericTransform1D) be extended to ND. Most transform fftw can be implemented as a subclass of GenericTransformND.

Constructor & Destructor Documentation

GenericTransformND::GenericTransformND ( )
GenericTransformND::~GenericTransformND ( )

Member Function Documentation

virtual Transform1D* GenericTransformND::createTransform ( ) const
protectedpure virtual

Implemented in DWT, and Fourier::CC.

bool GenericTransformND::getDir ( ) const
inline
const ArrayNDInfo& GenericTransformND::getInputInfo ( ) const
int GenericTransformND::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.

bool GenericTransformND::run ( bool  parallel)
bool GenericTransformND::setDir ( bool  forward)
void GenericTransformND::setInput ( const float *  )
void GenericTransformND::setInput ( const float_complex )
bool GenericTransformND::setInputInfo ( const ArrayNDInfo )
void GenericTransformND::setOutput ( float *  )
void GenericTransformND::setOutput ( float_complex )
void GenericTransformND::setSampling ( int  )
void GenericTransformND::setScope ( int  nr,
int  batchsampling 
)
Parameters
nrnumber of signals
batchsamplingnumber of samples between signal starts.
void GenericTransformND::setScope ( int  nr,
const int *  batchstarts 
)
Parameters
nrnumber of signals
batchstartspointer to array with the indices of the signal starts.
virtual bool GenericTransformND::setup ( )
protectedvirtual

Reimplemented in DWT, and Fourier::CC.

Member Data Documentation

int GenericTransformND::batchsampling_
protected
const int* GenericTransformND::batchstarts_
protected
const float_complex* GenericTransformND::cinput_
protected
float_complex* GenericTransformND::coutput_
protected
int GenericTransformND::curdim_
protected
bool GenericTransformND::forward_
protected
ArrayNDInfo* GenericTransformND::info_
protected
TypeSet<int> GenericTransformND::nr1dtransforms_
protected
int GenericTransformND::nr_
protected
bool GenericTransformND::parallel_
protected
const float* GenericTransformND::rinput_
protected
float* GenericTransformND::routput_
protected
int GenericTransformND::sampling_
protected
ObjectSet<int> GenericTransformND::transforms1dstarts_
protected
ObjectSet<Transform1D> GenericTransformND::transforms_
protected

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