gdcmPixelWriteConvert.h

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmPixelWriteConvert.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/08/22 16:14:04 $
00007   Version:   $Revision: 1.11 $
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 _GDCMPIXELWRITECONVERT_H_
00021 #define _GDCMPIXELWRITECONVERT_H_
00022 
00023 #include "gdcmCommon.h"
00024 #include "gdcmBase.h"
00025 
00026 namespace GDCM_NAME_SPACE
00027 {
00034 class File;
00035 class GDCM_EXPORT PixelWriteConvert : public Base
00036 {
00037 friend class FileHelper;
00038 
00039 private:
00040    PixelWriteConvert();
00041    virtual ~PixelWriteConvert();
00042 
00043    // Set/Get of images and their size
00044    void SetReadData(uint8_t *data, size_t size);
00046    uint8_t *GetReadData() { return ReadData; }
00048    size_t   GetReadDataSize() { return ReadDataSize; }
00049 
00051    void SetUserData(uint8_t *data, size_t size);
00053    uint8_t *GetUserData() { return UserData; }
00055    size_t   GetUserDataSize() { return UserDataSize; }
00056 
00057    // Get the used image and its size
00058    uint8_t *GetData();
00059    size_t   GetDataSize();
00060 
00061    void SetCompressJPEG2000UserData(uint8_t *data, size_t size, File *image);
00062    void SetCompressJPEGUserData(uint8_t *data, size_t size, File *image);
00063 
00064 // Variables
00066    uint8_t *ReadData;
00068    size_t   ReadDataSize;
00069 
00071    uint8_t *UserData;
00073    size_t   UserDataSize;
00074 
00076    bool Compressed;
00077 };
00078 } // end namespace gdcm
00079 
00080 //-----------------------------------------------------------------------------
00081 #endif

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