Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::PNGImageIO Class Reference
[Input and Output Filters]

ImageIO object for reading and writing PNG images. More...

#include <itkPNGImageIO.h>

Inheritance diagram for itk::PNGImageIO:

Inheritance graph
[legend]
Collaboration diagram for itk::PNGImageIO:

Collaboration graph
[legend]
List of all members.

Public Types

typedef PNGImageIO Self
typedef ImageIOBase Superclass
typedef SmartPointer< SelfPointer

Public Member Functions

virtual const char * GetNameOfClass () const
virtual bool CanReadFile (const char *)
virtual void ReadImageInformation ()
virtual void Read (void *buffer)
virtual void ReadVolume (void *buffer)
virtual bool CanWriteFile (const char *)
virtual void WriteImageInformation ()
virtual void Write (const void *buffer)
virtual void SetCompressionLevel (int _arg)
virtual int GetCompressionLevel ()

Static Public Member Functions

Pointer New ()

Protected Member Functions

 PNGImageIO ()
 ~PNGImageIO ()
void PrintSelf (std::ostream &os, Indent indent) const
void WriteSlice (const std::string &fileName, const void *buffer)

Protected Attributes

int m_CompressionLevel

Detailed Description

ImageIO object for reading and writing PNG images.

Definition at line 36 of file itkPNGImageIO.h.


Member Typedef Documentation

typedef SmartPointer<Self> itk::PNGImageIO::Pointer
 

Reimplemented from itk::ImageIOBase.

Definition at line 42 of file itkPNGImageIO.h.

typedef PNGImageIO itk::PNGImageIO::Self
 

Standard class typedefs.

Reimplemented from itk::ImageIOBase.

Definition at line 40 of file itkPNGImageIO.h.

typedef ImageIOBase itk::PNGImageIO::Superclass
 

Reimplemented from itk::ImageIOBase.

Definition at line 41 of file itkPNGImageIO.h.


Constructor & Destructor Documentation

itk::PNGImageIO::PNGImageIO  )  [protected]
 

itk::PNGImageIO::~PNGImageIO  )  [protected]
 


Member Function Documentation

virtual bool itk::PNGImageIO::CanReadFile const char *   )  [virtual]
 

Determine the file type. Returns true if this ImageIO can read the file specified.

Implements itk::ImageIOBase.

virtual bool itk::PNGImageIO::CanWriteFile const char *   )  [virtual]
 

Determine the file type. Returns true if this ImageIO can read the file specified.

Implements itk::ImageIOBase.

virtual int itk::PNGImageIO::GetCompressionLevel  )  [virtual]
 

Set/Get the level of compression for the output images. 0-9; 0 = none, 9 = maximum.

virtual const char* itk::PNGImageIO::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::ImageIOBase.

Pointer itk::PNGImageIO::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::LightProcessObject.

void itk::PNGImageIO::PrintSelf std::ostream &  os,
Indent  indent
const [protected, 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 itk::ImageIOBase.

virtual void itk::PNGImageIO::Read void *  buffer  )  [virtual]
 

Reads the data from disk into the memory buffer provided.

Implements itk::ImageIOBase.

virtual void itk::PNGImageIO::ReadImageInformation  )  [virtual]
 

Set the spacing and diemention information for the set filename.

Implements itk::ImageIOBase.

virtual void itk::PNGImageIO::ReadVolume void *  buffer  )  [virtual]
 

Reads 3D data from multiple files assuming one slice per file.

virtual void itk::PNGImageIO::SetCompressionLevel int  _arg  )  [virtual]
 

Set/Get the level of compression for the output images. 0-9; 0 = none, 9 = maximum.

virtual void itk::PNGImageIO::Write const void *  buffer  )  [virtual]
 

Writes the data to disk from the memory buffer provided. Make sure that the IORegion has been set properly.

Implements itk::ImageIOBase.

virtual void itk::PNGImageIO::WriteImageInformation  )  [virtual]
 

Writes the spacing and dimentions of the image. Assumes SetFileName has been called with a valid file name.

Implements itk::ImageIOBase.

void itk::PNGImageIO::WriteSlice const std::string &  fileName,
const void *  buffer
[protected]
 


Member Data Documentation

int itk::PNGImageIO::m_CompressionLevel [protected]
 

Determines the level of compression for written files. Range 0-9; 0 = none, 9 = maximum , default = 4

Definition at line 94 of file itkPNGImageIO.h.


The documentation for this class was generated from the following file:
Generated at Thu May 25 02:05:51 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000