VTK  9.1.0
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=========================================================================*/
44#ifndef vtkPNMReader_h
45#define vtkPNMReader_h
46
47#include "vtkIOImageModule.h" // For export macro
48#include "vtkImageReader.h"
49
50class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
51{
52public:
53 static vtkPNMReader* New();
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
57 int CanReadFile(VTK_FILEPATH const char* fname) override;
61 const char* GetFileExtensions() override { return ".pnm .pgm .ppm"; }
62
66 const char* GetDescriptiveName() override { return "PNM"; }
67
68protected:
69 vtkPNMReader() = default;
70 ~vtkPNMReader() override = default;
71 void ExecuteInformation() override;
72
73private:
74 vtkPNMReader(const vtkPNMReader&) = delete;
75 void operator=(const vtkPNMReader&) = delete;
76};
77
78#endif
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:43
read pnm (i.e., portable anymap) files
Definition: vtkPNMReader.h:51
int CanReadFile(VTK_FILEPATH const char *fname) override
vtkPNMReader()=default
const char * GetDescriptiveName() override
PNM.
Definition: vtkPNMReader.h:66
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ExecuteInformation() override
const char * GetFileExtensions() override
.pnm .pgm .ppm
Definition: vtkPNMReader.h:61
static vtkPNMReader * New()
~vtkPNMReader() override=default
#define VTK_FILEPATH