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

A reader for MNI transformation files. More...

#include <vtkMNITransformReader.h>

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

List of all members.

Public Types

typedef vtkAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkMNITransformReaderNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual int CanReadFile (const char *name)
virtual int GetNumberOfTransforms ()
virtual vtkAbstractTransformGetNthTransform (int i)
virtual vtkAbstractTransformGetTransform ()
virtual const char * GetComments ()
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual const char * GetFileExtensions ()
virtual const char * GetDescriptiveName ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkMNITransformReaderSafeDownCast (vtkObjectBase *o)
static vtkMNITransformReaderNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkMNITransformReader ()
 ~vtkMNITransformReader ()
void SetTransform (vtkAbstractTransform *transform)
int ReadLine (istream &infile, char result[256])
int ReadLineAfterComments (istream &infile, char result[256])
int SkipWhitespace (istream &infile, char linetext[256], char **cpp)
int ParseLeftHandSide (istream &infile, char linetext[256], char **cpp, char identifier[256])
int ParseStringValue (istream &infile, char linetext[256], char **cpp, char data[256])
int ParseFloatValues (istream &infile, char linetext[256], char **cpp, vtkDoubleArray *array)
int ParseInvertFlagValue (istream &infile, char linetext[256], char **cpp, int *invertFlag)
int ReadLinearTransform (istream &infile, char linetext[256], char **cp)
int ReadThinPlateSplineTransform (istream &infile, char linetext[256], char **cp)
int ReadGridTransform (istream &infile, char linetext[256], char **cp)
virtual int ReadNextTransform (istream &infile, char linetext[256])
virtual int ReadFile ()
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)

Protected Attributes

char * FileName
vtkAbstractTransformTransform
vtkCollectionTransforms
int LineNumber
char * Comments

Detailed Description

A reader 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:
vtkMINCImageReader vtkMNITransformWriter
Thanks:
Thanks to David Gobbi for writing this class and Atamai Inc. for contributing it to VTK.
Tests:
vtkMNITransformReader (Tests)

Definition at line 76 of file vtkMNITransformReader.h.


Member Typedef Documentation

Reimplemented from vtkAlgorithm.

Definition at line 79 of file vtkMNITransformReader.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkMNITransformReader::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 vtkMNITransformReader::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* vtkMNITransformReader::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 vtkMNITransformReader::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 vtkMNITransformReader::SetFileName ( const char *  ) [virtual]

Set the file name.

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

Set the file name.

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

Get the entension for this file format.

Definition at line 92 of file vtkMNITransformReader.h.

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

Get the name of this file format.

Definition at line 98 of file vtkMNITransformReader.h.

virtual int vtkMNITransformReader::CanReadFile ( const char *  name) [virtual]

Test whether the specified file can be read.

Get the number of transforms in the file.

Get one of the transforms listed in the file.

Get the transform that results from concatenating all of the transforms in the file. This will return null if you have not specified a file name.

virtual const char* vtkMNITransformReader::GetComments ( ) [virtual]

Get any comments that are included in the file.

void vtkMNITransformReader::SetTransform ( vtkAbstractTransform transform) [protected]
int vtkMNITransformReader::ReadLine ( istream &  infile,
char  result[256] 
) [protected]
int vtkMNITransformReader::ReadLineAfterComments ( istream &  infile,
char  result[256] 
) [protected]
int vtkMNITransformReader::SkipWhitespace ( istream &  infile,
char  linetext[256],
char **  cpp 
) [protected]
int vtkMNITransformReader::ParseLeftHandSide ( istream &  infile,
char  linetext[256],
char **  cpp,
char  identifier[256] 
) [protected]
int vtkMNITransformReader::ParseStringValue ( istream &  infile,
char  linetext[256],
char **  cpp,
char  data[256] 
) [protected]
int vtkMNITransformReader::ParseFloatValues ( istream &  infile,
char  linetext[256],
char **  cpp,
vtkDoubleArray array 
) [protected]
int vtkMNITransformReader::ParseInvertFlagValue ( istream &  infile,
char  linetext[256],
char **  cpp,
int invertFlag 
) [protected]
int vtkMNITransformReader::ReadLinearTransform ( istream &  infile,
char  linetext[256],
char **  cp 
) [protected]
int vtkMNITransformReader::ReadThinPlateSplineTransform ( istream &  infile,
char  linetext[256],
char **  cp 
) [protected]
int vtkMNITransformReader::ReadGridTransform ( istream &  infile,
char  linetext[256],
char **  cp 
) [protected]
virtual int vtkMNITransformReader::ReadNextTransform ( istream &  infile,
char  linetext[256] 
) [protected, virtual]
virtual int vtkMNITransformReader::ReadFile ( ) [protected, virtual]
virtual int vtkMNITransformReader::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 123 of file vtkMNITransformReader.h.

Definition at line 124 of file vtkMNITransformReader.h.

Definition at line 125 of file vtkMNITransformReader.h.

Definition at line 126 of file vtkMNITransformReader.h.

Definition at line 127 of file vtkMNITransformReader.h.


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