X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmPixelWriteConvert.cxx;h=fc15bfb52eb3046bdf572222a67297fba22eada1;hb=9b08ef2e93023e33dad3326a0c7d6b5db7b72cd4;hp=8e74c339ba2afb3820bee0a506a4522848c2bb2c;hpb=327dfe7647e3720b0f3125f9b19397cb9afc0ed3;p=gdcm.git diff --git a/src/gdcmPixelWriteConvert.cxx b/src/gdcmPixelWriteConvert.cxx index 8e74c339..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/01/06 20:03:28 $ - Version: $Revision: 1.3 $ + 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 @@ -16,47 +16,63 @@ =========================================================================*/ -////////////////// TEMPORARY NOTE -// look for "fixMem" and convert that to a member of this class -// Removing the prefix fixMem and dealing with allocations should do the trick -// -// grep PixelWriteConvert everywhere and clean up ! - #include "gdcmDebug.h" #include "gdcmPixelWriteConvert.h" -#include namespace gdcm { //----------------------------------------------------------------------------- // Constructor / Destructor +/** + * \brief Constructor + */ PixelWriteConvert::PixelWriteConvert() { - ReadData = 0; + ReadData = 0; ReadDataSize = 0; - UserData = 0; + UserData = 0; UserDataSize = 0; } +/** + * \brief Destructor + */ PixelWriteConvert::~PixelWriteConvert() { } //----------------------------------------------------------------------------- // Public -void PixelWriteConvert::SetReadData(uint8_t *data,size_t size) +/** + * \brief SetReadData + * @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) { ReadData = data; ReadDataSize = size; } -void PixelWriteConvert::SetUserData(uint8_t *data,size_t 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) { UserData = data; UserDataSize = 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) + */ uint8_t *PixelWriteConvert::GetData() { if(UserData) @@ -69,6 +85,10 @@ uint8_t *PixelWriteConvert::GetData() } } +/** + * \brief Get Data Size (UserData or ReadData) + * @return size size in bytes + */ size_t PixelWriteConvert::GetDataSize() { if(UserData) @@ -81,5 +101,14 @@ size_t PixelWriteConvert::GetDataSize() } } +//----------------------------------------------------------------------------- +// Protected + +//----------------------------------------------------------------------------- +// Private + +//----------------------------------------------------------------------------- +// Print + //----------------------------------------------------------------------------- } // end namespace gdcm