OpendTect  6.6
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Fourier::CC Class Reference

Does Fourier Transforms of any size. More...

Inheritance diagram for Fourier::CC:
[legend]

Classes

class  CC1D
 

Public Member Functions

 CC ()
 
static ::Factory< CC > & factory ()
 
virtual int getFastSize (int sz) const
 
bool isFast (int sz) const
 
 mDefaultFactoryCreatorImpl (CC, CC)
 
 mDefaultFactoryInstanciationBase ("PFAFFT", tr("FFT"))
 
void setNormalization (bool yn)
 
- Public Member Functions inherited from GenericTransformND
 GenericTransformND ()
 
 ~GenericTransformND ()
 
bool getDir () const
 
const ArrayNDInfogetInputInfo () const
 
bool run (bool parallel)
 
bool setDir (bool forward)
 
void setInput (const float *)
 
void setInput (const float_complex *)
 
bool setInputInfo (const ArrayNDInfo &)
 
void setOutput (float *)
 
void setOutput (float_complex *)
 
void setSampling (int)
 
void setScope (int nr, const int *batchstarts)
 
void setScope (int nr, int batchsampling)
 
- Public Member Functions inherited from SequentialTask
 SequentialTask (const char *nm=nullptr)
 
virtual ~SequentialTask ()
 
virtual int doStep ()
 
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
 
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...
 
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
 

Static Public Member Functions

static CCcreateDefault ()
 
static float getDf (float samplespacing, int nrsamples)
 
static void getFrequencies (float samplespacing, int nrsamples, TypeSet< float > &)
 
static float getNyqvist (float samplespacing)
 
static int npfao (int nmin, int nmax)
 
static int npfaro (int nmin, int nmax)
 
static void pfacr (int isign, int n, const float_complex *, float *rz)
 
static void pfarc (int isign, int n, const float *rz, float_complex *cz)
 
- 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 ()
 

Protected Member Functions

Transform1DcreateTransform () const
 
bool setup ()
 
- Protected Member Functions inherited from GenericTransformND
int nextStep ()
 
- Protected Member Functions inherited from Task
 Task (const char *nm=nullptr)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Static Protected Member Functions

static uiStringlegalInfo ()
 
static void pfacc (char dir, int sz, float_complex *)
 
static void pfacc (char dir, int sz, int step, float_complex *signal)
 
static void pfacc (char dir, int sz, int step, int nr, const int *starts, float_complex *signal)
 
static void pfacc (char dir, int sz, int step, int nr, int batchstep, float_complex *signal)
 

Protected Attributes

bool normalize_
 
- Protected Attributes inherited from GenericTransformND
int batchsampling_
 
const int * batchstarts_
 
const float_complex * cinput_
 
float_complex * coutput_
 
int curdim_
 
bool forward_
 
ArrayNDInfoinfo_
 
TypeSet< int > nr1dtransforms_
 
int nr_
 
bool parallel_
 
const float * rinput_
 
float * routput_
 
int sampling_
 
ObjectSet< int > transforms1dstarts_
 
ObjectSet< Transform1Dtransforms_
 
- 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_
 

Additional Inherited Members

- Public Types inherited from Task
enum  Control { Run , Pause , Stop }
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Detailed Description

Does Fourier Transforms of any size.

<>

Constructor & Destructor Documentation

◆ CC()

Fourier::CC::CC ( )

Member Function Documentation

◆ createDefault()

static CC* Fourier::CC::createDefault ( )
static

◆ createTransform()

Transform1D* Fourier::CC::createTransform ( ) const
protectedvirtual

Implements GenericTransformND.

◆ factory()

static ::Factory<CC>& Fourier::CC::factory ( )

◆ getDf()

static float Fourier::CC::getDf ( float  samplespacing,
int  nrsamples 
)
static

◆ getFastSize()

virtual int Fourier::CC::getFastSize ( int  sz) const
virtual

Returns a size that is equal or larger than sz

◆ getFrequencies()

static void Fourier::CC::getFrequencies ( float  samplespacing,
int  nrsamples,
TypeSet< float > &   
)
static

◆ getNyqvist()

static float Fourier::CC::getNyqvist ( float  samplespacing)
static

◆ isFast()

bool Fourier::CC::isFast ( int  sz) const

◆ legalInfo()

static uiString* Fourier::CC::legalInfo ( )
staticprotected

◆ mDefaultFactoryCreatorImpl()

Fourier::CC::mDefaultFactoryCreatorImpl ( CC  ,
CC   
)

◆ mDefaultFactoryInstanciationBase()

Fourier::CC::mDefaultFactoryInstanciationBase ( "PFAFFT"  ,
tr("FFT")   
)

◆ npfao()

static int Fourier::CC::npfao ( int  nmin,
int  nmax 
)
static

◆ npfaro()

static int Fourier::CC::npfaro ( int  nmin,
int  nmax 
)
static

◆ pfacc() [1/4]

static void Fourier::CC::pfacc ( char  dir,
int  sz,
float_complex *   
)
staticprotected

◆ pfacc() [2/4]

static void Fourier::CC::pfacc ( char  dir,
int  sz,
int  step,
float_complex *  signal 
)
staticprotected

Prime number size FFT where the signal has a sampling not equal to 1, i.e. every Nth value should be used.

Parameters
dir1 for forward, -1 for backwards
szLength of signal
stepis the step between the samples of the signal
signalIs the signal itself. The output will be written to signal.

◆ pfacc() [3/4]

static void Fourier::CC::pfacc ( char  dir,
int  sz,
int  step,
int  nr,
const int *  starts,
float_complex *  signal 
)
staticprotected

◆ pfacc() [4/4]

static void Fourier::CC::pfacc ( char  dir,
int  sz,
int  step,
int  nr,
int  batchstep,
float_complex *  signal 
)
staticprotected

◆ pfacr()

static void Fourier::CC::pfacr ( int  isign,
int  n,
const float_complex *  ,
float *  rz 
)
static

◆ pfarc()

static void Fourier::CC::pfarc ( int  isign,
int  n,
const float *  rz,
float_complex *  cz 
)
static

◆ setNormalization()

void Fourier::CC::setNormalization ( bool  yn)

◆ setup()

bool Fourier::CC::setup ( )
protectedvirtual

Reimplemented from GenericTransformND.

Member Data Documentation

◆ normalize_

bool Fourier::CC::normalize_
protected

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