vtkMNITransformWriter Class Reference

#include <vtkMNITransformWriter.h>

Inheritance diagram for vtkMNITransformWriter:

Inheritance graph
[legend]
Collaboration diagram for vtkMNITransformWriter:

Collaboration graph
[legend]

List of all members.


Detailed Description

A writer for MNI transformation files.

The MNI .xfm file format is used to store geometrical transformations. Three kinds of transformations are supported by the file format: affine, thin-plate spline, and grid transformations. This file format was developed at the McConnell Brain Imaging Centre at the Montreal Neurological Institute and is used by their software.

See also:
vtkMINCImageWriter vtkMNITransformReader
Thanks:
Thanks to David Gobbi for writing this class and Atamai Inc. for contributing it to VTK.
Tests:
vtkMNITransformWriter (Tests)

Definition at line 77 of file vtkMNITransformWriter.h.


Public Types

typedef vtkAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void AddTransform (vtkAbstractTransform *transform)
virtual int GetNumberOfTransforms ()
virtual void Write ()
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual const char * GetFileExtensions ()
virtual const char * GetDescriptiveName ()
virtual void SetTransform (vtkAbstractTransform *transform)
virtual vtkAbstractTransformGetTransform ()
virtual void SetComments (const char *)
virtual char * GetComments ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkMNITransformWriterSafeDownCast (vtkObject *o)
static vtkMNITransformWriterNew ()

Protected Member Functions

 vtkMNITransformWriter ()
 ~vtkMNITransformWriter ()
int WriteLinearTransform (ostream &outfile, vtkHomogeneousTransform *transform)
int WriteThinPlateSplineTransform (ostream &outfile, vtkThinPlateSplineTransform *transform)
int WriteGridTransform (ostream &outfile, vtkGridTransform *transform)
virtual int WriteTransform (ostream &outfile, vtkAbstractTransform *transform)
virtual int WriteFile ()
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)

Protected Attributes

char * FileName
vtkAbstractTransformTransform
vtkCollectionTransforms
char * Comments

Member Typedef Documentation

Reimplemented from vtkAlgorithm.

Definition at line 80 of file vtkMNITransformWriter.h.


Constructor & Destructor Documentation

vtkMNITransformWriter::vtkMNITransformWriter (  )  [protected]

vtkMNITransformWriter::~vtkMNITransformWriter (  )  [protected]


Member Function Documentation

virtual const char* vtkMNITransformWriter::GetClassName (  )  [virtual]

Reimplemented from vtkAlgorithm.

static int vtkMNITransformWriter::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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkAlgorithm.

virtual int vtkMNITransformWriter::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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkAlgorithm.

static vtkMNITransformWriter* vtkMNITransformWriter::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkAlgorithm.

static vtkMNITransformWriter* vtkMNITransformWriter::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkAlgorithm.

virtual void vtkMNITransformWriter::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 vtkAlgorithm.

virtual void vtkMNITransformWriter::SetFileName ( const char *   )  [virtual]

Set the file name.

virtual char* vtkMNITransformWriter::GetFileName (  )  [virtual]

Set the file name.

virtual const char* vtkMNITransformWriter::GetFileExtensions (  )  [inline, virtual]

Get the entension for this file format.

Definition at line 93 of file vtkMNITransformWriter.h.

virtual const char* vtkMNITransformWriter::GetDescriptiveName (  )  [inline, virtual]

Get the name of this file format.

Definition at line 99 of file vtkMNITransformWriter.h.

virtual void vtkMNITransformWriter::SetTransform ( vtkAbstractTransform transform  )  [virtual]

Set the transform.

virtual vtkAbstractTransform* vtkMNITransformWriter::GetTransform (  )  [inline, virtual]

Set the transform.

Definition at line 106 of file vtkMNITransformWriter.h.

virtual void vtkMNITransformWriter::AddTransform ( vtkAbstractTransform transform  )  [virtual]

Add another transform to the file. The next time that SetTransform is called, all added transforms will be removed.

virtual int vtkMNITransformWriter::GetNumberOfTransforms (  )  [virtual]

Get the number of transforms that will be written.

virtual void vtkMNITransformWriter::SetComments ( const char *   )  [virtual]

Set comments to be added to the file.

virtual char* vtkMNITransformWriter::GetComments (  )  [virtual]

Set comments to be added to the file.

virtual void vtkMNITransformWriter::Write (  )  [virtual]

Write the file.

int vtkMNITransformWriter::WriteLinearTransform ( ostream &  outfile,
vtkHomogeneousTransform transform 
) [protected]

int vtkMNITransformWriter::WriteThinPlateSplineTransform ( ostream &  outfile,
vtkThinPlateSplineTransform transform 
) [protected]

int vtkMNITransformWriter::WriteGridTransform ( ostream &  outfile,
vtkGridTransform transform 
) [protected]

virtual int vtkMNITransformWriter::WriteTransform ( ostream &  outfile,
vtkAbstractTransform transform 
) [protected, virtual]

virtual int vtkMNITransformWriter::WriteFile (  )  [protected, virtual]

virtual int vtkMNITransformWriter::ProcessRequest ( vtkInformation request,
vtkInformationVector **  inInfo,
vtkInformationVector outInfo 
) [protected, virtual]

Upstream/Downstream requests form the generalized interface through which executives invoke a algorithm's functionality. Upstream requests correspond to information flow from the algorithm's outputs to its inputs. Downstream requests correspond to information flow from the algorithm's inputs to its outputs. A downstream request is defined by the contents of the request information object. The input to the request is stored in the input information vector passed to ProcessRequest. The results of an downstream request are stored in the output information vector passed to ProcessRequest. An upstream request is defined by the contents of the request information object. The input to the request is stored in the output information vector passed to ProcessRequest. The results of an upstream request are stored in the input information vector passed to ProcessRequest. It returns the boolean status of the pipeline (false means failure).

Reimplemented from vtkAlgorithm.


Member Data Documentation

Definition at line 130 of file vtkMNITransformWriter.h.

Definition at line 131 of file vtkMNITransformWriter.h.

Definition at line 132 of file vtkMNITransformWriter.h.

Definition at line 133 of file vtkMNITransformWriter.h.


The documentation for this class was generated from the following file:

Generated on Wed Aug 24 11:48:40 2011 for VTK by  doxygen 1.5.6