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=========================================================================*/
35#ifndef vtkPNMReader_h
36#define vtkPNMReader_h
37
38#include "vtkIOImageModule.h" // For export macro
39#include "vtkImageReader.h"
40
41class VTKIOIMAGE_EXPORT vtkPNMReader : public vtkImageReader
42{
43public:
44 static vtkPNMReader* New();
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
48 int CanReadFile(VTK_FILEPATH const char* fname) override;
52 const char* GetFileExtensions() override { return ".pnm .pgm .ppm"; }
53
57 const char* GetDescriptiveName() override { return "PNM"; }
58
59protected:
60 vtkPNMReader() = default;
61 ~vtkPNMReader() override = default;
62 void ExecuteInformation() override;
63
64private:
65 vtkPNMReader(const vtkPNMReader&) = delete;
66 void operator=(const vtkPNMReader&) = delete;
67};
68
69#endif
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:34
read pnm (i.e., portable anymap) files
Definition: vtkPNMReader.h:42
int CanReadFile(VTK_FILEPATH const char *fname) override
vtkPNMReader()=default
const char * GetDescriptiveName() override
PNM.
Definition: vtkPNMReader.h:57
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:52
static vtkPNMReader * New()
~vtkPNMReader() override=default
#define VTK_FILEPATH