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