OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Smoother2D< T > Class Template Reference

Smoothes a 2d signal with an operator. More...

Inheritance diagram for Smoother2D< T >:
[legend]

Public Member Functions

 Smoother2D ()
 
 ~Smoother2D ()
 
void setInput (const Array2D< T > &, bool hasudf)
 
void setOutput (Array2D< T > &)
 
bool setWindow (const char *nm, float param, int sz0, int sz1)
 
int getWindowSize (int dim) const
 
const char * getWindowName () const
 
float getWindowParam () const
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
void setProgressMeter (ProgressMeter *pm)
 Must be called before execute() More...
 
bool execute ()
 
void enableWorkControl (bool)
 Must be called before execute() More...
 
void controlWork (Task::Control)
 
Task::Control getState () const
 
- 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...
 
bool workControlEnabled () 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...
 

Static Public Member Functions

static const char * sKeyWinFunc ()
 
static const char * sKeyWinParam ()
 
static const char * sKeyWinSize ()
 
- Static Public Member Functions inherited from Task
static uiString stdNrDoneText ()
 
static uiString uiStdNrDoneText ()
 

Protected Attributes

Convolver2D< T > convolver_
 
bool hasudf_
 
Array2DImpl< T > * window_
 
int windowsz0_
 
int windowsz1_
 
BufferString windowname_
 
float windowparam_
 
- 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 }
 
- 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...
 

Detailed Description

template<class T>
class Smoother2D< T >

Smoothes a 2d signal with an operator.

Constructor & Destructor Documentation

template<class T >
Smoother2D< T >::Smoother2D ( )
inline
template<class T >
Smoother2D< T >::~Smoother2D ( )
inline

Member Function Documentation

template<class T >
void Smoother2D< T >::controlWork ( Task::Control  var)
inlinevirtual

Reimplemented from Task.

template<class T >
void Smoother2D< T >::enableWorkControl ( bool  )
inlinevirtual

Must be called before execute()

Reimplemented from Task.

template<class T >
bool Smoother2D< T >::execute ( )
inlinevirtual

Implements Task.

template<class T >
void Smoother2D< T >::fillPar ( IOPar par) const
inline
template<class T >
Task::Control Smoother2D< T >::getState ( ) const
inlinevirtual

Reimplemented from Task.

template<class T >
const char * Smoother2D< T >::getWindowName ( ) const
inline
template<class T >
float Smoother2D< T >::getWindowParam ( ) const
inline
template<class T >
int Smoother2D< T >::getWindowSize ( int  dim) const
inline
template<class T >
void Smoother2D< T >::setInput ( const Array2D< T > &  ni,
bool  hasudf 
)
inline
template<class T >
void Smoother2D< T >::setOutput ( Array2D< T > &  no)
inline
template<class T >
void Smoother2D< T >::setProgressMeter ( ProgressMeter )
inlinevirtual

Must be called before execute()

Reimplemented from Task.

template<class T >
bool Smoother2D< T >::setWindow ( const char *  nm,
float  param,
int  sz0,
int  sz1 
)
inline

Must be at least the size of input.

template<class T >
static const char* Smoother2D< T >::sKeyWinFunc ( )
inlinestatic
template<class T >
static const char* Smoother2D< T >::sKeyWinParam ( )
inlinestatic
template<class T >
static const char* Smoother2D< T >::sKeyWinSize ( )
inlinestatic
template<class T >
bool Smoother2D< T >::usePar ( const IOPar par)
inline

Member Data Documentation

template<class T >
Convolver2D<T> Smoother2D< T >::convolver_
protected
template<class T >
bool Smoother2D< T >::hasudf_
protected
template<class T >
Array2DImpl<T>* Smoother2D< T >::window_
protected
template<class T >
BufferString Smoother2D< T >::windowname_
protected
template<class T >
float Smoother2D< T >::windowparam_
protected
template<class T >
int Smoother2D< T >::windowsz0_
protected
template<class T >
int Smoother2D< T >::windowsz1_
protected

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