00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMetaImageReader.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/ 00064 #ifndef __vtkMetaImageReader_h 00065 #define __vtkMetaImageReader_h 00066 00067 #include "vtkImageReader.h" 00068 00069 class VTK_IO_EXPORT vtkMetaImageReader : public vtkImageReader 00070 { 00071 public: 00072 vtkTypeRevisionMacro(vtkMetaImageReader,vtkImageReader); 00073 void PrintSelf(ostream& os, vtkIndent indent); 00074 00076 static vtkMetaImageReader *New(); 00077 00079 00080 virtual void SetFileName(const char* fname); 00081 virtual char* GetFileName() { return this->MHDFileName; } 00083 00085 virtual int CanReadFile(const char* name); 00086 00087 protected: 00088 vtkMetaImageReader(); 00089 ~vtkMetaImageReader(); 00090 00091 virtual int RequestInformation(vtkInformation* request, 00092 vtkInformationVector** inputVector, 00093 vtkInformationVector* outputVector); 00094 00095 int GetFileInformation(const char* fname, int populate); 00096 00097 vtkSetStringMacro(MHDFileName); 00098 char* MHDFileName; 00099 00100 private: 00101 vtkMetaImageReader(const vtkMetaImageReader&); // Not implemented. 00102 void operator=(const vtkMetaImageReader&); // Not implemented. 00103 }; 00104 00105 #endif 00106 00107 00108