#include <vtkMNIObjectWriter.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 writer. For these formats, all data elements are written including normals, colors, and surface properties. ASCII and binary file types are supported.
Definition at line 80 of file vtkMNIObjectWriter.h.
Public Types | |
typedef vtkPolyDataWriter | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual const char * | GetFileExtensions () |
virtual const char * | GetDescriptiveName () |
virtual void | SetProperty (vtkProperty *property) |
virtual vtkProperty * | GetProperty () |
virtual void | SetMapper (vtkMapper *mapper) |
virtual vtkMapper * | GetMapper () |
virtual void | SetLookupTable (vtkLookupTable *table) |
virtual vtkLookupTable * | GetLookupTable () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkMNIObjectWriter * | SafeDownCast (vtkObject *o) |
static vtkMNIObjectWriter * | New () |
Protected Member Functions | |
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 () |
Protected Attributes | |
vtkProperty * | Property |
vtkMapper * | Mapper |
vtkLookupTable * | LookupTable |
ostream * | OutputStream |
vtkMNIObjectWriter::vtkMNIObjectWriter | ( | ) | [protected] |
vtkMNIObjectWriter::~vtkMNIObjectWriter | ( | ) | [protected] |
virtual const char* vtkMNIObjectWriter::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkPolyDataWriter.
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 vtkPolyDataWriter.
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 vtkPolyDataWriter.
static vtkMNIObjectWriter* vtkMNIObjectWriter::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkPolyDataWriter.
static vtkMNIObjectWriter* vtkMNIObjectWriter::New | ( | ) | [static] |
Created object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates.
Reimplemented from vtkPolyDataWriter.
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 vtkPolyDataWriter.
virtual const char* vtkMNIObjectWriter::GetFileExtensions | ( | ) | [inline, virtual] |
Get the entension for this file format.
Definition at line 90 of file vtkMNIObjectWriter.h.
virtual const char* vtkMNIObjectWriter::GetDescriptiveName | ( | ) | [inline, virtual] |
Get the name of this file format.
Definition at line 96 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 104 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 112 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 119 of file vtkMNIObjectWriter.h.
int vtkMNIObjectWriter::WriteObjectType | ( | int | objType | ) | [protected] |
int vtkMNIObjectWriter::WriteValues | ( | vtkDataArray * | array | ) | [protected] |
int vtkMNIObjectWriter::WriteIdValue | ( | vtkIdType | value | ) | [protected] |
int vtkMNIObjectWriter::WriteNewline | ( | ) | [protected] |
int vtkMNIObjectWriter::WriteProperty | ( | vtkProperty * | property | ) | [protected] |
int vtkMNIObjectWriter::WriteLineThickness | ( | 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] |
int vtkMNIObjectWriter::WritePolygonObject | ( | vtkPolyData * | output | ) | [protected] |
int vtkMNIObjectWriter::WriteLineObject | ( | vtkPolyData * | output | ) | [protected] |
void vtkMNIObjectWriter::WriteData | ( | ) | [protected, virtual] |
Reimplemented from vtkPolyDataWriter.
vtkProperty* vtkMNIObjectWriter::Property [protected] |
Definition at line 126 of file vtkMNIObjectWriter.h.
vtkMapper* vtkMNIObjectWriter::Mapper [protected] |
Definition at line 127 of file vtkMNIObjectWriter.h.
vtkLookupTable* vtkMNIObjectWriter::LookupTable [protected] |
Definition at line 128 of file vtkMNIObjectWriter.h.
ostream* vtkMNIObjectWriter::OutputStream [protected] |
Definition at line 130 of file vtkMNIObjectWriter.h.