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 =========================================================================*/
47 #ifndef vtkPNMReader_h
48 #define vtkPNMReader_h
49 
50 #include "vtkIOImageModule.h" // For export macro
51 #include "vtkImageReader.h"
52 
53 class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
54 {
55 public:
56  static vtkPNMReader* New();
57  vtkTypeMacro(vtkPNMReader, vtkImageReader);
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
60  int CanReadFile(VTK_FILEPATH const char* fname) override;
64  const char* GetFileExtensions() override { return ".pnm .pgm .ppm"; }
65 
69  const char* GetDescriptiveName() override { return "PNM"; }
70 
71 protected:
72  vtkPNMReader() = default;
73  ~vtkPNMReader() override = default;
74  void ExecuteInformation() override;
75 
76 private:
77  vtkPNMReader(const vtkPNMReader&) = delete;
78  void operator=(const vtkPNMReader&) = delete;
79 };
80 
81 #endif
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:49
read pnm (i.e., portable anymap) files
Definition: vtkPNMReader.h:54
int CanReadFile(VTK_FILEPATH const char *fname) override
vtkPNMReader()=default
const char * GetFileExtensions() override
.pnm .pgm .ppm
Definition: vtkPNMReader.h:64
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:69
static vtkPNMReader * New()
void ExecuteInformation() override
~vtkPNMReader() override=default
#define VTK_FILEPATH