gdcmRLEFramesInfo.h

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmRLEFramesInfo.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/08/22 16:14:04 $
00007   Version:   $Revision: 1.24 $
00008                                                                                 
00009   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
00010   l'Image). All rights reserved. See Doc/License.txt or
00011   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
00012                                                                                 
00013      This software is distributed WITHOUT ANY WARRANTY; without even
00014      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00015      PURPOSE.  See the above copyright notices for more information.
00016                                                                                 
00017 =========================================================================*/
00018 
00019 
00020 #ifndef _GDCMRLEFRAMESINFO_H_
00021 #define _GDCMRLEFRAMESINFO_H_
00022 
00023 #include "gdcmRLEFrame.h"
00024 
00025 #include <list>
00026 
00027 namespace GDCM_NAME_SPACE 
00028 {
00043 class GDCM_EXPORT RLEFramesInfo
00044 {
00045 friend class PixelReadConvert;
00046 friend class File;
00047 
00048 private:
00049    ~RLEFramesInfo();
00050    void Print( std::ostream &os = std::cout, std::string indent = "" );
00051    bool DecompressRLEFile( std::ifstream *fp, uint8_t *subRaw, int xSize, 
00052                            int ySize, int zSize, int tSize, int bitsAllocated );
00053    bool ConvertRLE16BitsFromRLE8Bits( uint8_t *subRaw, int xSize, int ySize,
00054                                       int tSize, int numberOfFrames);
00055 
00056    void AddFrame(RLEFrame *frame);
00057 
00058    RLEFrame *GetFirstFrame();
00059    RLEFrame *GetNextFrame();
00060 
00061    typedef std::list<RLEFrame *> RLEFrameList;
00062 
00063    RLEFrameList Frames;
00064    RLEFrameList::iterator ItFrames;
00065 };
00066 } // end namespace gdcm
00067 
00068 //-----------------------------------------------------------------------------
00069 #endif

Generated on Fri Aug 24 12:53:18 2007 for gdcm by  doxygen 1.4.6