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