Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

IO/vtkImageReader2Factory.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageReader2Factory.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00055 #ifndef __vtkImageReader2Factory_h
00056 #define __vtkImageReader2Factory_h
00057 
00058 
00059 #include "vtkObject.h"
00060 class vtkImageReader2Collection;
00061 class vtkImageReader2;
00062 
00063 class VTK_IO_EXPORT vtkImageReader2Factory : public vtkObject
00064 {
00065 public:
00066   static vtkImageReader2Factory *New();
00067   vtkTypeRevisionMacro(vtkImageReader2Factory,vtkObject);
00068   void PrintSelf(ostream& os, vtkIndent indent);   
00069   
00072   static void RegisterReader(vtkImageReader2* r);
00073   
00076   static vtkImageReader2* CreateImageReader2(const char* path); 
00077 
00080   static void GetRegisteredReaders(vtkImageReader2Collection* );
00081 protected:
00082   vtkImageReader2Factory();
00083   ~vtkImageReader2Factory();
00084 
00085   static void InitializeReaders();
00086 
00087 private:
00088   static vtkImageReader2Collection* AvailiableReaders;
00089   vtkImageReader2Factory(const vtkImageReader2Factory&);  // Not implemented.
00090   void operator=(const vtkImageReader2Factory&);  // Not implemented.
00091 //BTX
00092   friend class vtkCleanUpImageReader2Factory;
00093 //ETX
00094 };
00095 
00096 #endif