1 /*=========================================================================
4 Module: $RCSfile: gdcmPixelWriteConvert.h,v $
6 Date: $Date: 2005/10/23 15:09:19 $
7 Version: $Revision: 1.7 $
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"
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)
34 class GDCM_EXPORT PixelWriteConvert : public Base
36 friend class FileHelper;
40 virtual ~PixelWriteConvert();
42 // 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 void SetUserData(uint8_t *data, size_t size);
51 /// \brief returns UserData
52 uint8_t *GetUserData() { return UserData; }
53 /// \brief returns UserDataSize
54 size_t GetUserDataSize() { return UserDataSize; }
56 // Get the used image and its size
62 /// Pixel data represented as RGB after LUT color interpretation.
64 /// Size of RGB image.
69 /// Size of User image.
72 } // end namespace gdcm
74 //-----------------------------------------------------------------------------