#include <vtkDataWriter.h>
Inheritance diagram for vtkDataWriter:
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.
Definition at line 39 of file vtkDataWriter.h.
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
static vtkDataWriter * | New () |
Public Types | |
typedef vtkWriter | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual ostream * | OpenVTKFile () |
int | WriteHeader (ostream *fp) |
int | WritePoints (ostream *fp, vtkPoints *p) |
int | WriteCoordinates (ostream *fp, vtkDataArray *coords, int axes) |
int | WriteCells (ostream *fp, vtkCellArray *cells, const char *label) |
int | WriteCellData (ostream *fp, vtkDataSet *ds) |
int | WritePointData (ostream *fp, vtkDataSet *ds) |
int | WriteFieldData (ostream *fp, vtkFieldData *f) |
int | WriteDataSetData (ostream *fp, vtkDataSet *ds) |
void | CloseVTKFile (ostream *fp) |
virtual void | SetWriteToOutputString (int) |
virtual int | GetWriteToOutputString () |
virtual void | WriteToOutputStringOn () |
virtual void | WriteToOutputStringOff () |
virtual int | GetOutputStringLength () |
virtual char * | GetOutputString () |
unsigned char * | GetBinaryOutputString () |
char * | RegisterAndGetOutputString () |
virtual void | SetHeader (const char *) |
virtual char * | GetHeader () |
virtual void | SetFileType (int) |
virtual int | GetFileType () |
void | SetFileTypeToASCII () |
void | SetFileTypeToBinary () |
virtual void | SetScalarsName (const char *) |
virtual char * | GetScalarsName () |
virtual void | SetVectorsName (const char *) |
virtual char * | GetVectorsName () |
virtual void | SetTensorsName (const char *) |
virtual char * | GetTensorsName () |
virtual void | SetNormalsName (const char *) |
virtual char * | GetNormalsName () |
virtual void | SetTCoordsName (const char *) |
virtual char * | GetTCoordsName () |
virtual void | SetLookupTableName (const char *) |
virtual char * | GetLookupTableName () |
virtual void | SetFieldDataName (const char *) |
virtual char * | GetFieldDataName () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkDataWriter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkDataWriter () | |
~vtkDataWriter () | |
void | WriteData () |
int | WriteArray (ostream *fp, int dataType, vtkDataArray *data, const char *format, int num, int numComp) |
int | WriteScalarData (ostream *fp, vtkDataArray *s, int num) |
int | WriteVectorData (ostream *fp, vtkDataArray *v, int num) |
int | WriteNormalData (ostream *fp, vtkDataArray *n, int num) |
int | WriteTCoordData (ostream *fp, vtkDataArray *tc, int num) |
int | WriteTensorData (ostream *fp, vtkDataArray *t, int num) |
Protected Attributes | |
int | WriteToOutputString |
char * | OutputString |
int | OutputStringLength |
int | OutputStringAllocatedLength |
char * | FileName |
char * | Header |
int | FileType |
char * | ScalarsName |
char * | VectorsName |
char * | TensorsName |
char * | TCoordsName |
char * | NormalsName |
char * | LookupTableName |
char * | FieldDataName |
|
Reimplemented from vtkWriter. Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataSetWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter. Definition at line 42 of file vtkDataWriter.h. |
|
|
|
|
|
Reimplemented from vtkWriter. Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataSetWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkWriter. Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataSetWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkWriter. Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataSetWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter. |
|
Reimplemented from vtkWriter. Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataSetWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter. |
|
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. Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataSetWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter. |
|
Created object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates. Reimplemented from vtkAlgorithm. Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataSetWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, vtkUnstructuredGridWriter, and vtkPDataSetWriter. |
|
Specify file name of vtk polygon data file to write. |
|
Specify file name of vtk polygon data file to write. |
|
Enable writing to an OutputString instead of the default, a file. |
|
Enable writing to an OutputString instead of the default, a file. |
|
Enable writing to an OutputString instead of the default, a file. |
|
Enable writing to an OutputString instead of the default, a file. |
|
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with these methods. The string is deleted during the next call to write ... |
|
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with these methods. The string is deleted during the next call to write ... |
|
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with these methods. The string is deleted during the next call to write ... Definition at line 68 of file vtkDataWriter.h. |
|
This convenience method returns the string, sets the IVAR to NULL, so that the user is responsible for deleting the string. I am not sure what the name should be, so it may change in the future. |
|
Specify the header for the vtk data file. |
|
This convenience method returns the string, sets the IVAR to NULL, so that the user is responsible for deleting the string. I am not sure what the name should be, so it may change in the future. |
|
Specify file type (ASCII or BINARY) for vtk data file. |
|
Specify file type (ASCII or BINARY) for vtk data file. |
|
Specify file type (ASCII or BINARY) for vtk data file. Definition at line 87 of file vtkDataWriter.h. References VTK_ASCII. |
|
Specify file type (ASCII or BINARY) for vtk data file. Definition at line 88 of file vtkDataWriter.h. References VTK_BINARY. |
|
Give a name to the scalar data. If not specified, uses default name "scalars". |
|
Give a name to the scalar data. If not specified, uses default name "scalars". |
|
Give a name to the vector data. If not specified, uses default name "vectors". |
|
Give a name to the vector data. If not specified, uses default name "vectors". |
|
Give a name to the tensors data. If not specified, uses default name "tensors". |
|
Give a name to the tensors data. If not specified, uses default name "tensors". |
|
Give a name to the normals data. If not specified, uses default name "normals". |
|
Give a name to the normals data. If not specified, uses default name "normals". |
|
Give a name to the texture coordinates data. If not specified, uses default name "textureCoords". |
|
Give a name to the texture coordinates data. If not specified, uses default name "textureCoords". |
|
Give a name to the lookup table. If not specified, uses default name "lookupTable". |
|
Give a name to the lookup table. If not specified, uses default name "lookupTable". |
|
Give a name to the field data. If not specified, uses default name "field". |
|
Give a name to the field data. If not specified, uses default name "field". |
|
Open a vtk data file. Returns NULL if error. |
|
Write the header of a vtk data file. Returns 0 if error. |
|
Write out the points of the data set. |
|
Write out coordinates for rectilinear grids. |
|
Write out the cells of the data set. |
|
Write the cell data (e.g., scalars, vectors, ...) of a vtk dataset. Returns 0 if error. |
|
Write the point data (e.g., scalars, vectors, ...) of a vtk dataset. Returns 0 if error. |
|
Write out the field data. |
|
Write out the data associated with the dataset (i.e. field data owned by the dataset itself - distinct from that owned by the cells or points). |
|
Close a vtk file. |
|
Implements vtkWriter. Reimplemented in vtkBYUWriter, vtkCGMWriter, vtkDataSetWriter, vtkIVWriter, vtkMCubesWriter, vtkPLYWriter, vtkPolyDataWriter, vtkRectilinearGridWriter, vtkSTLWriter, vtkStructuredGridWriter, vtkStructuredPointsWriter, and vtkUnstructuredGridWriter. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 179 of file vtkDataWriter.h. |
|
Definition at line 180 of file vtkDataWriter.h. |
|
Definition at line 181 of file vtkDataWriter.h. |
|
Definition at line 182 of file vtkDataWriter.h. |
|
Definition at line 186 of file vtkDataWriter.h. |
|
Definition at line 187 of file vtkDataWriter.h. |
|
Definition at line 188 of file vtkDataWriter.h. |
|
Definition at line 190 of file vtkDataWriter.h. |
|
Definition at line 191 of file vtkDataWriter.h. |
|
Definition at line 192 of file vtkDataWriter.h. |
|
Definition at line 193 of file vtkDataWriter.h. |
|
Definition at line 194 of file vtkDataWriter.h. |
|
Definition at line 195 of file vtkDataWriter.h. |
|
Definition at line 196 of file vtkDataWriter.h. |