Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxImgFtorIMCast.h

00001 /*
00002  *  Copyright (c) 1999, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Jan-Mark Geusebroek     (mark@wins.uva.nl)
00007  *  Edo Poll                (poll@wins.uva.nl)
00008  *  Marc Navarro            (mnavarro@wins.uva.nl)
00009  *  Dennis Koelma           (koelma@wins.uva.nl)
00010  */
00011 
00012 #ifndef HxImgFtorIMCast_h
00013 #define HxImgFtorIMCast_h
00014 
00015 #include "HxSizes.h"
00016 #include "HxImgFtorIMCastKey.h"
00017 #include "HxImgFtorIM.h"
00018 #include "HxDataPtrArray.h"
00019 
00020 #include "HxTagList.h"
00021 
00022 class HxImageData;
00023 
00024 
00034 template <class DstImgSigT, class SrcImgsSigT>
00035 class L_HXIMAGEREP HxImgFtorIMCast : public HxImgFtorIM
00036 {
00037 
00038 public:
00039     
00041     typedef HxImgFtorIMCastKey      KeyType;
00042 
00044     typedef typename DstImgSigT::DataPtrType DstDataPtrType;
00045 
00047     typedef typename SrcImgsSigT::DataPtrType SrcDataPtrType;
00048 
00050     typedef HxDataPtrArray<SrcImgsSigT> SrcDataPtrArray;
00051 
00053                     HxImgFtorIMCast(const KeyType&);
00054 
00056     virtual         ~HxImgFtorIMCast();
00057     
00059     virtual void    callIt(HxImageData* dstImg, HxImageData** srcImgs, 
00060                            int nImgs,
00061                            HxTagList &tags);
00062 
00063 protected:
00069     virtual void    doIt(DstDataPtrType dstPtr, SrcDataPtrArray& srcPtrs, 
00070                          HxSizes dstSize, HxSizes srcSize, HxTagList &tags,
00071                          HxImgFtorDescription* description = 0) = 0;
00072 
00073 private:
00074                     HxImgFtorIMCast();
00075                     HxImgFtorIMCast(const HxImgFtorIMCast&);
00076 };
00077 
00078 template <class DstImgSigT, class SrcImgsSigT>
00079 inline
00080 HxImgFtorIMCast<DstImgSigT, SrcImgsSigT>::HxImgFtorIMCast(const KeyType& key)
00081             : HxImgFtorIM(key){}
00082 
00083 #ifdef INC_TEMPLATE_SRC
00084 #include "HxImgFtorIMCast.c"
00085 #endif
00086 
00087 #endif

Generated on Tue Feb 3 14:18:37 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001