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

itk::PNGImageIO Class Reference

#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 Methods

virtual const char * GetClassName () const
virtual void SetUseCompression (bool _arg)
virtual bool CanReadFile (const char *)
virtual void ReadImageInformation ()
virtual const std::type_info & GetPixelType () const
virtual void Read (void *buffer)
virtual void ReadVolume (void *buffer)
virtual unsigned int GetComponentSize () const
virtual bool CanWriteFile (const char *)
virtual void WriteImageInformation ()
virtual void Write (const void *buffer)
virtual void SetCompressionLevel (int _arg)
virtual int GetCompressionLevel ()

Static Public Methods

Pointer New ()

Protected Methods

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

Protected Attributes

bool m_UseCompression
int m_CompressionLevel

Member Typedef Documentation

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

Reimplemented from itk::ImageIOBase.

Definition at line 36 of file itkPNGImageIO.h.

typedef PNGImageIO itk::PNGImageIO::Self
 

Standard class typedefs.

Reimplemented from itk::ImageIOBase.

Definition at line 34 of file itkPNGImageIO.h.

typedef ImageIOBase itk::PNGImageIO::Superclass
 

Reimplemented from itk::ImageIOBase.

Definition at line 35 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 const char* itk::PNGImageIO::GetClassName   const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::ImageIOBase.

virtual unsigned int itk::PNGImageIO::GetComponentSize   const [virtual]
 

Compute the size (in bytes) of the components of a pixel. For example, and RGB pixel of unsigned char would have a component size of 1 byte.

Reimplemented from 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 std::type_info& itk::PNGImageIO::GetPixelType   const [virtual]
 

Get the type of the pixel.

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::SetUseCompression bool    _arg [virtual]
 

Set if the compression should be used for writing

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 std::string &    fileName,
const void *    buffer,
unsigned long    offset
[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 104 of file itkPNGImageIO.h.

bool itk::PNGImageIO::m_UseCompression [protected]
 

Set if the compression should be used for writing the value is false by default

Definition at line 100 of file itkPNGImageIO.h.


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:20:59 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000