VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkMNITransformWriter Class Reference

A writer for MNI transformation files. More...

#include <vtkMNITransformWriter.h>

Inheritance diagram for vtkMNITransformWriter:
Inheritance graph
[legend]
Collaboration diagram for vtkMNITransformWriter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkMNITransformWriterNewInstance () const
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 (vtkObjectBase *o)
static vtkMNITransformWriterNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 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

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 78 of file vtkMNITransformWriter.h.


Member Typedef Documentation

Reimplemented from vtkAlgorithm.

Definition at line 81 of file vtkMNITransformWriter.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkAlgorithm.

virtual vtkObjectBase* vtkMNITransformWriter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkAlgorithm.

Reimplemented from vtkAlgorithm.

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 94 of file vtkMNITransformWriter.h.

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

Get the name of this file format.

Definition at line 100 of file vtkMNITransformWriter.h.

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

Set the transform.

Set the transform.

Definition at line 107 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.

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 131 of file vtkMNITransformWriter.h.

Definition at line 132 of file vtkMNITransformWriter.h.

Definition at line 133 of file vtkMNITransformWriter.h.

Definition at line 134 of file vtkMNITransformWriter.h.


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