gdcmPixmapReader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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
00049
00051 const Pixmap& GetPixmap() const;
00052 Pixmap& GetPixmap();
00053
00054
00055 protected:
00056 const ByteValue* GetPointerFromElement(Tag const &tag) const;
00057 virtual bool ReadImage(MediaStorage const &ms);
00058 virtual bool ReadACRNEMAImage();
00059
00060
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 }
00077
00078 #endif //__gdcmPixmapReader_h
00079