#include <vtkPNMReader.h>
vtkPNMReader is a source object that reads pnm (portable anymap) files. This includes .pbm (bitmap), .pgm (grayscale), and .ppm (pixmap) files. (Currently this object only reads binary versions of these files.)
PNMReader creates structured point datasets. The dimension of the dataset depends upon the number of files read. Reading a single file results in a 2D image, while reading more than one file results in a 3D volume.
To read a volume, files must be of the form "FileName.<number>" (e.g., foo.ppm.0, foo.ppm.1, ...). You must also specify the DataExtent. The fifth and sixth values of the DataExtent specify the beginning and ending files to read.
Definition at line 42 of file vtkPNMReader.h.
Public Types | |
typedef vtkImageReader | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
int | CanReadFile (const char *fname) |
virtual const char * | GetFileExtensions () |
virtual const char * | GetDescriptiveName () |
Static Public Member Functions | |
static vtkPNMReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkPNMReader * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPNMReader () | |
~vtkPNMReader () | |
void | ExecuteInformation () |
vtkPNMReader::vtkPNMReader | ( | ) | [inline, protected] |
Definition at line 67 of file vtkPNMReader.h.
vtkPNMReader::~vtkPNMReader | ( | ) | [inline, protected] |
Definition at line 68 of file vtkPNMReader.h.
static vtkPNMReader* vtkPNMReader::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkImageReader.
virtual const char* vtkPNMReader::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkImageReader.
static int vtkPNMReader::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkImageReader.
virtual int vtkPNMReader::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkImageReader.
static vtkPNMReader* vtkPNMReader::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkImageReader.
virtual void vtkPNMReader::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkImageReader.
int vtkPNMReader::CanReadFile | ( | const char * | fname | ) |
virtual const char* vtkPNMReader::GetFileExtensions | ( | ) | [inline, virtual] |
virtual const char* vtkPNMReader::GetDescriptiveName | ( | ) | [inline, virtual] |
void vtkPNMReader::ExecuteInformation | ( | ) | [protected, virtual] |
Reimplemented from vtkImageReader2.