VTK
vtkImageReader2Factory.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageReader2Factory.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
40 #ifndef vtkImageReader2Factory_h
41 #define vtkImageReader2Factory_h
42 
43 
44 #include "vtkIOImageModule.h" // For export macro
45 #include "vtkObject.h"
46 
47 class vtkImageReader2;
49 class vtkImageReader2FactoryCleanup;
50 
52 {
53 public:
54  static vtkImageReader2Factory *New();
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
60  static void RegisterReader(vtkImageReader2* r);
61 
64  static vtkImageReader2* CreateImageReader2(const char* path);
65 
67 
69  static void GetRegisteredReaders(vtkImageReader2Collection* );
70 protected:
74 
75  static void InitializeReaders();
76 
77 private:
78  static vtkImageReader2Collection* AvailableReaders;
79  vtkImageReader2Factory(const vtkImageReader2Factory&); // Not implemented.
80  void operator=(const vtkImageReader2Factory&); // Not implemented.
81 //BTX
82  friend class vtkImageReader2FactoryCleanup;
83 //ETX
84 };
85 
86 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
Superclass of binary file readers.
Superclass of binary file readers.
#define VTKIOIMAGE_EXPORT
static vtkObject * New()
maintain a list of image readers