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

vtkImageReader2Factory.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageReader2Factory.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 =========================================================================*/
00051 #ifndef __vtkImageReader2Factory_h
00052 #define __vtkImageReader2Factory_h
00053 
00054 
00055 #include "vtkObject.h"
00056 class vtkImageReader2Collection;
00057 class vtkImageReader2;
00058 
00059 class VTK_IO_EXPORT vtkImageReader2Factory : public vtkObject
00060 {
00061 public:
00062   static vtkImageReader2Factory *New();
00063   vtkTypeRevisionMacro(vtkImageReader2Factory,vtkObject);
00064   void PrintSelf(ostream& os, vtkIndent indent);   
00065   
00068   static void RegisterReader(vtkImageReader2* r);
00069   
00072   static vtkImageReader2* CreateImageReader2(const char* path); 
00073 
00076   static void GetRegisteredReaders(vtkImageReader2Collection* );
00077 protected:
00078   vtkImageReader2Factory();
00079   ~vtkImageReader2Factory();
00080 
00081   static void InitializeReaders();
00082 
00083 private:
00084   static vtkImageReader2Collection* AvailiableReaders;
00085   vtkImageReader2Factory(const vtkImageReader2Factory&);  // Not implemented.
00086   void operator=(const vtkImageReader2Factory&);  // Not implemented.
00087 //BTX
00088   friend class vtkCleanUpImageReader2Factory;
00089 //ETX
00090 };
00091 
00092 #endif