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=========================================================================*/
94#ifndef vtkPNMReader_h
95#define vtkPNMReader_h
96
97#include "vtkIOImageModule.h" // For export macro
98#include "vtkImageReader.h"
99
100class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
101{
102public:
103 static vtkPNMReader* New();
105 void PrintSelf(ostream& os, vtkIndent indent) override;
106
107 int CanReadFile(VTK_FILEPATH const char* fname) override;
111 const char* GetFileExtensions() override { return ".pnm .pgm .ppm"; }
112
116 const char* GetDescriptiveName() override { return "PNM"; }
117
118protected:
119 vtkPNMReader() = default;
120 ~vtkPNMReader() override = default;
121 void ExecuteInformation() override;
122
123private:
124 vtkPNMReader(const vtkPNMReader&) = delete;
125 void operator=(const vtkPNMReader&) = delete;
126};
127
128#endif
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:113
read pnm (i.e., portable anymap) files
Definition: vtkPNMReader.h:101
int CanReadFile(VTK_FILEPATH const char *fname) override
vtkPNMReader()=default
const char * GetDescriptiveName() override
PNM.
Definition: vtkPNMReader.h:116
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:111
static vtkPNMReader * New()
~vtkPNMReader() override=default
#define VTK_FILEPATH