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

A reader for MNI surface mesh files. More...

#include <vtkMNIObjectReader.h>

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

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkMNIObjectReaderNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual int CanReadFile (const char *name)
virtual vtkPropertyGetProperty ()
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 vtkMNIObjectReaderSafeDownCast (vtkObjectBase *o)
static vtkMNIObjectReaderNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkMNIObjectReader ()
 ~vtkMNIObjectReader ()
int ReadLine (char *text, unsigned int length)
int SkipWhitespace ()
int ParseValues (vtkDataArray *array, vtkIdType n)
int ParseIdValue (vtkIdType *value)
int ReadNumberOfPoints (vtkIdType *numCells)
int ReadNumberOfCells (vtkIdType *numCells)
int ReadProperty (vtkProperty *property)
int ReadLineThickness (vtkProperty *property)
int ReadPoints (vtkPolyData *polyData, vtkIdType numPoints)
int ReadNormals (vtkPolyData *polyData, vtkIdType numPoints)
int ReadColors (vtkProperty *property, vtkPolyData *data, vtkIdType numPoints, vtkIdType numCells)
int ReadCells (vtkPolyData *data, vtkIdType numCells, int cellType)
int ReadPolygonObject (vtkPolyData *output)
int ReadLineObject (vtkPolyData *output)
virtual int ReadFile (vtkPolyData *output)
virtual int RequestData (vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)

Protected Attributes

char * FileName
vtkPropertyProperty
int FileType
istream * InputStream
int LineNumber
char * LineText
char * CharPointer

Detailed Description

A reader for MNI surface mesh files.

The MNI .obj file format is used to store geometrical data. This file format was developed at the McConnell Brain Imaging Centre at the Montreal Neurological Institute and is used by their software. Only polygon and line files are supported by this reader, but for those formats, all data elements are read including normals, colors, and surface properties. ASCII and binary file types are supported.

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

Definition at line 80 of file vtkMNIObjectReader.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 83 of file vtkMNIObjectReader.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkMNIObjectReader::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 vtkPolyDataAlgorithm.

virtual int vtkMNIObjectReader::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 vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

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

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

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

Reimplemented from vtkPolyDataAlgorithm.

virtual void vtkMNIObjectReader::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 vtkPolyDataAlgorithm.

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

Set the file name.

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

Set the file name.

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

Get the entension for this file format.

Definition at line 96 of file vtkMNIObjectReader.h.

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

Get the name of this file format.

Definition at line 102 of file vtkMNIObjectReader.h.

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

Test whether the specified file can be read.

virtual vtkProperty* vtkMNIObjectReader::GetProperty ( ) [inline, virtual]

Get the property associated with the object.

Definition at line 110 of file vtkMNIObjectReader.h.

int vtkMNIObjectReader::ReadLine ( char *  text,
unsigned int  length 
) [protected]
int vtkMNIObjectReader::ParseValues ( vtkDataArray array,
vtkIdType  n 
) [protected]
int vtkMNIObjectReader::ReadProperty ( vtkProperty property) [protected]
int vtkMNIObjectReader::ReadPoints ( vtkPolyData polyData,
vtkIdType  numPoints 
) [protected]
int vtkMNIObjectReader::ReadNormals ( vtkPolyData polyData,
vtkIdType  numPoints 
) [protected]
int vtkMNIObjectReader::ReadColors ( vtkProperty property,
vtkPolyData data,
vtkIdType  numPoints,
vtkIdType  numCells 
) [protected]
int vtkMNIObjectReader::ReadCells ( vtkPolyData data,
vtkIdType  numCells,
int  cellType 
) [protected]
virtual int vtkMNIObjectReader::ReadFile ( vtkPolyData output) [protected, virtual]
virtual int vtkMNIObjectReader::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.


Member Data Documentation

char* vtkMNIObjectReader::FileName [protected]

Definition at line 116 of file vtkMNIObjectReader.h.

Definition at line 117 of file vtkMNIObjectReader.h.

Definition at line 118 of file vtkMNIObjectReader.h.

istream* vtkMNIObjectReader::InputStream [protected]

Definition at line 120 of file vtkMNIObjectReader.h.

Definition at line 121 of file vtkMNIObjectReader.h.

char* vtkMNIObjectReader::LineText [protected]

Definition at line 122 of file vtkMNIObjectReader.h.

Definition at line 123 of file vtkMNIObjectReader.h.


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