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

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

#include <vtkMNIObjectWriter.h>

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

List of all members.

Public Types

typedef vtkWriter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkMNIObjectWriterNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual const char * GetFileExtensions ()
virtual const char * GetDescriptiveName ()
virtual void SetProperty (vtkProperty *property)
virtual vtkPropertyGetProperty ()
virtual void SetMapper (vtkMapper *mapper)
virtual vtkMapperGetMapper ()
virtual void SetLookupTable (vtkLookupTable *table)
virtual vtkLookupTableGetLookupTable ()
vtkPolyDataGetInput ()
vtkPolyDataGetInput (int port)
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual void SetFileType (int)
virtual int GetFileType ()
void SetFileTypeToASCII ()
void SetFileTypeToBinary ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkMNIObjectWriterSafeDownCast (vtkObjectBase *o)
static vtkMNIObjectWriterNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkMNIObjectWriter ()
 ~vtkMNIObjectWriter ()
int WriteObjectType (int objType)
int WriteValues (vtkDataArray *array)
int WriteIdValue (vtkIdType value)
int WriteNewline ()
int WriteProperty (vtkProperty *property)
int WriteLineThickness (vtkProperty *property)
int WritePoints (vtkPolyData *polyData)
int WriteNormals (vtkPolyData *polyData)
int WriteColors (vtkProperty *property, vtkMapper *mapper, vtkPolyData *data)
int WriteCells (vtkPolyData *data, int cellType)
int WritePolygonObject (vtkPolyData *output)
int WriteLineObject (vtkPolyData *output)
void WriteData ()
virtual int FillInputPortInformation (int port, vtkInformation *info)
ostream * OpenFile ()
void CloseFile (ostream *fp)

Protected Attributes

vtkPropertyProperty
vtkMapperMapper
vtkLookupTableLookupTable
ostream * OutputStream
char * FileName
int FileType

Detailed Description

A writer 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 writer. For these formats, all data elements are written including normals, colors, and surface properties. ASCII and binary file types are supported.

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

Definition at line 81 of file vtkMNIObjectWriter.h.


Member Typedef Documentation

Reimplemented from vtkWriter.

Definition at line 84 of file vtkMNIObjectWriter.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkMNIObjectWriter::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 vtkWriter.

virtual int vtkMNIObjectWriter::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 vtkWriter.

Reimplemented from vtkWriter.

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

Reimplemented from vtkWriter.

Reimplemented from vtkWriter.

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

Reimplemented from vtkAlgorithm.

virtual void vtkMNIObjectWriter::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 vtkWriter.

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

Get the entension for this file format.

Definition at line 91 of file vtkMNIObjectWriter.h.

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

Get the name of this file format.

Definition at line 97 of file vtkMNIObjectWriter.h.

virtual void vtkMNIObjectWriter::SetProperty ( vtkProperty property) [virtual]

Set the property associated with the object. Optional. This is useful for exporting an actor.

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

Set the property associated with the object. Optional. This is useful for exporting an actor.

Definition at line 105 of file vtkMNIObjectWriter.h.

virtual void vtkMNIObjectWriter::SetMapper ( vtkMapper mapper) [virtual]

Set the mapper associated with the object. Optional. This is useful for exporting an actor with the same colors that are used to display the actor within VTK.

virtual vtkMapper* vtkMNIObjectWriter::GetMapper ( ) [inline, virtual]

Set the mapper associated with the object. Optional. This is useful for exporting an actor with the same colors that are used to display the actor within VTK.

Definition at line 113 of file vtkMNIObjectWriter.h.

virtual void vtkMNIObjectWriter::SetLookupTable ( vtkLookupTable table) [virtual]

Set the lookup table associated with the object. This will be used to convert scalar values to colors, if a mapper is not set.

virtual vtkLookupTable* vtkMNIObjectWriter::GetLookupTable ( ) [inline, virtual]

Set the lookup table associated with the object. This will be used to convert scalar values to colors, if a mapper is not set.

Definition at line 120 of file vtkMNIObjectWriter.h.

Get the input to this writer.

Reimplemented from vtkWriter.

Get the input to this writer.

Reimplemented from vtkWriter.

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

Specify file name of vtk polygon data file to write.

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

Specify file name of vtk polygon data file to write.

virtual void vtkMNIObjectWriter::SetFileType ( int  ) [virtual]

Specify file type (ASCII or BINARY) for vtk data file.

virtual int vtkMNIObjectWriter::GetFileType ( ) [virtual]

Specify file type (ASCII or BINARY) for vtk data file.

Specify file type (ASCII or BINARY) for vtk data file.

Definition at line 139 of file vtkMNIObjectWriter.h.

Specify file type (ASCII or BINARY) for vtk data file.

Definition at line 140 of file vtkMNIObjectWriter.h.

int vtkMNIObjectWriter::WriteObjectType ( int  objType) [protected]
int vtkMNIObjectWriter::WriteProperty ( vtkProperty property) [protected]
int vtkMNIObjectWriter::WritePoints ( vtkPolyData polyData) [protected]
int vtkMNIObjectWriter::WriteNormals ( vtkPolyData polyData) [protected]
int vtkMNIObjectWriter::WriteColors ( vtkProperty property,
vtkMapper mapper,
vtkPolyData data 
) [protected]
int vtkMNIObjectWriter::WriteCells ( vtkPolyData data,
int  cellType 
) [protected]
void vtkMNIObjectWriter::WriteData ( ) [protected, virtual]

Implements vtkWriter.

virtual int vtkMNIObjectWriter::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkAlgorithm.

ostream* vtkMNIObjectWriter::OpenFile ( ) [protected]
void vtkMNIObjectWriter::CloseFile ( ostream *  fp) [protected]

Member Data Documentation

Definition at line 147 of file vtkMNIObjectWriter.h.

Definition at line 148 of file vtkMNIObjectWriter.h.

Definition at line 149 of file vtkMNIObjectWriter.h.

ostream* vtkMNIObjectWriter::OutputStream [protected]

Definition at line 151 of file vtkMNIObjectWriter.h.

char* vtkMNIObjectWriter::FileName [protected]

Definition at line 170 of file vtkMNIObjectWriter.h.

Definition at line 172 of file vtkMNIObjectWriter.h.


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