Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxMfMNpo.h

00001 /*
00002  *  Copyright (c) 2001, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Jan-Mark Geusebroek     (mark@wins.uva.nl)
00007  *  Dennis Koelma (koelma@wins.uva.nl)
00008  *  Edo Poll (poll@wins.uva.nl)
00009  */
00010 
00011 #ifndef HxMfMNpo_h
00012 #define HxMfMNpo_h
00013 
00014 #include "HxString.h"
00015 
00016 class HxImageData;
00017 
00020 class HxMfMNpo {
00021 public:
00023                     HxMfMNpo(HxImageData** srcs, int srcCnt, HxString mpoName);
00024 
00026                     ~HxMfMNpo();
00027 
00028 
00030     HxImageData**   results() const;
00031 
00032     HxImageData*    results(int n) const;
00033 
00035     int             resultCnt() const;
00036 
00038     HxImageData**   sources() const;
00039 
00041     int             sourceCnt() const;
00042 
00044     bool            preOpIsOk() const;
00045 
00046 private:
00047     HxImageData**   _src;
00048     HxImageData**   _tmp;
00049     HxImageData**   _result;
00050     int             _srcCnt;
00051     int             _resCnt;
00052     bool            _preOpIsOk;
00053 };
00054 
00055 inline bool
00056 HxMfMNpo::preOpIsOk() const
00057 {
00058     return _preOpIsOk;
00059 }
00060 
00061 inline HxImageData*
00062 HxMfMNpo::results(int n) const
00063 {
00064     return ((n>=0) && (n < _resCnt)) ? _result[n] : 0;
00065 }
00066 
00067 #endif

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