#include <vtkMNIObjectReader.h>
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.
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 vtkProperty * | GetProperty () |
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 vtkMNIObjectReader * | SafeDownCast (vtkObject *o) |
static vtkMNIObjectReader * | New () |
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 |
vtkProperty * | Property |
int | FileType |
istream * | InputStream |
int | LineNumber |
char * | LineText |
char * | CharPointer |
vtkMNIObjectReader::vtkMNIObjectReader | ( | ) | [protected] |
vtkMNIObjectReader::~vtkMNIObjectReader | ( | ) | [protected] |
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.
char* vtkMNIObjectReader::FileName [protected] |
Definition at line 115 of file vtkMNIObjectReader.h.
vtkProperty* vtkMNIObjectReader::Property [protected] |
Definition at line 116 of file vtkMNIObjectReader.h.
int vtkMNIObjectReader::FileType [protected] |
Definition at line 117 of file vtkMNIObjectReader.h.
istream* vtkMNIObjectReader::InputStream [protected] |
Definition at line 119 of file vtkMNIObjectReader.h.
int vtkMNIObjectReader::LineNumber [protected] |
Definition at line 120 of file vtkMNIObjectReader.h.
char* vtkMNIObjectReader::LineText [protected] |
Definition at line 121 of file vtkMNIObjectReader.h.
char* vtkMNIObjectReader::CharPointer [protected] |
Definition at line 122 of file vtkMNIObjectReader.h.