vtkMNIObjectReader Class Reference

#include <vtkMNIObjectReader.h>

Inheritance diagram for vtkMNIObjectReader:

Inheritance graph
[legend]
Collaboration diagram for vtkMNIObjectReader:

Collaboration graph
[legend]

List of all members.


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 79 of file vtkMNIObjectReader.h.


Public Types

typedef vtkPolyDataAlgorithm 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 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 (vtkObject *o)
static vtkMNIObjectReaderNew ()

Protected Member Functions

 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

Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 82 of file vtkMNIObjectReader.h.


Constructor & Destructor Documentation

vtkMNIObjectReader::vtkMNIObjectReader (  )  [protected]

vtkMNIObjectReader::~vtkMNIObjectReader (  )  [protected]


Member Function Documentation

virtual const char* vtkMNIObjectReader::GetClassName (  )  [virtual]

Reimplemented from vtkPolyDataAlgorithm.

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.

static vtkMNIObjectReader* vtkMNIObjectReader::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkPolyDataAlgorithm.

static vtkMNIObjectReader* vtkMNIObjectReader::New (  )  [static]

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 95 of file vtkMNIObjectReader.h.

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

Get the name of this file format.

Definition at line 101 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 109 of file vtkMNIObjectReader.h.

int vtkMNIObjectReader::ReadLine ( char *  text,
unsigned int  length 
) [protected]

int vtkMNIObjectReader::SkipWhitespace (  )  [protected]

int vtkMNIObjectReader::ParseValues ( vtkDataArray array,
vtkIdType  n 
) [protected]

int vtkMNIObjectReader::ParseIdValue ( vtkIdType value  )  [protected]

int vtkMNIObjectReader::ReadNumberOfPoints ( vtkIdType numCells  )  [protected]

int vtkMNIObjectReader::ReadNumberOfCells ( vtkIdType numCells  )  [protected]

int vtkMNIObjectReader::ReadProperty ( vtkProperty property  )  [protected]

int vtkMNIObjectReader::ReadLineThickness ( 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]

int vtkMNIObjectReader::ReadPolygonObject ( vtkPolyData output  )  [protected]

int vtkMNIObjectReader::ReadLineObject ( vtkPolyData output  )  [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 115 of file vtkMNIObjectReader.h.

Definition at line 116 of file vtkMNIObjectReader.h.

Definition at line 117 of file vtkMNIObjectReader.h.

istream* vtkMNIObjectReader::InputStream [protected]

Definition at line 119 of file vtkMNIObjectReader.h.

Definition at line 120 of file vtkMNIObjectReader.h.

char* vtkMNIObjectReader::LineText [protected]

Definition at line 121 of file vtkMNIObjectReader.h.

Definition at line 122 of file vtkMNIObjectReader.h.


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

Generated on Wed Aug 24 11:48:31 2011 for VTK by  doxygen 1.5.6