X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmPixelWriteConvert.cxx;h=fc15bfb52eb3046bdf572222a67297fba22eada1;hb=f3bcf3d7b3296dbf3509e8da12d0f400de4346e1;hp=645d03abb7e4c69375e7d6fd4f19d9fc1d012b18;hpb=d1c68c2c2ae9fadf927053150f7fbc625a7c7366;p=gdcm.git diff --git a/src/gdcmPixelWriteConvert.cxx b/src/gdcmPixelWriteConvert.cxx index 645d03ab..fc15bfb5 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/01 10:29:56 $ - Version: $Revision: 1.6 $ + Date: $Date: 2005/02/16 11:20:51 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -24,14 +24,14 @@ namespace gdcm //----------------------------------------------------------------------------- // Constructor / Destructor /** - * \brief Construcror + * \brief Constructor */ PixelWriteConvert::PixelWriteConvert() { - ReadData = 0; + ReadData = 0; ReadDataSize = 0; - UserData = 0; + UserData = 0; UserDataSize = 0; } @@ -46,29 +46,32 @@ 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) +void PixelWriteConvert::SetReadData(uint8_t *data, size_t size) { ReadData = data; ReadDataSize = size; } /** - * \brief SetUserData - * @param data data - * @param size size + * \brief Sets User Data + * @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) +void PixelWriteConvert::SetUserData(uint8_t *data, size_t size) { UserData = data; UserDataSize = size; } /** - * \brief GetData - * @return data + * \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) */ uint8_t *PixelWriteConvert::GetData() { @@ -83,8 +86,8 @@ uint8_t *PixelWriteConvert::GetData() } /** - * \brief GetDataSize - * @return size + * \brief Get Data Size (UserData or ReadData) + * @return size size in bytes */ size_t PixelWriteConvert::GetDataSize() {