ParaView
vtkPVImageReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVImageReader.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
21 #ifndef vtkPVImageReader_h
22 #define vtkPVImageReader_h
23 
24 #include "vtkPVConfig.h" // for PARAVIEW_USE_MPI
25 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
26 
27 #ifdef PARAVIEW_USE_MPI
28 #include "vtkMPIImageReader.h" // For MPI-enabled builds
29 #else
30 #include "vtkImageReader.h" // For non-MPI builds
31 #endif
32 
33 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVImageReader : public
34 #ifdef PARAVIEW_USE_MPI
35  vtkMPIImageReader
36 #else
37  vtkImageReader
38 #endif
39 {
40 public:
41  static vtkPVImageReader* New();
42 
43 #ifdef PARAVIEW_USE_MPI
44  vtkTypeMacro(vtkPVImageReader, vtkMPIImageReader);
45 #else
46  vtkTypeMacro(vtkPVImageReader, vtkImageReader);
47 #endif
48 
49  virtual int CanReadFile(const char*) { return 1; }
50 
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
53 protected:
56 
57 private:
58  vtkPVImageReader(const vtkPVImageReader&) VTK_DELETE_FUNCTION;
59  void operator=(const vtkPVImageReader&) VTK_DELETE_FUNCTION;
60 };
61 
62 #endif
63 
64 // VTK-HeaderTest-Exclude: vtkPVImageReader.h
ImageReader that automatically switch between vtkMPIImageReader or vtkImageReader based on the build ...
virtual int CanReadFile(const char *)