00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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
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
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
00066 uint8_t *ReadData;
00068 size_t ReadDataSize;
00069
00071 uint8_t *UserData;
00073 size_t UserDataSize;
00074
00076 bool Compressed;
00077 };
00078 }
00079
00080
00081 #endif