VTK
9.0.1
IO
Image
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
41
class
VTKIOIMAGE_EXPORT
vtkPNMReader
:
public
vtkImageReader
42
{
43
public
:
44
static
vtkPNMReader
*
New
();
45
vtkTypeMacro(
vtkPNMReader
,
vtkImageReader
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
47
48
int
CanReadFile
(
const
char
* fname)
override
;
52
const
char
*
GetFileExtensions
()
override
{
return
".pnm .pgm .ppm"
; }
53
57
const
char
*
GetDescriptiveName
()
override
{
return
"PNM"
; }
58
59
protected
:
60
vtkPNMReader
() {}
61
~vtkPNMReader
()
override
{}
62
void
ExecuteInformation
()
override
;
63
64
private
:
65
vtkPNMReader
(
const
vtkPNMReader
&) =
delete
;
66
void
operator=(
const
vtkPNMReader
&) =
delete
;
67
};
68
69
#endif
vtkPNMReader::vtkPNMReader
vtkPNMReader()
Definition:
vtkPNMReader.h:60
vtkImageReader
Superclass of transformable binary file readers.
Definition:
vtkImageReader.h:38
vtkPNMReader::GetDescriptiveName
const char * GetDescriptiveName() override
PNM.
Definition:
vtkPNMReader.h:57
vtkImageReader::New
static vtkImageReader * New()
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkImageReader2::ExecuteInformation
virtual void ExecuteInformation()
vtkPNMReader::~vtkPNMReader
~vtkPNMReader() override
Definition:
vtkPNMReader.h:61
vtkPNMReader
read pnm (i.e., portable anymap) files
Definition:
vtkPNMReader.h:41
vtkImageReader.h
vtkImageReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageReader::CanReadFile
int CanReadFile(const char *) override
vtkImageReader itself can read raw binary files.
Definition:
vtkImageReader.h:97
vtkPNMReader::GetFileExtensions
const char * GetFileExtensions() override
.pnm .pgm .ppm
Definition:
vtkPNMReader.h:52
Generated on Thu Jun 25 2020 08:30:53 for VTK by
1.8.17