Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkJPEGImageIO.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkJPEGImageIO.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/03/29 18:39:28 $
00007   Version:   $Revision: 1.6 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkJPEGImageIO_h
00018 #define __itkJPEGImageIO_h
00019 
00020 #ifdef _MSC_VER
00021 #pragma warning ( disable : 4786 )
00022 #endif
00023 
00024 #include "itkImageIOBase.h"
00025 
00026 namespace itk
00027 {
00028 
00036 class ITK_EXPORT JPEGImageIO : public ImageIOBase
00037 {
00038 public:
00040   typedef JPEGImageIO        Self;
00041   typedef ImageIOBase        Superclass;
00042   typedef SmartPointer<Self> Pointer;
00043 
00045   itkNewMacro(Self);
00046 
00048   itkTypeMacro(JPEGImageIO, ImageIOBase);
00049 
00051   itkSetMacro(Quality, int);
00052   itkGetMacro(Quality, int);
00054 
00056   itkSetMacro(Progressive, bool);
00057   itkGetMacro(Progressive, bool);
00059 
00060   /*-------- This part of the interface deals with reading data. ------ */
00061 
00064   virtual bool CanReadFile(const char*);
00065 
00067   virtual void ReadImageInformation();
00068 
00070   virtual void Read(void* buffer);
00071 
00073   virtual void ReadVolume(void* buffer);
00074 
00075   /*-------- This part of the interfaces deals with writing data. ----- */
00076 
00079   virtual bool CanWriteFile(const char*);
00080 
00083   virtual void WriteImageInformation();
00084 
00087   virtual void Write(const void* buffer);
00088 
00089 protected:
00090   JPEGImageIO();
00091   ~JPEGImageIO();
00092   void PrintSelf(std::ostream& os, Indent indent) const;
00093 
00094   void WriteSlice(std::string& fileName, const void* buffer);
00095 
00098   int m_Quality;
00099 
00101   bool m_Progressive;
00102 
00103 private:
00104   JPEGImageIO(const Self&); //purposely not implemented
00105   void operator=(const Self&); //purposely not implemented
00106 
00107 
00108 };
00109 
00110 } // end namespace itk
00111 
00112 #endif // __itkJPEGImageIO_h
00113 

Generated at Wed Nov 5 22:33:14 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000