VTK  9.2.6
vtkPNMReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPNMReader.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 =========================================================================*/
97 #ifndef vtkPNMReader_h
98 #define vtkPNMReader_h
99 
100 #include "vtkIOImageModule.h" // For export macro
101 #include "vtkImageReader.h"
102 
103 class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
104 {
105 public:
106  static vtkPNMReader* New();
107  vtkTypeMacro(vtkPNMReader, vtkImageReader);
108  void PrintSelf(ostream& os, vtkIndent indent) override;
109 
110  int CanReadFile(VTK_FILEPATH const char* fname) override;
114  const char* GetFileExtensions() override { return ".pnm .pgm .ppm"; }
115 
119  const char* GetDescriptiveName() override { return "PNM"; }
120 
121 protected:
122  vtkPNMReader() = default;
123  ~vtkPNMReader() override = default;
124  void ExecuteInformation() override;
125 
126 private:
127  vtkPNMReader(const vtkPNMReader&) = delete;
128  void operator=(const vtkPNMReader&) = delete;
129 };
130 
131 #endif
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:119
read pnm (i.e., portable anymap) files
Definition: vtkPNMReader.h:104
int CanReadFile(VTK_FILEPATH const char *fname) override
vtkPNMReader()=default
const char * GetFileExtensions() override
.pnm .pgm .ppm
Definition: vtkPNMReader.h:114
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetDescriptiveName() override
PNM.
Definition: vtkPNMReader.h:119
static vtkPNMReader * New()
void ExecuteInformation() override
~vtkPNMReader() override=default
#define VTK_FILEPATH