X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmPixelWriteConvert.h;h=bbdcad271068e231810a184a0b3afd09b9d1cff4;hb=c2975ffb8c79fa4d745368d8d1c317c5a313dd0a;hp=c82cfd5b4bbfd5661866ba9dd2abbebabcf13b30;hpb=f5c7e83afd484a025285c64a09a89bd227087245;p=gdcm.git diff --git a/src/gdcmPixelWriteConvert.h b/src/gdcmPixelWriteConvert.h index c82cfd5b..bbdcad27 100644 --- a/src/gdcmPixelWriteConvert.h +++ b/src/gdcmPixelWriteConvert.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmPixelWriteConvert.h,v $ Language: C++ - Date: $Date: 2004/12/16 13:46:37 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/10/23 15:09:19 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -25,39 +25,48 @@ namespace gdcm { -/* +/** * \brief Utility container for gathering the various forms the pixel data - * migth take during the user demanded processes. + * migth take during the user requiered processes. + * \warning None of the methods may be called by end user (they have no + * meaning outside the class FileHelper) */ class GDCM_EXPORT PixelWriteConvert : public Base { -public: +friend class FileHelper; + +private: PixelWriteConvert(); virtual ~PixelWriteConvert(); // Set/Get of images and their size - void SetReadData(uint8_t* data,size_t size); - uint8_t* GetReadData() { return ReadData; } + + void SetReadData(uint8_t *data, size_t size); + /// \brief returns ReadData + uint8_t *GetReadData() { return ReadData; } + /// \brief returns ReadDataSize size_t GetReadDataSize() { return ReadDataSize; } - void SetUserData(uint8_t* data,size_t size); - uint8_t* GetUserData() { return UserData; } + void SetUserData(uint8_t *data, size_t size); + /// \brief returns UserData + uint8_t *GetUserData() { return UserData; } + /// \brief returns UserDataSize size_t GetUserDataSize() { return UserDataSize; } // Get the used image and its size - uint8_t* GetData(); + uint8_t *GetData(); size_t GetDataSize(); -private: + // Variables /// Pixel data represented as RGB after LUT color interpretation. - uint8_t* ReadData; - /// Size of \ref RGB image. + uint8_t *ReadData; + /// Size of RGB image. size_t ReadDataSize; /// User pixel data - uint8_t* UserData; - /// Size of \ref User image. + uint8_t *UserData; + /// Size of User image. size_t UserDataSize; }; } // end namespace gdcm