A reader for MNI transformation files.
More...
#include <vtkMNITransformReader.h>
List of all members.
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 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 (vtkObject *o) |
static vtkMNITransformReader * | New () |
Protected Member Functions |
| 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 |
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 75 of file vtkMNITransformReader.h.
Member Typedef Documentation
Constructor & Destructor Documentation
vtkMNITransformReader::vtkMNITransformReader |
( |
| ) |
[protected] |
vtkMNITransformReader::~vtkMNITransformReader |
( |
| ) |
[protected] |
Member Function Documentation
virtual const char* vtkMNITransformReader::GetClassName |
( |
| ) |
[virtual] |
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.
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] |
virtual char* vtkMNITransformReader::GetFileName |
( |
| ) |
[virtual] |
virtual const char* vtkMNITransformReader::GetFileExtensions |
( |
| ) |
[inline, virtual] |
virtual const char* vtkMNITransformReader::GetDescriptiveName |
( |
| ) |
[inline, virtual] |
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.
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.
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] |
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
The documentation for this class was generated from the following file: