Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gdcmPixelWriteConvert.h

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmPixelWriteConvert.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/01/11 15:15:38 $
00007   Version:   $Revision: 1.6 $
00008                                                                                 
00009   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
00010   l'Image). All rights reserved. See Doc/License.txt or
00011   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
00012                                                                                 
00013      This software is distributed WITHOUT ANY WARRANTY; without even
00014      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00015      PURPOSE.  See the above copyright notices for more information.
00016                                                                                 
00017 =========================================================================*/
00018 
00019 
00020 #ifndef GDCMPIXELWRITECONVERT_H
00021 #define GDCMPIXELWRITECONVERT_H
00022 
00023 #include "gdcmCommon.h"
00024 #include "gdcmBase.h"
00025 
00026 namespace gdcm
00027 {
00032 class GDCM_EXPORT PixelWriteConvert : public Base
00033 {
00034 public:
00035    PixelWriteConvert();
00036    virtual ~PixelWriteConvert();
00037 
00038    // Set/Get of images and their size
00039    void SetReadData(uint8_t *data,size_t size);
00040    uint8_t *GetReadData() { return ReadData; }
00041    size_t   GetReadDataSize() { return ReadDataSize; }
00042 
00043    void SetUserData(uint8_t *data,size_t size);
00044    uint8_t *GetUserData() { return UserData; }
00045    size_t   GetUserDataSize() { return UserDataSize; }
00046 
00047    // Get the used image and its size
00048    uint8_t *GetData();
00049    size_t   GetDataSize();
00050 
00051 private:
00052 // Variables
00054    uint8_t *ReadData;
00056    size_t   ReadDataSize;
00057 
00059    uint8_t *UserData;
00061    size_t   UserDataSize;
00062 };
00063 } // end namespace gdcm
00064 
00065 //-----------------------------------------------------------------------------
00066 #endif

Generated on Thu Feb 10 22:17:59 2005 for gdcm by doxygen 1.3.6