X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmPixelWriteConvert.cxx;h=9258fc143d51e80b2d65e28001956a6e9fee0d51;hb=df99daa8d66c7ecf2076169c92c109610fe7b00f;hp=e5f8ae9d0192f831e44d7ec81f266f16755b631b;hpb=9ca0e4bb2208be93bebf21d0c5d75c8018e7605a;p=gdcm.git diff --git a/src/gdcmPixelWriteConvert.cxx b/src/gdcmPixelWriteConvert.cxx index e5f8ae9d..9258fc14 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/06/24 10:55:59 $ - Version: $Revision: 1.9 $ + Date: $Date: 2005/10/23 15:09:19 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -45,10 +45,10 @@ PixelWriteConvert::~PixelWriteConvert() //----------------------------------------------------------------------------- // Public /** - * \brief SetReadData + * \brief sets Read Data (and 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 + * @param size data size, in bytes */ void PixelWriteConvert::SetReadData(uint8_t *data, size_t size) { @@ -57,10 +57,16 @@ void PixelWriteConvert::SetReadData(uint8_t *data, size_t size) } /** - * \brief Sets User Data + * \brief Sets the internal pointer to the caller's inData + * image representation, BUT WITHOUT COPYING THE DATA. + * - 'image' Pixels are presented as C-like 2D arrays : line per line. + * - 'volume'Pixels are presented as C-like 3D arrays : plane per plane + * \warning Since the pixels are not copied, it is the caller's responsability + * not to deallocate its data before gdcm uses them (e.g. with + * the Write() method ) * @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 + * @param size size, in bytes. */ void PixelWriteConvert::SetUserData(uint8_t *data, size_t size) { @@ -70,8 +76,8 @@ void PixelWriteConvert::SetUserData(uint8_t *data, size_t size) /** * \brief Get Data (UserData or ReadData) - * @return data data data (uint8_t is for prototyping. if your data is not uint8_t - * just cast the returned pointer) + * @return data (uint8_t is for prototyping. if your data is + * *not* uint8_t, just cast the returned pointer) */ uint8_t *PixelWriteConvert::GetData() { @@ -87,7 +93,7 @@ uint8_t *PixelWriteConvert::GetData() /** * \brief Get Data Size (UserData or ReadData) - * @return size size in bytes + * @return size, in bytes. */ size_t PixelWriteConvert::GetDataSize() {