Public Member Functions | Protected Member Functions | Protected Attributes

Array2DFilterer< T > Class Template Reference

Filters an Array2D. More...

Inheritance diagram for Array2DFilterer< T >:
Executor SequentialTask Task NamedObject CallBacker

List of all members.

Public Member Functions

 Array2DFilterer (Array2D< T > &, const Array2DFilterPars &)
 Array2DFilterer (const Array2D< T > &, Array2D< T > &, const RowCol &origin, const Array2DFilterPars &)
 ~Array2DFilterer ()
void setScope (const Interval< int > &rowrg, const Interval< int > &colrg)
Array2D< T > & output ()
const Array2D< T > & output () const
const Array2DFilterParspars () const
const Stats::RunCalc< float > & calc () const
int nextStep ()
const char * message () const
od_int64 nrDone () const
const char * nrDoneText () const
od_int64 totalNr () const

Protected Member Functions

void filterRow (int)
void doPoint (int, int)

Protected Attributes

Array2D< T > & output_
Array2DFilterPars pars_
Stats::RunCalc< float > * calc_
Array2DImpl< T > input_
RowCol origin_
Interval< int > outputrowrg_
Interval< int > outputcolrg_
const int inputrowsize_
const int inputcolsize_
const int nrcols_
bool linefilt_
int nrrowsdone_

Detailed Description

template<class T>
class Array2DFilterer< T >

Filters an Array2D.

Note that you cannot change the filter pars after construction.


Constructor & Destructor Documentation

template<class T >
Array2DFilterer< T >::Array2DFilterer ( Array2D< T > &  a,
const Array2DFilterPars p 
) [inline]
template<class T >
Array2DFilterer< T >::Array2DFilterer ( const Array2D< T > &  input,
Array2D< T > &  a,
const RowCol origin,
const Array2DFilterPars p 
) [inline]
template<class T >
Array2DFilterer< T >::~Array2DFilterer (  )  [inline]

Member Function Documentation

template<class T >
const Stats::RunCalc<float>& Array2DFilterer< T >::calc (  )  const [inline]
template<class T >
void Array2DFilterer< T >::doPoint ( int  row,
int  col 
) [inline, protected]
template<class T >
void Array2DFilterer< T >::filterRow ( int  row  )  [inline, protected]
template<class T >
const char* Array2DFilterer< T >::message (  )  const [inline, virtual]

Reimplemented from Task.

template<class T >
int Array2DFilterer< T >::nextStep (  )  [inline, virtual]

Implements SequentialTask.

template<class T >
od_int64 Array2DFilterer< T >::nrDone (  )  const [inline, virtual]

Reimplemented from Task.

template<class T >
const char* Array2DFilterer< T >::nrDoneText (  )  const [inline, virtual]

Reimplemented from Task.

template<class T >
const Array2D<T>& Array2DFilterer< T >::output (  )  const [inline]
template<class T >
Array2D<T>& Array2DFilterer< T >::output (  )  [inline]
template<class T >
const Array2DFilterPars& Array2DFilterer< T >::pars (  )  const [inline]
template<class T >
void Array2DFilterer< T >::setScope ( const Interval< int > &  rowrg,
const Interval< int > &  colrg 
) [inline]
template<class T >
od_int64 Array2DFilterer< T >::totalNr (  )  const [inline, virtual]

Reimplemented from Task.


Member Data Documentation

template<class T >
Stats::RunCalc<float>* Array2DFilterer< T >::calc_ [protected]
template<class T >
Array2DImpl<T> Array2DFilterer< T >::input_ [protected]
template<class T >
const int Array2DFilterer< T >::inputcolsize_ [protected]
template<class T >
const int Array2DFilterer< T >::inputrowsize_ [protected]
template<class T >
bool Array2DFilterer< T >::linefilt_ [protected]
template<class T >
const int Array2DFilterer< T >::nrcols_ [protected]
template<class T >
int Array2DFilterer< T >::nrrowsdone_ [protected]
template<class T >
RowCol Array2DFilterer< T >::origin_ [protected]
template<class T >
Array2D<T>& Array2DFilterer< T >::output_ [protected]
template<class T >
Interval<int> Array2DFilterer< T >::outputcolrg_ [protected]
template<class T >
Interval<int> Array2DFilterer< T >::outputrowrg_ [protected]
template<class T >
Array2DFilterPars Array2DFilterer< T >::pars_ [protected]