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