GDCM
2.0.18
|
00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 00005 Copyright (c) 2006-2011 Mathieu Malaterre 00006 All rights reserved. 00007 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00014 #ifndef GDCMICONIMAGEFILTER_H 00015 #define GDCMICONIMAGEFILTER_H 00016 00017 #include "gdcmFile.h" 00018 #include "gdcmIconImage.h" 00019 00020 namespace gdcm 00021 { 00022 class IconImageFilterInternals; 00023 00049 class GDCM_EXPORT IconImageFilter 00050 { 00051 public: 00052 IconImageFilter(); 00053 ~IconImageFilter(); 00054 00056 void SetFile(const File& f) { F = f; } 00057 File &GetFile() { return *F; } 00058 const File &GetFile() const { return *F; } 00059 00061 bool Extract(); 00062 00064 unsigned int GetNumberOfIconImages() const; 00065 IconImage& GetIconImage( unsigned int i ) const; 00066 00067 protected: 00068 void ExtractIconImages(); 00069 void ExtractVeproIconImages(); 00070 00071 private: 00072 SmartPointer<File> F; 00073 IconImageFilterInternals *Internals; 00074 }; 00075 00076 } // end namespace gdcm 00077 00078 #endif //GDCMICONIMAGEFILTER_H