Go to the documentation of this file.
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);
int WritePointData(ostream *fp, vtkDataSet *ds)
Write the point data (e.g., scalars, vectors, ...) of a vtk dataset.
represent and manipulate 3D points
A table, which contains similar-typed columns of data.
int WritePoints(ostream *fp, vtkPoints *p)
Write out the points of the data set.
int WritePedigreeIdData(ostream *fp, vtkAbstractArray *p, int num)
int WriteVertexData(ostream *fp, vtkGraph *g)
Write the vertex data (e.g., scalars, vectors, ...) of a vtk graph.
int WriteScalarData(ostream *fp, vtkDataArray *s, int num)
abstract superclass for arrays of numeric data
void SetFileTypeToBinary()
represent and manipulate fields of data
int WriteTensorData(ostream *fp, vtkDataArray *t, int num)
int WriteTCoordData(ostream *fp, vtkDataArray *tc, int num)
int WriteGlobalIdData(ostream *fp, vtkDataArray *g, int num)
vtkStdString GetOutputStdString()
When WriteToOutputString is on, this method returns a copy of the output string in a vtkStdString.
int WriteCells(ostream *fp, vtkCellArray *cells, const char *label)
Write out the cells of the data set.
int WriteEdgeFlagsData(ostream *fp, vtkDataArray *edgeFlags, int num)
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.
unsigned char * GetBinaryOutputString()
a simple class to control print indentation
object to represent cell connectivity
int WriteHeader(ostream *fp)
Write the header of a vtk data file.
int WriteInformation(ostream *fp, vtkInformation *info)
Format is detailed here.
abstract class to write data to file(s)
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual ostream * OpenVTKFile()
Open a vtk data file.
abstract class to specify dataset behavior
Abstract superclass for all arrays.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
void CloseVTKFile(ostream *fp)
Close a vtk file.
int WriteEdgeData(ostream *fp, vtkGraph *g)
Write the edge data (e.g., scalars, vectors, ...) of a vtk graph.
bool CanWriteInformationKey(vtkInformation *info, vtkInformationKey *key)
int WriteVectorData(ostream *fp, vtkDataArray *v, int num)
int WriteNormalData(ostream *fp, vtkDataArray *n, int num)
char * RegisterAndGetOutputString()
This convenience method returns the string, sets the IVAR to NULL, so that the user is responsible fo...
int WriteCellData(ostream *fp, vtkDataSet *ds)
Write the cell data (e.g., scalars, vectors, ...) of a vtk dataset.
helper class for objects that write vtk data files
int WriteArray(ostream *fp, int dataType, vtkAbstractArray *data, const char *format, int num, int numComp)
Wrapper around std::string to keep symbols short.
Base class for graph data types.
int WriteDataSetData(ostream *fp, vtkDataSet *ds)
Write out the data associated with the dataset (i.e.
int WriteFieldData(ostream *fp, vtkFieldData *f)
Write out the field data.
int WriteRowData(ostream *fp, vtkTable *g)
Write the row data (e.g., scalars, vectors, ...) of a vtk table.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.