1 /*=========================================================================
4 Module: $RCSfile: gdcmPixelWriteConvert.h,v $
6 Date: $Date: 2007/08/22 16:14:04 $
7 Version: $Revision: 1.11 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
20 #ifndef _GDCMPIXELWRITECONVERT_H_
21 #define _GDCMPIXELWRITECONVERT_H_
23 #include "gdcmCommon.h"
26 namespace GDCM_NAME_SPACE
29 * \brief Utility container for gathering the various forms the pixel data
30 * migth take during the user requiered processes.
31 * \warning None of the methods may be called by end user (they have no
32 * meaning outside the class FileHelper)
35 class GDCM_EXPORT PixelWriteConvert : public Base
37 friend class FileHelper;
41 virtual ~PixelWriteConvert();
43 // Set/Get of images and their size
44 void SetReadData(uint8_t *data, size_t size);
45 /// \brief returns ReadData
46 uint8_t *GetReadData() { return ReadData; }
47 /// \brief returns ReadDataSize
48 size_t GetReadDataSize() { return ReadDataSize; }
50 /// \brief Set UserData
51 void SetUserData(uint8_t *data, size_t size);
52 /// \brief returns UserData
53 uint8_t *GetUserData() { return UserData; }
54 /// \brief returns UserDataSize
55 size_t GetUserDataSize() { return UserDataSize; }
57 // Get the used image and its size
61 void SetCompressJPEG2000UserData(uint8_t *data, size_t size, File *image);
62 void SetCompressJPEGUserData(uint8_t *data, size_t size, File *image);
65 /// Pixel data represented as RGB after LUT color interpretation.
67 /// Size of RGB image.
72 /// Size of User image.
75 /// Whether we want to write compressed or not
78 } // end namespace gdcm
80 //-----------------------------------------------------------------------------