VTK
dox/IO/Image/vtkImageReader2Factory.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageReader2Factory.h
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 =========================================================================*/
00040 #ifndef __vtkImageReader2Factory_h
00041 #define __vtkImageReader2Factory_h
00042 
00043 
00044 #include "vtkIOImageModule.h" // For export macro
00045 #include "vtkObject.h"
00046 
00047 class vtkImageReader2;
00048 class vtkImageReader2Collection;
00049 class vtkImageReader2FactoryCleanup;
00050 
00051 class VTKIOIMAGE_EXPORT vtkImageReader2Factory : public vtkObject
00052 {
00053 public:
00054   static vtkImageReader2Factory *New();
00055   vtkTypeMacro(vtkImageReader2Factory,vtkObject);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00060   static void RegisterReader(vtkImageReader2* r);
00061 
00064   static vtkImageReader2* CreateImageReader2(const char* path);
00065 
00067 
00069   static void GetRegisteredReaders(vtkImageReader2Collection* );
00070 protected:
00071   vtkImageReader2Factory();
00072   ~vtkImageReader2Factory();
00074 
00075   static void InitializeReaders();
00076 
00077 private:
00078   static vtkImageReader2Collection* AvailableReaders;
00079   vtkImageReader2Factory(const vtkImageReader2Factory&);  // Not implemented.
00080   void operator=(const vtkImageReader2Factory&);  // Not implemented.
00081 //BTX
00082   friend class vtkImageReader2FactoryCleanup;
00083 //ETX
00084 };
00085 
00086 #endif