17#ifndef vtkDataWriter_h
18#define vtkDataWriter_h
20#include "vtkIOLegacyModule.h"
25VTK_ABI_NAMESPACE_BEGIN
68 VTK_LEGACY_READER_VERSION_4_2 = 42,
69 VTK_LEGACY_READER_VERSION_5_1 = 51
83 vtkGetMacro(FileVersion,
int);
84 vtkGetMacro(FileMajorVersion,
int);
85 vtkGetMacro(FileMinorVersion,
int);
104 vtkGetStringMacro(OutputString);
107 return reinterpret_cast<unsigned char*
>(this->OutputString);
128 vtkSetStringMacro(Header);
129 vtkGetStringMacro(Header);
137 vtkSetMacro(WriteArrayMetaData,
bool);
138 vtkGetMacro(WriteArrayMetaData,
bool);
139 vtkBooleanMacro(WriteArrayMetaData,
bool);
147 vtkGetMacro(FileType,
int);
157 vtkSetStringMacro(ScalarsName);
158 vtkGetStringMacro(ScalarsName);
166 vtkSetStringMacro(VectorsName);
167 vtkGetStringMacro(VectorsName);
175 vtkSetStringMacro(TensorsName);
176 vtkGetStringMacro(TensorsName);
184 vtkSetStringMacro(NormalsName);
185 vtkGetStringMacro(NormalsName);
193 vtkSetStringMacro(TCoordsName);
194 vtkGetStringMacro(TCoordsName);
202 vtkSetStringMacro(GlobalIdsName);
203 vtkGetStringMacro(GlobalIdsName);
211 vtkSetStringMacro(PedigreeIdsName);
212 vtkGetStringMacro(PedigreeIdsName);
220 vtkSetStringMacro(EdgeFlagsName);
221 vtkGetStringMacro(EdgeFlagsName);
229 vtkSetStringMacro(LookupTableName);
230 vtkGetStringMacro(LookupTableName);
238 vtkSetStringMacro(FieldDataName);
239 vtkGetStringMacro(FieldDataName);
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
vtkSetFilePathMacro(FileName)
Specify the file name of VTK data file to write.
int WriteEdgeData(ostream *fp, vtkGraph *g)
Write the edge data (e.g., scalars, vectors, ...) of a vtk graph.
int WriteTCoordData(ostream *fp, vtkDataArray *tc, vtkIdType num)
int WritePointData(ostream *fp, vtkDataSet *ds)
Write the point data (e.g., scalars, vectors, ...) of a vtk dataset.
int WriteDataSetData(ostream *fp, vtkDataSet *ds)
Write out the data associated with the dataset (i.e.
void SetFileVersion(int)
Specify the VTK file version to write.
vtkStdString GetOutputStdString()
When WriteToOutputString is on, this method returns a copy of the output string in a vtkStdString.
void WriteData() override
void SetFileTypeToBinary()
Specify the file type (ASCII or BINARY) of the VTK data file.
int WriteGlobalIdData(ostream *fp, vtkDataArray *g, vtkIdType num)
int WriteInformation(ostream *fp, vtkInformation *info)
Format is detailed at https://docs.vtk.org/en/latest/design_documents/IOLegacyInformationFormat....
int WriteVertexData(ostream *fp, vtkGraph *g)
Write the vertex data (e.g., scalars, vectors, ...) of a vtk graph.
vtkIdType OutputStringLength
int WriteTensorData(ostream *fp, vtkDataArray *t, vtkIdType num)
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()
Create 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 nullptr, so that the user is responsible...
int WriteEdgeFlagsData(ostream *fp, vtkDataArray *edgeFlags, vtkIdType num)
int WriteNormalData(ostream *fp, vtkDataArray *n, vtkIdType num)
int WriteArray(ostream *fp, int dataType, vtkAbstractArray *data, const char *format, vtkIdType num, vtkIdType numComp)
int WriteScalarData(ostream *fp, vtkDataArray *s, vtkIdType 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.
void SetFileTypeToASCII()
Specify the file type (ASCII or BINARY) of the VTK data file.
std::locale CurrentLocale
~vtkDataWriter() override
int WriteCellsLegacy(ostream *fp, vtkCellArray *cells, const char *label)
Write out the cells of the data set.
unsigned char * GetBinaryOutputString()
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with the...
int WriteVectorData(ostream *fp, vtkDataArray *v, vtkIdType num)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
vtkGetFilePathMacro(FileName)
Specify the file name of VTK data file to write.
int WriteCellData(ostream *fp, vtkDataSet *ds)
Write the cell data (e.g., scalars, vectors, ...) of a vtk dataset.
vtkTypeBool WriteToOutputString
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 WritePedigreeIdData(ostream *fp, vtkAbstractArray *p, vtkIdType num)
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)