Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkWriter Class Reference

mitkWriter - an abstract class represents a writer More...

#include <mitkWriter.h>

Inherits mitkTarget.

Inherited by mitkMeshWriter, mitkRawDataWriter, and mitkVolumeWriter.

Inheritance diagram for mitkWriter:

Inheritance graph
[legend]
Collaboration diagram for mitkWriter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void PrintSelf (ostream &os)
void AddFileName (const char *inFileName)
void SortFileNames ()

Detailed Description

mitkWriter - an abstract class represents a writer

mitkWriter defines the interface of all of the writers. To use a concrete writer, for example, mitkBMPWriter, the code snippet is:

    mitkBMPWriter *aWriter = new mitkBMPWriter; 
    aWriter->SetInput(aVolume); 
    int imageNum = aVolume->GetImageNum(); 
    Gerenate file names into files[imageNum]; 
    for(int i = 0; i < imageNum; i++) 
        aWriter->AddFileName(files[i]); 
    aWriter->Run(); 


Member Function Documentation

void mitkWriter::AddFileName const char *  inFileName  ) 
 

Add a file into the internal list for writing these files.

Parameters:
inFileName C string for the file name.

virtual void mitkWriter::PrintSelf ostream &  os  )  [virtual]
 

Print the necessary information about this object for the debugging purpose.

Parameters:
os The specified ostream to output information.

Reimplemented from mitkTarget.

Reimplemented in mitkAnalyzeImageWriter, mitkBMPWriter, mitkCacheVolumeWriter, mitkDICOMWriter, mitkJPEGWriter, mitkMeshWriter, mitkMetaImageWriter, mitkNetCDFImageWriter, mitkPLYASCIIWriter, mitkPLYBinaryWriter, mitkRawFilesWriter, mitkRawWriter, mitkSTLASCIIWriter, mitkSTLBinaryWriter, mitkTIFFWriter, mitkVolumeWriter, mitkRawDataWriter, and mitkTrackedBscanDataWriter.

void mitkWriter::SortFileNames  ) 
 

Sort all the file names alphabetically.


The documentation for this class was generated from the following file:
Generated on Tue Feb 25 15:07:49 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3