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

HxImageSeqData.h

00001 /*
00002  *  Copyright (c) 2000, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *
00007  *  Dennis Koelma   (koelma@wins.uva.nl)
00008  *  TatHieu Nguyen  (tat@wins.uva.nl)
00009  *  Thang Pham      (vietp@wins.uva.nl)
00010  *
00011  */
00012 
00013 
00014 #ifndef HxImageSeqData_H
00015 #define HxImageSeqData_H
00016 
00017 #include "HxString.h"
00018 #include "HxImageRep.h"
00019 
00020 #include <list>
00021 
00022 
00039 class HxImageSeqData : public HxRcObject {
00040 
00041 public:
00043                             HxImageSeqData(int bufsize);
00044 
00046     virtual                 ~HxImageSeqData();
00047 
00049     int                     ident() const;
00050 
00052     virtual int             valid() = 0;
00053 
00055     virtual int             frameWidth() = 0;
00056 
00058     virtual int             frameHeight() = 0;
00059 
00061     virtual int             frameDepth() = 0;
00062 
00064     virtual int             nrFrames() = 0;
00065 
00067     HxImageRep              getFrame(int fn);
00068 
00073     virtual void            getRgb2d(int fn, int* pixels, 
00074                                 HxString displayMode);
00075 
00080     virtual void            getRgbPixels2d(int nr, int* pixels, 
00081                                 HxString displayMode,
00082                                 int resWidth, int resHeight,
00083                                 HxGeoIntType gi);
00084     
00089     virtual HxImageRep      frame2HxImageRep(int) = 0;
00090 
00091 private:
00092     static int              _nr;
00093     int                     _ident;
00094     int                     _bufsize; // the maximum buffer size
00095     int                     _current; // the frame number of the last element
00096                                       // in the buffer
00097     int                     _size; // the number of elements in the buffer
00098     std::list<HxImageRep>   _buffer; // the buffer has
00099 };
00100 
00101 #endif

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