VTK
|
A reader for MNI transformation files. More...
#include <vtkMNITransformReader.h>
Public Types | |
typedef vtkAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkMNITransformReader * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | CanReadFile (const char *name) |
virtual int | GetNumberOfTransforms () |
virtual vtkAbstractTransform * | GetNthTransform (int i) |
virtual vtkAbstractTransform * | GetTransform () |
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 vtkMNITransformReader * | SafeDownCast (vtkObjectBase *o) |
static vtkMNITransformReader * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () 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 |
vtkAbstractTransform * | Transform |
vtkCollection * | Transforms |
int | LineNumber |
char * | Comments |
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.
Definition at line 76 of file vtkMNITransformReader.h.
Reimplemented from vtkAlgorithm.
Definition at line 79 of file vtkMNITransformReader.h.
vtkMNITransformReader::vtkMNITransformReader | ( | ) | [protected] |
vtkMNITransformReader::~vtkMNITransformReader | ( | ) | [protected] |
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.
static vtkMNITransformReader* vtkMNITransformReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkAlgorithm.
virtual vtkObjectBase* vtkMNITransformReader::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkAlgorithm.
Reimplemented from vtkAlgorithm.
static vtkMNITransformReader* vtkMNITransformReader::New | ( | ) | [static] |
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.
virtual int vtkMNITransformReader::GetNumberOfTransforms | ( | ) | [virtual] |
Get the number of transforms in the file.
virtual vtkAbstractTransform* vtkMNITransformReader::GetNthTransform | ( | int | i | ) | [virtual] |
Get one of the transforms listed in the file.
virtual vtkAbstractTransform* vtkMNITransformReader::GetTransform | ( | ) | [virtual] |
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.
char* vtkMNITransformReader::FileName [protected] |
Definition at line 123 of file vtkMNITransformReader.h.
vtkAbstractTransform* vtkMNITransformReader::Transform [protected] |
Definition at line 124 of file vtkMNITransformReader.h.
vtkCollection* vtkMNITransformReader::Transforms [protected] |
Definition at line 125 of file vtkMNITransformReader.h.
int vtkMNITransformReader::LineNumber [protected] |
Definition at line 126 of file vtkMNITransformReader.h.
char* vtkMNITransformReader::Comments [protected] |
Definition at line 127 of file vtkMNITransformReader.h.