Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxNeighbFunctorTem Class Template Reference

Class definition for neighbourhood functor. More...

#include <HxNeighbFunctorTem.h>

Inheritance diagram for HxNeighbFunctorTem::

List of all members.

Public Methods

 HxNeighbFunctorTem (HxString name)
 Constructor. More...

virtual ~HxNeighbFunctorTem ()
virtual void init ()=0
 Initialize the functor. More...

virtual void next (ArgType pixV, ArgType maskV, HxPoint p)=0
 Process the next element. More...

virtual ResType result ()=0
 Produce result. More...

virtual int hasPhase2 ()
 Does functor have a second phase?. More...

virtual void init2 ()
 Initialize phase 2. More...

virtual void next2 (ArgType pixV, ArgType maskV, HxPoint p)
 Process the next element in phase 2. More...

virtual ResType result2 ()
 Produce result phase 2. More...


Detailed Description

template<class ArgType, class ResType>
class HxNeighbFunctorTem< ArgType, ResType >

Class definition for neighbourhood functor.


Constructor & Destructor Documentation

template<class ArgType, class ResType>
HxNeighbFunctorTem< ArgType, ResType >::HxNeighbFunctorTem HxString    name
 

Constructor.

00020 {
00021     HxNeighbFunctorTable<ArgType, ResType>::instance()->insert(name, this);
00022     _name = name;
00023 }


Member Function Documentation

template<class ArgType, class ResType>
virtual void HxNeighbFunctorTem< ArgType, ResType >::init   [pure virtual]
 

Initialize the functor.

template<class ArgType, class ResType>
virtual void HxNeighbFunctorTem< ArgType, ResType >::next ArgType    pixV,
ArgType    maskV,
HxPoint    p
[pure virtual]
 

Process the next element.

template<class ArgType, class ResType>
virtual ResType HxNeighbFunctorTem< ArgType, ResType >::result   [pure virtual]
 

Produce result.

template<class ArgType, class ResType>
int HxNeighbFunctorTem< ArgType, ResType >::hasPhase2   [virtual]
 

Does functor have a second phase?.

Default: 0.

00039 {
00040     return 0;
00041 }

template<class ArgType, class ResType>
void HxNeighbFunctorTem< ArgType, ResType >::init2   [virtual]
 

Initialize phase 2.

Default: ignore.

00046 {
00047 }

template<class ArgType, class ResType>
void HxNeighbFunctorTem< ArgType, ResType >::next2 ArgType    pixV,
ArgType    maskV,
HxPoint    p
[virtual]
 

Process the next element in phase 2.

Default: ignore.

00052 {
00053 }

template<class ArgType, class ResType>
ResType HxNeighbFunctorTem< ArgType, ResType >::result2   [virtual]
 

Produce result phase 2.

Default: HxScalarInt(0).

00058 {
00059     return HxScalarInt(0);
00060 }


The documentation for this class was generated from the following files:
Generated on Tue Jan 8 13:59:33 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001