 |
VTK
9.1.0
|
Go to the documentation of this file.
29 #ifndef vtkDataWriter_h
30 #define vtkDataWriter_h
32 #include "vtkIOLegacyModule.h"
79 VTK_LEGACY_READER_VERSION_4_2 = 42,
80 VTK_LEGACY_READER_VERSION_5_1 = 51
94 vtkGetMacro(FileVersion,
int);
95 vtkGetMacro(FileMajorVersion,
int);
96 vtkGetMacro(FileMinorVersion,
int);
115 vtkGetStringMacro(OutputString);
118 return reinterpret_cast<unsigned char*
>(this->OutputString);
139 vtkSetStringMacro(Header);
140 vtkGetStringMacro(Header);
148 vtkSetMacro(WriteArrayMetaData,
bool);
149 vtkGetMacro(WriteArrayMetaData,
bool);
150 vtkBooleanMacro(WriteArrayMetaData,
bool);
158 vtkGetMacro(FileType,
int);
168 vtkSetStringMacro(ScalarsName);
169 vtkGetStringMacro(ScalarsName);
177 vtkSetStringMacro(VectorsName);
178 vtkGetStringMacro(VectorsName);
186 vtkSetStringMacro(TensorsName);
187 vtkGetStringMacro(TensorsName);
195 vtkSetStringMacro(NormalsName);
196 vtkGetStringMacro(NormalsName);
204 vtkSetStringMacro(TCoordsName);
205 vtkGetStringMacro(TCoordsName);
213 vtkSetStringMacro(GlobalIdsName);
214 vtkGetStringMacro(GlobalIdsName);
222 vtkSetStringMacro(PedigreeIdsName);
223 vtkGetStringMacro(PedigreeIdsName);
231 vtkSetStringMacro(EdgeFlagsName);
232 vtkGetStringMacro(EdgeFlagsName);
240 vtkSetStringMacro(LookupTableName);
241 vtkGetStringMacro(LookupTableName);
249 vtkSetStringMacro(FieldDataName);
250 vtkGetStringMacro(FieldDataName);
int WritePointData(ostream *fp, vtkDataSet *ds)
Write the point data (e.g., scalars, vectors, ...) of a vtk dataset.
represent and manipulate 3D points
int WritePedigreeIdData(ostream *fp, vtkAbstractArray *p, vtkIdType num)
int WriteEdgeFlagsData(ostream *fp, vtkDataArray *edgeFlags, vtkIdType num)
int WriteArray(ostream *fp, int dataType, vtkAbstractArray *data, const char *format, vtkIdType num, vtkIdType numComp)
int WriteGlobalIdData(ostream *fp, vtkDataArray *g, vtkIdType num)
vtkIdType OutputStringLength
A table, which contains similar-typed columns of data.
int WritePoints(ostream *fp, vtkPoints *p)
Write out the points of the data set.
int WriteCellsLegacy(ostream *fp, vtkCellArray *cells, const char *label)
Write out the cells of the data set.
int WriteVertexData(ostream *fp, vtkGraph *g)
Write the vertex data (e.g., scalars, vectors, ...) of a vtk graph.
void SetFileTypeToASCII()
Specify the file type (ASCII or BINARY) of the VTK data file.
abstract superclass for arrays of numeric data
void SetFileTypeToBinary()
Specify the file type (ASCII or BINARY) of the VTK data file.
represent and manipulate fields of data
int WriteTensorData(ostream *fp, vtkDataArray *t, vtkIdType num)
vtkStdString GetOutputStdString()
When WriteToOutputString is on, this method returns a copy of the output string in a vtkStdString.
vtkSetFilePathMacro(FileName)
Specify the file name of VTK data file to write.
vtkTypeBool WriteToOutputString
int WriteCells(ostream *fp, vtkCellArray *cells, const char *label)
Write out the cells of the data set.
int WriteNormalData(ostream *fp, vtkDataArray *n, vtkIdType num)
static vtkDataWriter * New()
Create object with default header, ASCII format, and default names for scalars, vectors,...
std::locale CurrentLocale
int WriteCoordinates(ostream *fp, vtkDataArray *coords, int axes)
Write out coordinates for rectilinear grids.
unsigned char * GetBinaryOutputString()
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with the...
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
int WriteVectorData(ostream *fp, vtkDataArray *v, vtkIdType num)
abstract class to write data to file(s)
int WriteTCoordData(ostream *fp, vtkDataArray *tc, vtkIdType num)
virtual ostream * OpenVTKFile()
Open a vtk data file.
vtkGetFilePathMacro(FileName)
Specify the file name of VTK data file to write.
abstract class to specify dataset behavior
Abstract superclass for all arrays.
void SetFileVersion(int)
Specify the VTK file version to write.
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)
void WriteData() override
char * RegisterAndGetOutputString()
This convenience method returns the string, sets the IVAR to nullptr, so that the user is responsible...
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
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.
int WriteScalarData(ostream *fp, vtkDataArray *s, vtkIdType num)
~vtkDataWriter() override