gdcmPixmapReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004   Module:  $URL$
00005 
00006   Copyright (c) 2006-2009 Mathieu Malaterre
00007   All rights reserved.
00008   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 #ifndef __gdcmPixmapReader_h
00016 #define __gdcmPixmapReader_h
00017 
00018 #include "gdcmReader.h"
00019 #include "gdcmPixmap.h"
00020 
00021 namespace gdcm
00022 {
00023 
00024 class ByteValue;
00025 class MediaStorage;
00036 class GDCM_EXPORT PixmapReader : public Reader
00037 {
00038 public:
00039   PixmapReader();
00040   ~PixmapReader();
00041 
00045   
00046   bool Read();
00047 
00048   // Following methods are valid only after a call to 'Read'
00049 
00051   const Pixmap& GetPixmap() const;
00052   Pixmap& GetPixmap();
00053   //void SetPixamp(Pixmap const &pix);
00054 
00055 protected:
00056   const ByteValue* GetPointerFromElement(Tag const &tag) const;
00057   virtual bool ReadImage(MediaStorage const &ms);
00058   virtual bool ReadACRNEMAImage();
00059   
00060   // ugliest thing ever:
00061   signed short ReadSSFromTag( Tag const &t, std::stringstream &ss,
00062     std::string &conversion );
00063   unsigned short ReadUSFromTag( Tag const &t, std::stringstream &ss,
00064     std::string &conversion );
00065   int ReadISFromTag( Tag const &t, std::stringstream &ss,
00066     std::string &conversion );
00067 
00068   SmartPointer<Pixmap> PixelData;
00069 };
00070 
00076 } // end namespace gdcm
00077 
00078 #endif //__gdcmPixmapReader_h
00079 

Generated on Wed Jun 30 13:49:14 2010 for GDCM by doxygen 1.6.3
SourceForge.net Logo