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=========================================================================*/
41#ifndef vtkImageReader2Factory_h
42#define vtkImageReader2Factory_h
43
44
45#include "vtkIOImageModule.h" // For export macro
46#include "vtkObject.h"
47
48class vtkImageReader2;
50class vtkImageReader2FactoryCleanup;
51
52class VTKIOIMAGE_EXPORT vtkImageReader2Factory : public vtkObject
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent);
58
64
71 static vtkImageReader2* CreateImageReader2(const char* path);
72
78
79protected:
82
83 static void InitializeReaders();
84
85private:
86 static vtkImageReader2Collection* AvailableReaders;
87 vtkImageReader2Factory(const vtkImageReader2Factory&) VTK_DELETE_FUNCTION;
88 void operator=(const vtkImageReader2Factory&) VTK_DELETE_FUNCTION;
89
90 friend class vtkImageReader2FactoryCleanup;
91
92};
93
94#endif
maintain a list of image readers
Superclass of binary file readers.
static void InitializeReaders()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static void GetRegisteredReaders(vtkImageReader2Collection *)
The caller must allocate the vtkImageReader2Collection and pass in the pointer to this method.
static VTK_NEWINSTANCE vtkImageReader2 * CreateImageReader2(const char *path)
open the image file, it is the callers responsibility to call Delete on the returned object.
static void RegisterReader(vtkImageReader2 *r)
registered readers will be queried in CreateImageReader2 to see if they can load a given file.
static vtkImageReader2Factory * New()
Superclass of binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
#define VTK_NEWINSTANCE