Documentation for vtkDataWriter

vtkDataWriter - helper class for objects that write vtk data files

Super Class: vtkWriter

Description:

vtkDataWriter is a helper class that opens and writes the vtk header and point data (e.g., scalars, vectors, normals, etc.) from a vtk data file. See text for various formats.

 

See Also:

vtkDataSetWriter vtkPolyDataWriter vtkStructuredGridWriter vtkStructuredPointsWriter vtkUnstructuredGridWriter vtkFieldDataWriter vtkRectilinearGridWriter

 

Methods:

void vtkDataWriter ()
void vtkDataWriter ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkDataWriter *New ()
void SetFileName (char *)
char *GetFileName ()
void SetHeader (char *)
char *GetHeader ()
void SetFileType (int )
int GetFileType ()
void SetFileTypeToASCII ()
void SetFileTypeToBinary ()
void SetScalarsName (char *)
char *GetScalarsName ()
void SetVectorsName (char *)
char *GetVectorsName ()
void SetTensorsName (char *)
char *GetTensorsName ()
void SetNormalsName (char *)
char *GetNormalsName ()
void SetTCoordsName (char *)
char *GetTCoordsName ()
void SetLookupTableName (char *)
char *GetLookupTableName ()
void SetFieldDataName (char *)
char *GetFieldDataName ()
unknown *OpenVTKFile ()
int WriteHeader (unknown *)
int WritePoints (unknown * ,vtkPoints *)
int WriteCoordinates (unknown * ,vtkScalars * ,int )
int WriteCells (unknown * ,vtkCellArray * ,char *)
int WriteCellData (unknown * ,vtkDataSet *)
int WritePointData (unknown * ,vtkDataSet *)
int WriteFieldData (unknown * ,vtkFieldData *)
void CloseVTKFile (unknown *)
void WriteData ()
int WriteArray (unknown * ,int ,vtkDataArray * ,char * ,int ,int )
int WriteScalarData (unknown * ,vtkScalars * ,int )
int WriteVectorData (unknown * ,vtkVectors * ,int )
int WriteNormalData (unknown * ,vtkNormals * ,int )
int WriteTCoordData (unknown * ,vtkTCoords * ,int )
int WriteTensorData (unknown * ,vtkTensors * ,int )

 

Detailed Method Descriptions:

Created object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates.

static vtkDataWriter *New ()

Specify file name of vtk polygon data file to write.

void SetFileName (char *)
char *GetFileName ()

Specify the header for the vtk data file.

void SetHeader (char *)
char *GetHeader ()

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

void SetFileType (int )
int GetFileType ()
void SetFileTypeToASCII ()
void SetFileTypeToBinary ()

Give a name to the scalar data. If not specified, uses default name "scalars".

void SetScalarsName (char *)
char *GetScalarsName ()

Give a name to the vector data. If not specified, uses default name "vectors".

void SetVectorsName (char *)
char *GetVectorsName ()

Give a name to the tensors data. If not specified, uses default name "tensors".

void SetTensorsName (char *)
char *GetTensorsName ()

Give a name to the normals data. If not specified, uses default name "normals".

void SetNormalsName (char *)
char *GetNormalsName ()

Give a name to the texture coordinates data. If not specified, uses default name "textureCoords".

void SetTCoordsName (char *)
char *GetTCoordsName ()

Give a name to the lookup table. If not specified, uses default name "lookupTable".

void SetLookupTableName (char *)
char *GetLookupTableName ()

Give a name to the field data. If not specified, uses default name "field".

void SetFieldDataName (char *)
char *GetFieldDataName ()

Open a vtk data file. Returns NULL if error.

unknown *OpenVTKFile ()

Write the header of a vtk data file. Returns 0 if error.

int WriteHeader (unknown *)

Write out the points of the data set.

int WritePoints (unknown * ,vtkPoints *)

Write out coordinates for rectilinear grids.

int WriteCoordinates (unknown * ,vtkScalars * ,int )

Write out the cells of the data set.

int WriteCells (unknown * ,vtkCellArray * ,char *)

Write the cell data (e.g., scalars, vectors, ...) of a vtk dataset. Returns 0 if error.

int WriteCellData (unknown * ,vtkDataSet *)

Write the point data (e.g., scalars, vectors, ...) of a vtk dataset. Returns 0 if error.

int WritePointData (unknown * ,vtkDataSet *)

Write out the field data.

int WriteFieldData (unknown * ,vtkFieldData *)

Close a vtk file.

void CloseVTKFile (unknown *)