Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkMetaImageReader.h

Go to the documentation of this file.
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 =========================================================================*/
00074 #ifndef __vtkMetaImageReader_h
00075 #define __vtkMetaImageReader_h
00076 
00077 #include "vtkImageReader.h"
00078 
00079 class VTK_IO_EXPORT vtkMetaImageReader : public vtkImageReader
00080 {
00081 public:
00082   vtkTypeRevisionMacro(vtkMetaImageReader,vtkImageReader);
00083   void PrintSelf(ostream& os, vtkIndent indent);
00084 
00086   static vtkMetaImageReader *New();
00087 
00089 
00090   virtual void SetFileName(const char* fname);
00091   virtual char* GetFileName() { return this->MHDFileName; }
00093 
00095   virtual int CanReadFile(const char* name);
00096 
00097 protected:
00098   vtkMetaImageReader();
00099   ~vtkMetaImageReader();
00100 
00101   void ExecuteInformation();
00102   int GetFileInformation(const char* fname, int populate);
00103 
00104   vtkSetStringMacro(MHDFileName);
00105   char* MHDFileName;
00106 
00107 private:
00108   vtkMetaImageReader(const vtkMetaImageReader&);  // Not implemented.
00109   void operator=(const vtkMetaImageReader&);  // Not implemented.
00110 };
00111 
00112 #endif
00113 
00114 
00115