X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmPixelWriteConvert.cxx;h=b4f67961000b0600e0a85cca0e6bec4e2d8f58c3;hb=97811f429fdf36ed2d7404e41ce7817c65e96e32;hp=34c5fcdbaa0914b71a296d771bf12e2bfaa1aa47;hpb=7f62d92753e6a3e7f4f15093fb959dcb785d6c46;p=gdcm.git diff --git a/src/gdcmPixelWriteConvert.cxx b/src/gdcmPixelWriteConvert.cxx index 34c5fcdb..b4f67961 100644 --- a/src/gdcmPixelWriteConvert.cxx +++ b/src/gdcmPixelWriteConvert.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmPixelWriteConvert.cxx,v $ Language: C++ - Date: $Date: 2005/02/04 16:51:36 $ - Version: $Revision: 1.7 $ + Date: $Date: 2005/09/21 09:44:59 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -46,8 +46,9 @@ PixelWriteConvert::~PixelWriteConvert() // Public /** * \brief SetReadData - * @param data data - * @param size size + * @param data data (uint8_t is for prototyping. if your data is not uint8_t + * just cast the pointer for calling the method) + * @param size size in bytes */ void PixelWriteConvert::SetReadData(uint8_t *data, size_t size) { @@ -57,8 +58,9 @@ void PixelWriteConvert::SetReadData(uint8_t *data, size_t size) /** * \brief Sets User Data - * @param data data - * @param size size + * @param data data (uint8_t is for prototyping. if your data is not uint8_t + * just cast the pointer for calling the method) + * @param size size in bytes */ void PixelWriteConvert::SetUserData(uint8_t *data, size_t size) { @@ -68,11 +70,12 @@ void PixelWriteConvert::SetUserData(uint8_t *data, size_t size) /** * \brief Get Data (UserData or ReadData) - * @return data data + * @return data (uint8_t is for prototyping. if your data is + * *not* uint8_t, just cast the returned pointer) */ uint8_t *PixelWriteConvert::GetData() { - if(UserData) + if ( UserData ) { return UserData; } @@ -84,11 +87,11 @@ uint8_t *PixelWriteConvert::GetData() /** * \brief Get Data Size (UserData or ReadData) - * @return size size + * @return size size in bytes */ size_t PixelWriteConvert::GetDataSize() { - if(UserData) + if ( UserData ) { return UserDataSize; }