29#ifndef vtkDataWriter_h
30#define vtkDataWriter_h
32#include "vtkIOLegacyModule.h"
61 vtkSetStringMacro(FileName);
70 vtkGetMacro(WriteToOutputString,
int);
80 vtkGetMacro(OutputStringLength,
int);
84 return reinterpret_cast<unsigned char *
>(this->OutputString);
105 vtkSetStringMacro(Header);
115 vtkGetMacro(WriteArrayMetaData,
bool)
124 vtkGetMacro(FileType,
int);
125 void SetFileTypeToASCII() {this->SetFileType(
VTK_ASCII);};
134 vtkSetStringMacro(ScalarsName);
143 vtkSetStringMacro(VectorsName);
152 vtkSetStringMacro(TensorsName);
161 vtkSetStringMacro(NormalsName);
170 vtkSetStringMacro(TCoordsName);
179 vtkSetStringMacro(GlobalIdsName);
188 vtkSetStringMacro(PedigreeIdsName);
197 vtkSetStringMacro(EdgeFlagsName);
206 vtkSetStringMacro(LookupTableName);
215 vtkSetStringMacro(FieldDataName);
319 int num,
int numComp);
Abstract superclass for all arrays.
object to represent cell connectivity
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
helper class for objects that write vtk data files
int WriteEdgeData(ostream *fp, vtkGraph *g)
Write the edge data (e.g., scalars, vectors, ...) of a vtk graph.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int WritePointData(ostream *fp, vtkDataSet *ds)
Write the point data (e.g., scalars, vectors, ...) of a vtk dataset.
int WriteEdgeFlagsData(ostream *fp, vtkDataArray *edgeFlags, int num)
int WriteDataSetData(ostream *fp, vtkDataSet *ds)
Write out the data associated with the dataset (i.e.
int WriteVectorData(ostream *fp, vtkDataArray *v, int num)
vtkStdString GetOutputStdString()
When WriteToOutputString is on, this method returns a copy of the output string in a vtkStdString.
int WritePedigreeIdData(ostream *fp, vtkAbstractArray *p, int num)
void SetFileTypeToBinary()
int WriteInformation(ostream *fp, vtkInformation *info)
Format is detailed here.
int WriteVertexData(ostream *fp, vtkGraph *g)
Write the vertex data (e.g., scalars, vectors, ...) of a vtk graph.
int WriteHeader(ostream *fp)
Write the header of a vtk data file.
int WriteCells(ostream *fp, vtkCellArray *cells, const char *label)
Write out the cells of the data set.
virtual ostream * OpenVTKFile()
Open a vtk data file.
static vtkDataWriter * New()
Created object with default header, ASCII format, and default names for scalars, vectors,...
int WriteCoordinates(ostream *fp, vtkDataArray *coords, int axes)
Write out coordinates for rectilinear grids.
void CloseVTKFile(ostream *fp)
Close a vtk file.
char * RegisterAndGetOutputString()
This convenience method returns the string, sets the IVAR to NULL, so that the user is responsible fo...
int WriteGlobalIdData(ostream *fp, vtkDataArray *g, int num)
int WriteScalarData(ostream *fp, vtkDataArray *s, int num)
int WriteTensorData(ostream *fp, vtkDataArray *t, int num)
int WriteNormalData(ostream *fp, vtkDataArray *n, int num)
int WritePoints(ostream *fp, vtkPoints *p)
Write out the points of the data set.
int WriteFieldData(ostream *fp, vtkFieldData *f)
Write out the field data.
unsigned char * GetBinaryOutputString()
int WriteTCoordData(ostream *fp, vtkDataArray *tc, int num)
int WriteCellData(ostream *fp, vtkDataSet *ds)
Write the cell data (e.g., scalars, vectors, ...) of a vtk dataset.
int WriteRowData(ostream *fp, vtkTable *g)
Write the row data (e.g., scalars, vectors, ...) of a vtk table.
bool CanWriteInformationKey(vtkInformation *info, vtkInformationKey *key)
int WriteArray(ostream *fp, int dataType, vtkAbstractArray *data, const char *format, int num, int numComp)
represent and manipulate fields of data
Base class for graph data types.
a simple class to control print indentation
represent and manipulate 3D points
Wrapper around std::string to keep symbols short.
A table, which contains similar-typed columns of data.
abstract class to write data to file(s)
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.