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

itkVTKImageIO.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkVTKImageIO.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:36 $ 00007 Version: $Revision: 1.13 $ 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 Portions of this code are covered under the VTK copyright. 00013 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details. 00014 00015 This software is distributed WITHOUT ANY WARRANTY; without even 00016 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 PURPOSE. See the above copyright notices for more information. 00018 00019 =========================================================================*/ 00020 #ifndef __itkVTKImageIO_h 00021 #define __itkVTKImageIO_h 00022 00023 #ifdef _MSC_VER 00024 #pragma warning ( disable : 4786 ) 00025 #endif 00026 00027 #include <fstream> 00028 #include "itkImageIOBase.h" 00029 00030 00031 namespace itk 00032 { 00033 00039 class ITK_EXPORT VTKImageIO : public ImageIOBase 00040 { 00041 public: 00043 typedef VTKImageIO Self; 00044 typedef ImageIOBase Superclass; 00045 typedef SmartPointer<Self> Pointer; 00046 00048 itkNewMacro(Self); 00049 00051 itkTypeMacro(VTKImageIO, Superclass); 00052 00053 /*-------- This part of the interface deals with reading data. ------ */ 00054 00057 virtual bool CanReadFile(const char*); 00058 00060 virtual void ReadImageInformation(); 00061 00063 virtual void Read(void* buffer); 00064 00065 /*-------- This part of the interfaces deals with writing data. ----- */ 00066 00069 virtual bool CanWriteFile(const char*); 00070 00073 virtual void WriteImageInformation() {}; 00074 00077 virtual void Write(const void* buffer); 00078 00079 protected: 00080 VTKImageIO(); 00081 ~VTKImageIO(); 00082 void PrintSelf(std::ostream& os, Indent indent) const; 00083 00084 bool OpenVTKFileForReading(std::ifstream& os, const char* filename); 00085 bool OpenVTKFileForWriting(std::ofstream& os, const char* filename); 00086 void InternalReadImageInformation(std::ifstream& file); 00087 00088 private: 00089 VTKImageIO(const Self&); //purposely not implemented 00090 void operator=(const Self&); //purposely not implemented 00091 }; 00092 00093 } // end namespace itk 00094 00095 #endif // __itkVTKImageIO_h

Generated at Sat Mar 31 02:34:45 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000