Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

2 dimensional, translation invariant, 1 phase, coordinate enumerated neighbourhood operation.

The requirements on the NgbT template parameter expressed as class definition are:

template<class ArithT>
class NgbT
{
public:

    typedef HxNgbCnumTag        IteratorCategory;
    typedef HxNgb1PhaseTag      PhaseCategory;
    typedef HxNgbTransInVarTag  TransVarianceCategory;

    typedef HxCnum              CnumType;

                                NgbT(HxTagList& tags);
                                ~NgbT();

    HxSizes                     size();

    CnumType                    begin();
    CnumType                    end();

    void                        init(ArithT value);
    void                        next(int x, int y, ArithT value);
    ArithT                      result() const;

    static HxString             className();
};

The Requirements on CnumType expressed as a class definition are:

class CnumType
{
public:
                                CnumType();
                                CnumType(const CnumType& rhs);
    CnumType&                   operator=(const CnumType& rhs);
    int                         x();
    int                         y();
    int                         z();
    void                        inc();
    bool                        operator!=(const CnumType& rhs);
};


Return to patterns.


Generated on Tue Jan 8 13:59:38 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001