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 =========================================================================*/
35 #ifndef vtkImageReader2Factory_h
36 #define vtkImageReader2Factory_h
37 
38 
39 #include "vtkIOImageModule.h" // For export macro
40 #include "vtkObject.h"
41 
42 class vtkImageReader2;
44 class vtkImageReader2FactoryCleanup;
45 
46 class VTKIOIMAGE_EXPORT vtkImageReader2Factory : public vtkObject
47 {
48 public:
49  static vtkImageReader2Factory *New();
51  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
52 
57  static void RegisterReader(vtkImageReader2* r);
58 
65  static vtkImageReader2* CreateImageReader2(const char* path);
66 
71  static void GetRegisteredReaders(vtkImageReader2Collection* );
72 
73 protected:
75  ~vtkImageReader2Factory() VTK_OVERRIDE;
76 
77  static void InitializeReaders();
78 
79 private:
80  static vtkImageReader2Collection* AvailableReaders;
81  vtkImageReader2Factory(const vtkImageReader2Factory&) VTK_DELETE_FUNCTION;
82  void operator=(const vtkImageReader2Factory&) VTK_DELETE_FUNCTION;
83 
84  friend class vtkImageReader2FactoryCleanup;
85 
86 };
87 
88 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:53
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
Superclass of binary file readers.
#define VTK_NEWINSTANCE
Superclass of binary file readers.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
maintain a list of image readers